Hello,
I'm writting my first pluggin and I sort of have the idea, but for some reason when I call ?GetXSize@@YAKH@Z (this is what i preseume is Object Size X) it returns a different number to what Object Size X does when i call them.
for example
my C++ function is
int MY_GET_OBJECT_SIZE_X( int oId )
{
typedef int (*FPOINTER)(int);
HMODULE hDBPCommands = LoadLibrary("DBProBasic3DDebug.dll");
FPOINTER ObjectSizeX = (FPOINTER)GetProcAddress( hDBPCommands, "?GetXSize@@YAKH@Z" );
FreeLibrary( hDBPCommands );
return ObjectSizeX(oId);
}
and in dbpro i call
text 0, 0, Str$(MY GET OBJECT SIZE X( 1 ))
text 0, 14, Str$(Object Size X(1))
but my command outputs some large number around the 10millions and the native command outputs 10 (well 9.99999999)
any ideas why?
Yours
N3wton