I made a DLL with RadASM and MASM32. Can I use it with the Deplhi, or should I specify some special directives in the asm source?

I used flat model and stdcall. Does STDCALL fit with Delphi? I don't have Delphi, that's why I'm asking.
Under VC++ worked well.
Posted on 2004-05-03 18:13:25 by bszente
STDCALL is fine, you'll need to set up correct delphi prototypes though - it should be explained well in the Delphi manual. I can't remember the naming convention for delphi, but if you have it working for VC++, it should work under Delphi as well. It's been ages since I touched borland products though :)
Posted on 2004-05-03 18:22:07 by f0dder
This is how I did it in Ddelphi 4:

function InstallHook(hWnd: HWND):Integer; stdcall; external 'LOCKDLL.DLL' name 'InstallHook';
function UninstallHook:Integer; stdcall; external 'LOCKDLL.DLL' name 'UninstallHook';
Posted on 2004-05-04 04:10:20 by Delight
Thanks for all of you for your answers and for your example code, Delight.
I will give a try, but I'm sure now that it will work.
Posted on 2004-05-04 04:36:54 by bszente
Thanks for your answers, I succeeded to import the DLL functions in Delphi code with your help.
Posted on 2004-05-12 09:05:07 by bszente