读书人

dll供pb调用的有关问题

发布时间: 2012-02-19 19:43:39 作者: rapoo

dll供pb调用的问题
想写一个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方面好的书箱介绍啊.


[解决办法]
ref integer buff[38]应该是int* buff 缓冲区长度自己控制
ref mystru stru1应该是struct mystru* stru1

读书人网 >VC/MFC

热点推荐