I compiled PcHelpWare_viewer project via VS2010 and got some errors as below:
Code: Select all
1>pchelpware.obj : error LNK2019: 无法解析的外部符号 "void __cdecl GetDeviceInformation(void)" (?GetDeviceInformation@@YAXXZ),该符号在函数 "long __stdcall DialogProcStatic(struct HWND__ *,unsigned int,unsigned int,long)" (?DialogProcStatic@@YGJPAUHWND__@@IIJ@Z) 中被引用
1>pchelpware.obj : error LNK2019: 无法解析的外部符号 "void __cdecl remove_mapping(void)" (?remove_mapping@@YAXXZ),该符号在函数 "long __stdcall DialogProcStatic(struct HWND__ *,unsigned int,unsigned int,long)" (?DialogProcStatic@@YGJPAUHWND__@@IIJ@Z) 中被引用
1>pchelpware.obj : error LNK2019: 无法解析的外部符号 "void __cdecl add_mapping(unsigned long)" (?add_mapping@@YAXK@Z),该符号在函数 "long __stdcall DialogProcStatic(struct HWND__ *,unsigned int,unsigned int,long)" (?DialogProcStatic@@YGJPAUHWND__@@IIJ@Z) 中被引用
1>pchelpware.obj : error LNK2019: 无法解析的外部符号 "char * __cdecl Getinfo(char *)" (?Getinfo@@YAPADPAD@Z),该符号在函数 "long __stdcall DialogProcStatic(struct HWND__ *,unsigned int,unsigned int,long)" (?DialogProcStatic@@YGJPAUHWND__@@IIJ@Z) 中被引用
1>pchelpware.obj : error LNK2001: 无法解析的外部符号 "unsigned int const UWM_PORT_FORWARD_ENGINE_THREAD_NOTIFICATION" (?UWM_PORT_FORWARD_ENGINE_THREAD_NOTIFICATION@@3IB)
1>pchelpware.obj : error LNK2019: 无法解析的外部符号 "int __cdecl AnyThread(void)" (?AnyThread@@YAHXZ),该符号在函数 _WinMain@16 中被引用
1>.\Debug\PcHelpWare_viewer.exe : fatal error LNK1120: 6 个无法解析的外部命令
Code: Select all
///upnp
void GetDeviceInformation();
char *Getinfo(char* model);
BOOL AnyThread();
void add_mapping( DWORD port);
void remove_mapping();
Regards,
Kevin Hou