VC 的MFC的*.dll如何被PB调用?
我用VC MFC 生成DLL动态库Pb.dll的源程序如下:
DesDll.cpp程序
extern "C" _declspec(dllexport)
char fnDesDll(char li_number[])
{
int i;
for(i=1;i<8;i++)
{
li_number[i]=li_number[i-1];
}
return li_number[0];
}
////////////////////////////////
DesDll.def声明如下
; PbDll.def : Declares the module parameters for the DLL.
LIBRARY "PbDll"
DESCRIPTION 'PbDll Windows Dynamic Link Library'
EXPORTS
; Explicit exports can go here
fnDesDll @ 1
/////////////////////////////////
PB的调用如下
函数声明
Function char fnDesDll(char li_number[]) Library "Pb.dll"
函数调用
char li_number[]=sle_2.text
sle_3.text=string(fnDesDll(li_number[]))
////////////////////////////////////////////
VC编译通过,pb编译时无错误提示,调用时系统说 要求的类型和返回的类型不匹配,以至于动态调用不成功,然而以前曾经用 int fnDesDll(int... )调用成功,请问是什么原因?盼高手解答!