想写一个dll给pb调用pb调用代码是这样的
public function integer pbtest (ref integer buff[38],ref mystru stru1) library "mypb.dll"其中mystru是个结构,是这样定义的
unsignedinteger test1
unsignedinteger test2[0 to 20]
unsignedinteger test3[0 to 3]buff是个整形数组那在vc中mypb.dll的pbtest该怎么写呢,先谢了.另外,哪位有关于vc dll方面好的书箱介绍啊.
public function integer pbtest (ref integer buff[38],ref mystru stru1) library "mypb.dll"其中mystru是个结构,是这样定义的
unsignedinteger test1
unsignedinteger test2[0 to 20]
unsignedinteger test3[0 to 3]buff是个整形数组那在vc中mypb.dll的pbtest该怎么写呢,先谢了.另外,哪位有关于vc dll方面好的书箱介绍啊.
ref mystru stru1应该是struct mystru* stru1
UINT test1;
UINT test2[20];
UINT test3[3];
}mystru;
extern "C" _declspec(dllexport) int _stdcall pbtest(int* buff,mystru* stu1)
{
...
return 0;
}是这样吗,但是调用还是会出错哦.
是不是有21个元素?