Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Help!! Compilation errors for PcHelpWare_viewer project

Post Reply
kevin hou
Posts: 1
Joined: 2011-12-01 14:29

Help!! Compilation errors for PcHelpWare_viewer project

Post by kevin hou »

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
B
800
800
Posts: 2338
Joined: 2009-09-09 14:05

Re: Help!! Compilation errors for PcHelpWare_viewer project

Post by B »

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...
Post Reply