找回密码
 注册
Simdroid-非首页
查看: 222|回复: 1

[积分贴存推荐] 【求助】我在LABVIEW下有PCI7484?

[复制链接]
linsensor 该用户已被删除
发表于 2002-9-13 16:51:38 | 显示全部楼层 |阅读模式 来自 吉林长春
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2002-9-14 10:46:20 | 显示全部楼层 来自 吉林吉林

回复: 【求助】我在LABVIEW下有PCI7484?

Simdroid开发平台
linsensor wrote:
还有就是LABVIEW调用的DLL必须包括头文件“EXTCODE.H”吗?那LABVIEW怎么调用API函数的?

extcode.h含有 LabVIEW函数的原型
请参考:
extcode.h is automatically included, because it defines basic data types and a number of routines that can be used by CINs. extcode.h also defines some constants and types whose definitions may conflict with the definitions of system header files. The cintools directory also contains hosttype.h, which resolves these differences. This header file also includes many of the common header files for a given platform.
  
Always use #include "extcode.h" at the beginning of your source code. If your code needs to make system calls, also use #include "hosttype.h" immediately after #include "extcode.h", and then include your system header files. hosttype.h includes only a subset of the .h files for a given operating system. If the .h file you need is not included by hosttype.h, you can include it in the .c file for your CIN after you include hosttype.h.
  
另:
When you build more complex shared libraries, you must include header files for all related libraries. For example, a Windows shared library project might need to include windows.h. In another instance, a project might need to include extcode.h, the header file for the set of LabVIEW manager functions that perform simple and complex operations, ranging from low-level byte manipulation to routines for sorting data and managing memory.
When you want to use the LabVIEW manager functions inside your shared
library, you must include the LabVIEW library files in your compiled
project: labview.lib forVisual C++, labview.sym.lib for Symantec, and labview.export.stub for Metrowerks CodeWarrior. These files appear in the cintools directory of your LabVIEW installation. Specifically, you need the LabVIEW manager functions if you intend to do any of the following:
  
• Allocate, free, or resize arrays, strings, or other data structures that are passed into or out of your library from LabVIEW.
• Work with LabVIEW Path data types.
• Work with file refnums inside your library.
• Use any of the Support Manager functions.

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-3-28 20:05 , Processed in 0.048115 second(s), 15 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表