ericgo 发表于 2005-8-23 20:06:37

新手求教!!!!!!1

<P>我想调用一个DA卡的dll,不知道怎么做,我胡乱弄了一个,果然不行,求教大侠!多谢
DA的两个函数前面一个是打开设备,后面一个是输入数据,全都是通过一个struct实现的
struct定义如下,我感觉我的数据传递有问题,
    struct ZT_PCIBOARD
    {
    long lIndex;   /* PCI卡索引值,该值在安装时被系统分配*/
    HANDLE hHandle; /* PCI卡的操作句柄(只有涉及中断时才用)*/
    short nCh;            /* 通道号*/
    longlData;          /*输入输出数据变量*/
       long* plData;         /*输入输出数据指针*/
    longlCode;          /*设备控制字,具体含义见函数说明*/      
   };</P>
<P> 下面是一个截图</P>

ericgo 发表于 2005-8-23 20:07:56

补截图!!!<img src="attachments/dvbbs/2005-8/20058231274830.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-8/20058231274830.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />
页: [1]
查看完整版本: 新手求教!!!!!!1