zhengjing649 发表于 2008-6-11 10:37:58

调用ccd的dll文件

我想在labview环境下调用一个CCD的dll文件。
下面这个函数是在内存中为图像开辟一块内存。
INT is_AllocImageMem (HIDS hf, INT width, INT height, INT bitspixel, char** ppcImgMem,
INT* pid)
Parameters:
hf- Camera handle
width -Width of image
height -Height of image
bitspixel -Colour depth of image (bits per pixel)
ppcImgMem -Contains pointer to start of memory location
pid -Contains the ID for this memory location
我不知道对于char** ppcImgMem这个参数在CLF节点中怎么设置。
类型肯定是字符串的,字符串格式选择“C字符串指针”时,char** ppcImgMem返回的字符串是空。字符串格式选择“Pascal字符串指针”时。返回为乱码。选择其他2种句柄格式时,程序出错。
研究了几天,也没有把程序调通,请各位高手帮忙!

lgh269 发表于 2008-6-11 16:35:40

上传你的DLL,看能否试,
LV在DLL调用上是有点麻烦,特别是涉及到内存指针
另外直接指定字符看行不
页: [1]
查看完整版本: 调用ccd的dll文件