pb 调用delphi dll问题
msjqd 2010-04-09 09:27:35 我在delphi中写了一个dll。里面有一个函数
function show_Form(filename1,savePath1:PChar):integer;stdcall;
在delphi中调用dll是没有问题的。
现在在pb中调用存在一个问题。
pb中这么声明
function integer showForm(string filename1,string savePath1) Library "my.dll"
此时在事件中调用
string a= "C:\cad\test.xls"
string b= '';
int i
showForm(a,b);
此时在dll中仅仅接受到了一个字符 ‘c’。不知道是什么原因