compile with vs2010 undeclared identifier

compile with vs2010 undeclared identifier

Postby teacherwilli » 2013-11-08 15:22

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!
teacherwilli
8
8
 
Posts: 26
Joined: 2005-11-22 07:18

Re: compile with vs2010 undeclared identifier

Postby Rudi De Vos » 2013-11-08 15:47

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)
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5488
Joined: 2004-04-23 10:21

Re: compile with vs2010 undeclared identifier

Postby teacherwilli » 2013-11-08 16:19

Problem solved (but i dont know why).
Thanx for your "hyper fast" answering!
teacherwilli
8
8
 
Posts: 26
Joined: 2005-11-22 07:18


Return to 1.0.9.6 (stable)

Who is online

Users browsing this forum: No registered users and 1 guest