ericwang622 发表于 2005-12-5 05:01:53

[求助]关于在CVI7.1中调用VC编写的DLL

小弟在用CVI7.1对视频采集卡做二次开发的时候遇到了problem,望各路大虾帮帮忙。
视频采集卡是购买的成品,厂商提供了VC开发的DSK,在说明书上说的是在windows平台下用MVAPI.DLL控制采集卡,在二次开发程序中要加入#include "MVAPI.h"和#include "common.h"
按照以上说明做了,也加了DLL的引导库,但是编译的时候却过不去,总是说什么没有定义,不能识别(如图)。偶不才,不得其解,希望大虾指导~~~~~~
附程序

<img src="attachments/dvbbs/2005-12/20051242102732785.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-12/20051242102732785.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />

linux_li 发表于 2005-12-16 05:52:15

<P>把你的DLL转化为.lib格式,加入头文件,下面格式:</P>
<P>#include "extcode.h"<BR>#pragma pack(push)<BR>#pragma pack(1)</P>
<P>#ifdef __cplusplus<BR>extern "C" {<BR>#endif</P>
<P>void __cdecl DLL_LIB(void);//程序入口</P>
<P>MgErr __cdecl LVDLLStatus(CStr errStr, int32 errStrLen, void *module);</P>
<P>#ifdef __cplusplus<BR>} // extern "C"<BR>#endif</P>
<P>#pragma pack(pop)</P>

shi2rong 发表于 2011-3-27 20:28:52

Let me try!
页: [1]
查看完整版本: [求助]关于在CVI7.1中调用VC编写的DLL