调用位置:
adpHandle *comChannel;
SetupAppwithFirstFreeAdapter(comChannel->commandpipeName, comChannel->dataPipeName, comChannel->priorityPipeName, comChannel->deviceName, "commmgr.exe", BUF256, BACKGROUND);
错误如下:
1>APPDlg.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int cdecl SetupAppwithFirstFreeAdapter(char *,char *,char *,char *,char *,int,int)" (imp_?SetupAppwithFirstFreeAdapter@@YAHPAD0000HH@Z),该符号在函数 "protected: virtual int __thiscall CAPPDlg::OnInitDialog(void)" (?OnInitDialog@CAPPDlg@@MAEHXZ) 中被引用
1>D:\Project test\智能电源\客户IQC APP\APP\Debug\APP.exe : fatal error LNK1120: 1 个无法解析的外部命令
lib文件及头文件路劲全部都添加到工程里面了,但依旧有这个问题!
源文件连接:http://download.csdn.net/detail/rygzptl/9736374