Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Object Size X

Author
Message
N3wton
10
Years of Service
User Offline
Joined: 3rd Jun 2009
Location: Leeds, UK
Posted: 15th Dec 2009 00:18 Edited at: 15th Dec 2009 00:19
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


and in dbpro i call



but my command outputs some large number around the 10millions and the native command outputs 10 (well 9.99999999)

any ideas why?

Yours
N3wton

IanM
Retired Moderator
17
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Dec 2009 03:36
You have got the correct name for the function, but you haven't got the right typedef:

typedef DWORD (__cdecl *FPOINTER)(int);

Also, I'd guess that your resource string is returning an 'int' too, when it should be returning a float - change the first character in your resource strings arg types from an L to an F.

N3wton
10
Years of Service
User Offline
Joined: 3rd Jun 2009
Location: Leeds, UK
Posted: 15th Dec 2009 18:05
thanks Ian your a legend

Yours
N3wton

Login to post a reply

Server time is: 2019-10-17 03:25:58
Your offset time is: 2019-10-17 03:25:58