如何在C++builer中实现
function init(host: string; port: integer): Pointer; stdcall; external 'aaaa.dll ';
我有一段delphi的代码,不知如何在c++ builder中如何实现
另外 Pointer 类型在c++ builder 是如何写的
[解决办法]
也许是:
extern "C " __declspec( dllimport ) void* __stacall INIT(String host, int Port);
最好用exescope之类的软件看一下aaaa.dll里的init函数名,确认它是不是C调用方式(就是大小写问题啦,参数修饰啦之类的名称问题)