After more 1 000 000 (one million) views on forum for 1.5.0.x development versions... and 1.6.0.0 version
A new stable version, UltraVNC 1.6.1.0 and UltraVNC SC 1.6.1.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38080

Celebrating the 22th anniversary of the UltraVNC (25th anniversary since the laying of the foundation stone): https://forum.uvnc.com/viewtopic.php?t=38031

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

Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

Development: UltraVNC development is always here... Any help is welcome.

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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

compile with vs2010 undeclared identifier

Post Reply
teacherwilli
8
8
Posts: 26
Joined: 2005-11-22 07:18

compile with vs2010 undeclared identifier

Post by teacherwilli »

Hallo,

I compile winvnc with visual studio 2010 with "error C2065" (undeclared identifier) in vncproperties.cpp and vncpropertiespoll.cpp in several lines. Many identifiers, such as "IDC_CONNECT_SOCK", couldn´t be found. I think, they couldn´t be found because they are defined in the resource.h in the directory ...uvnc_settings... and not in the winvnc-directory. In older versions the identifiers used in the vncproperties.cpp stood all in the resource.h in the winvnc-directory.
Is it only a problem of the project settings? (paths?)
Thanx for help!
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6937
Joined: 2004-04-23 10:21
Contact:

Re: compile with vs2010 undeclared identifier

Post by Rudi De Vos »

UltraVNC Project Root\UltraVNC\winvnc\winvnc\resource.h(37):#define IDC_CONNECT_SOCK 1004
UltraVNC Project Root\UltraVNC\winvnc\winvnc\vncproperties.cpp(37):#include "winvnc.h"
and winvnc.h contain
#include "stdhdrs.h"
#include "resource.h" <<<<<<<<<<<<<<<<<<<<<<
If resource.h was not in the path, you should get an error the resource.h is not found..

Did you started with the winvnc.sln ?
Don't use the resource.h from uvnc_settings as it has different numbers
(UltraVNC Project Root\UltraVNC\uvnc_settings\uvnc_settings\resource.h(132):#define IDC_CONNECT_SOCK 1201)
UltraVNC links (join us on social networks):
- Website: https://uvnc.com/
- Forum: https://forum.uvnc.com/
- GitHub sourcecode: https://github.com/ultravnc/UltraVNC
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- 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
- uvnc2me: https://uvnc2me.com/
teacherwilli
8
8
Posts: 26
Joined: 2005-11-22 07:18

Re: compile with vs2010 undeclared identifier

Post by teacherwilli »

Problem solved (but i dont know why).
Thanx for your "hyper fast" answering!
Post Reply