正在链接...
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall CNTServiceParam::~CNTServiceParam(void)" (__imp_??1CNTServiceParam@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "int __stdcall ServiceUninstall(char const *)" (?ServiceUninstall@@YGHPBD@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "int __stdcall ServiceInstall(char const *,struct _stServiceInfo)" (?ServiceInstall@@YGHPBDU_stServiceInfo@@@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CNTServiceParam::GetAt(int)" (__imp_?GetAt@CNTServiceParam@@QAE?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@H@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CJJSendService::~CJJSendService(void)" (??1CJJSendService@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static int __cdecl CNTService::Run(class CNTService *,char const *)" (__imp_?Run@CNTService@@SAHPAV1@PBD@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CJJSendService::CJJSendService(void)" (??0CJJSendService@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: int __thiscall CNTServiceParam::HadParam(void)" (__imp_?HadParam@CNTServiceParam@@QAEHXZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall CNTServiceParam::Parse(void)" (__imp_?Parse@CNTServiceParam@@QAEXXZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall CNTServiceParam::CNTServiceParam(void)" (__imp_??0CNTServiceParam@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
Debug/JJSendService.exe : fatal error LNK1120: 10 个无法解析的外部命令
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall CNTServiceParam::~CNTServiceParam(void)" (__imp_??1CNTServiceParam@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "int __stdcall ServiceUninstall(char const *)" (?ServiceUninstall@@YGHPBD@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "int __stdcall ServiceInstall(char const *,struct _stServiceInfo)" (?ServiceInstall@@YGHPBDU_stServiceInfo@@@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CNTServiceParam::GetAt(int)" (__imp_?GetAt@CNTServiceParam@@QAE?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@H@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CJJSendService::~CJJSendService(void)" (??1CJJSendService@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static int __cdecl CNTService::Run(class CNTService *,char const *)" (__imp_?Run@CNTService@@SAHPAV1@PBD@Z) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CJJSendService::CJJSendService(void)" (??0CJJSendService@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: int __thiscall CNTServiceParam::HadParam(void)" (__imp_?HadParam@CNTServiceParam@@QAEHXZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: void __thiscall CNTServiceParam::Parse(void)" (__imp_?Parse@CNTServiceParam@@QAEXXZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
JJSendService.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall CNTServiceParam::CNTServiceParam(void)" (__imp_??0CNTServiceParam@@QAE@XZ) ,该符号在函数 "public: virtual int __thiscall CJJSendServiceApp::InitInstance(void)" (?InitInstance@CJJSendServiceApp@@UAEHXZ) 中被引用
Debug/JJSendService.exe : fatal error LNK1120: 10 个无法解析的外部命令
看起来好象缺少了同DLL一同发布的.lib文件。
把.lib拷贝到你的工程文件夹中
在你的stdafx.h中
#pragma comment(lib,"xxx.lib")
或者
菜单 project -> settings -> link 页的object/library modules中添加 xxx.lib
#pragma comment(lib,"yourloselib.lib")