仪器厂家提供的win32 dll里面定义了一些以VISA为基础的数据类型,
可以用Std API的方式调用,
在.net中的类型匹配遇到一些问题。在下是新手,不知道有没有分能给。

解决方案 »

  1.   

    ViStatus TXPRMGR_init (ViRsrc resourceName, ViUInt32 communicationTimeout,
                             ViUInt32 keepAliveTime, ViPSession instrumentHandle);Parameter1
    typedef ViString            ViRsrc;
    typedef ViPChar             ViString;
    typedef ViChar      _VI_PTR ViPChar;
    typedef char                ViChar;
    #define _VI_PTR             _VI_FAR *Parameter2
    typedef unsigned long       ViUInt32;Parameter3
    typedef unsigned long       ViUInt32;Parameter4
    typedef ViSession   _VI_PTR ViPSession;
    typedef ViObject            ViSession;
    typedef ViUInt32            ViObject;
    typedef unsigned long       ViUInt32;
    这个就是其中一个Prototype和一些类型的定义。
      

  2.   

    typedef ViInt32             ViStatus;
    typedef _VI_SIGNED long     ViInt32;
    #define _VI_SIGNED          signed