C++程序中:USB2080_Read.cpp文件中:extern "C"
void EXPORT _stdcall StartDeviceAD(int FirstChannel,int LastChannel, int Usb_Port, CString filename) //读取卡件数据,启动线程
{
......
}extern "C"
void EXPORT _stdcall StopDeviceAD()//释放卡件
{
........
}USB2080_Read.def文件中:EXPORTS
StartDeviceAD; Explicit exports can go here
StopDeviceAD ; Explicit exports can go hereUSB2080_Read.h文件中:
extern "C"
{
void EXPORT _stdcall StartDeviceAD(int FirstChannel,int LastChannel, int Usb_Port, CString filename);
void EXPORT _stdcall StopDeviceAD();
}
VB程序中:Private Declare Sub StartDeviceAD Lib "C:\WINDOWS\system\USB2080_Read.dll" _
(ByVal FirstChannel As Long, ByVal LastChannel As Long, ByVal Usb_Port As Long, ByVal filename As String)Private Declare Sub StopDeviceAD Lib "C:\WINDOWS\system\USB2080_Read.dll" ()然后在后面用。
但是,当退出VB程序时,每两次就会发生一次错误。提示:Chamber(VB的程序名)遇到一个问题,需要关闭,对此带来的不便深表歉意。
void EXPORT _stdcall StartDeviceAD(int FirstChannel,int LastChannel, int Usb_Port, CString filename) //读取卡件数据,启动线程
{
......
}extern "C"
void EXPORT _stdcall StopDeviceAD()//释放卡件
{
........
}USB2080_Read.def文件中:EXPORTS
StartDeviceAD; Explicit exports can go here
StopDeviceAD ; Explicit exports can go hereUSB2080_Read.h文件中:
extern "C"
{
void EXPORT _stdcall StartDeviceAD(int FirstChannel,int LastChannel, int Usb_Port, CString filename);
void EXPORT _stdcall StopDeviceAD();
}
VB程序中:Private Declare Sub StartDeviceAD Lib "C:\WINDOWS\system\USB2080_Read.dll" _
(ByVal FirstChannel As Long, ByVal LastChannel As Long, ByVal Usb_Port As Long, ByVal filename As String)Private Declare Sub StopDeviceAD Lib "C:\WINDOWS\system\USB2080_Read.dll" ()然后在后面用。
但是,当退出VB程序时,每两次就会发生一次错误。提示:Chamber(VB的程序名)遇到一个问题,需要关闭,对此带来的不便深表歉意。
ModVer:5.1.2600.2180 offset: 00010f29Reporting Details:This error report includes: information regarding the condition of chamber when the problem occurred; the operating system version and computer hardware in use; your Digital Product ID, which could be used to indentify your license; and the Internet Protocol(IP) address of your computer.We do not intentionally collect your files, name, address, email address or any other form of personally identifiable information. However, the error report could contain customer-specific information such as data from open files. While this information could potentially be used to determine your identity, if present, it will not be used.The data that we collect will only be used to fix the problem. If more information is available, we will tell you when you report the problem. This error report will be sent using a secure connection to a database with limited access and will not be used for eting perposes.To view technical information about the error report, click here.
To see our data collection policy on the web, click here.
Private Declare Sub StartDeviceAD Lib "C:\WINDOWS\system\USB2080_Read.dll" _
(ByVal FirstChannel As Long, ByVal LastChannel As Long, ByVal Usb_Port As Long, byRef filename As String)