Delphi calls VC-compiled DLL Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiAPI/html/delphi_20061115223555225.html
If you try to use Delphi to call a VC-compiled DLL, you can call it normally when defining common types of parameters in the DLL interface function, but when defining a callback function in the interface function, when passing the function pointer into the interface function in Delphi, an error is always reported. If you use Delphi to create a DLL with the same function, there is no problem. Please advise! In addition, both the interface function and the callback function have been declared using stdcall.
> An error is always reported when the function pointer is passed into the interface function in Delphi.
What's wrong?
Post a description about your function declaration.CodeIncluding the declaration of the callback function
You can search previous posts for the issue of mutual calling of DLL compiled by Delphi and VC.