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

PB9.0调用DELPHI写的动态库解决方案

2013-01-07 
PB9.0调用DELPHI写的动态库举个例子,有delphi写的DLL中有个函数是这样声明的:function setConnect(const d

PB9.0调用DELPHI写的动态库
举个例子,有delphi写的DLL中有个函数是这样声明的:
function setConnect(const dbName, dbUser, dbPwd :pchar):boolean;stdcall;
那我在PB中应该如何声明??


[解决办法]
function boolean setConnect(string dbName, string dbUser,string dbPwd ) LIBRARY "delphi.dll"

"delphi.dll"要用具体的dll文件名

热点排行