Help!! Compilation errors for PcHelpWare_viewer project

Help!! Compilation errors for PcHelpWare_viewer project

Postby kevin hou » 2011-12-01 14:50

Hi experts,

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 个无法解析的外部命令


I found the referenced functions are placed in pchelpware.cpp:
Code: Select all
///upnp
void GetDeviceInformation();
char *Getinfo(char* model);
BOOL AnyThread();
void add_mapping( DWORD port);
void remove_mapping();


Anyone can help to tell me where is the implementation for those functions? Or how to fix the compilation errors? Thanks very much for help!

Regards,
Kevin Hou
kevin hou
 
Posts: 1
Joined: 2011-12-01 14:29

Re: Help!! Compilation errors for PcHelpWare_viewer project

Postby B » 2011-12-01 22:59

Rudi might be the only one who can answer that, but as a wild guess I'd suggest trying an older version of Visual Studio -- I've read that there are things that just won't compile with the newer version.

Also, no need to double post; we have a moderation queue for new users...
B
Super-Mod
Super-Mod
 
Posts: 2347
Joined: 2009-09-09 14:05


Return to PcHelpWare

Who is online

Users browsing this forum: No registered users and 5 guests