Hi, I have a DLL written in Delphi that I want to call from a VB program. It gives me errors no matter what I try, so I think I need to tell the function in the DLL to use a different calling convention, does anyone know which one I can use? Here is what Delphi says about the ones I have available for the function:
[tt]
Directive Parameter order Clean-up Parameters in registers?
register Left-to-right Routine Yes
pascal Left-to-right Routine No
cdecl Right-to-left Caller No
stdcall Right-to-left Routine No
safecall Right-to-left Routine No
[/tt]
Also, is there anything else I need to tell VB about the DLL?
I also can't select the DLL in the reference options even if I browse for it (it says it cannot reference the file).
The DLL works fine when called from a Delphi program.
Thanks
[tt]
Directive Parameter order Clean-up Parameters in registers?
register Left-to-right Routine Yes
pascal Left-to-right Routine No
cdecl Right-to-left Caller No
stdcall Right-to-left Routine No
safecall Right-to-left Routine No
[/tt]
Also, is there anything else I need to tell VB about the DLL?
I also can't select the DLL in the reference options even if I browse for it (it says it cannot reference the file).
The DLL works fine when called from a Delphi program.
Thanks