09-21-2007 02:33 AM - edited 09-21-2007 02:33 AM
帖子被www.cpubbs.com在09-21-2007 02:38 AM时编辑过了
09-21-2007 03:59 AM
09-21-2007 09:18 PM - edited 09-21-2007 09:18 PM
帖子被www.cpubbs.com在09-21-2007 09:21 PM时编辑过了
09-24-2007 03:32 AM
09-26-2007 08:57 AM
09-27-2007 04:19 PM
//--C style Prototypes--//
#ifdef
_CVI_int
__cdecl __export FUNCTION_NAME1(char *InitString);int
__cdecl __export FUNCTION_NAME2(char *id); //--C++ style Prototypes--//#else
extern
"C" int __declspec(dllexport) FUNCTION_NAME1(char *InitString);extern
"C" int __declspec(dllexport) FUNCTION_NAME2(char *id);#endif
NOTE: The function must contain only datatypes that can be used in C.
For instance the function arguments cannot be class variables.
If this was your only issue your error would be something like: function X undefined.
-Garth
12-27-2009 01:48 AM
这么大哥,没想到你两年前就开始尝试用CYAPI.lib封装成dll供labwindows调用了,小弟正在做这个,打算封装成供labview调用的dll,可惜在VC6.0环境下编译通过但link有错,不知道您有没这方面的经验,请传授小弟一二,不胜感激!!!!!!!!!!!!!!