首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ Builder >

怎么在C++builer中实现

2012-03-14 
如何在C++builer中实现functioninit(host:stringport:integer):Pointerstdcallexternalaaaa.dll 我有

如何在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调用方式(就是大小写问题啦,参数修饰啦之类的名称问题)

热点排行