Thanks TIM, works right away with stdcall.
I looked but did not find the APIENTRY macros in D3 or D4 source
directories. But the rest is working so thanks a lot...
Chris
-----Original Message-----
From: [EMAIL PROTECTED] On Behalf Of Tim McSweeney
Try adding the stdcall declaration to your function, the APIENTRY looks
like a macro that is defined somewhere in the C stuff, a quick search
through header files should show you what it expands to.
Tim
>
> LONG APIENTRY YourFunction (HWND hwnd, LPLONG lpIValue,
> LPSTR lpszValue);
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz