Been there, done that => thrown everything away and restarted the code
On 28.04.2014 13:30, Igor Stasenko wrote:
> This is strange.. should work fine. There's no way how
> NBExternalObjectType could return an instance of NBExternalHandle.
> Please check your code again.
from scratch... Sourcecode attached (the 32bit libraries are in the bin
subdirectory, there's another bin64 directory) - is there anything
obvious wrong with it?.
Workspace:
====================
TM1LibraryLoader loadTM1Library.
TM1Library tm1APIInitialize.
hUser := TM1Library tm1SystemOpen.
hPool1 := hUser tm1ValPoolCreate.
hPool1 inspect.
hUser tm1SystemClose.
TM1Library tm1APIFinalize.
====================
The Inspector I get shows
NBExternalHandle
self �� ��@ 16r74CF4A8
(apparently it's fine for TM1U, otherwise tm1ValPoolCreate wouldn't be
found)
>From the headers:
#define TM1API __stdcall
#ifndef TM1IMPORT
�� #define TM1IMPORT __declspec( dllimport )
#endif
typedef void �� �� �� �� * TM1U; �� �� �� �� �� // user ��handle
typedef void �� �� �� �� * TM1P; �� �� �� �� �� // pool ��handle
TM1IMPORT void TM1API TM1APIInitialize( void );
TM1IMPORT TM1U TM1API TM1SystemOpen( void );
TM1IMPORT TM1P TM1API TM1ValPoolCreate( TM1U hUser );
In order to debug further I will have to redo the Windows VM.