How to call C++Builder DLL in Delphi?
Posted on 2000-04-06
I've created a DLL that came from C++Builder code using the 'extern "C" __declspec(dllexport)' modifier to export the functions I want to be able to call. It compiles okay and then when I try to run a test program in Delphi to call the functions, I get an "Entry Point Not Found" error. More specifically it says "The procedure entry point <function name> could not be located in the dynamic link library <dll filename>".
I looked over my C++ code and I've seemed to have done everything right. The only clue I have is from a Delphi book that tells me that I need to "translate the C++ import library to a Pascal equivalent inteface unit". Am I on the right track?