Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: 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://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Compile with vs2008 error in keymap.h

Post Reply
marsyang
Posts: 1
Joined: 2011-05-03 10:53

Compile with vs2008 error in keymap.h

Post by marsyang »

Hi all

I use svn to get the latest source code.
I use vs 2008 to compile vncview.
But I have a error when it compile the keymap.h.

The error message is as below:
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(173) : error C2001: newline in constant
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(173) : warning C4066: characters beyond first in wide-character constant ignored
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(174) : error C2143: syntax error : missing '}' before '{'
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(174) : error C2143: syntax error : missing '}' before '{'
2>z:\ultravnc\ultravnc project root\ultravnc\vncviewer\KeyMap.h(174) : error C2143: syntax error : missing ';' before '{'
....

That comes from the structure
static const vncDeadKeyMapping_t deadKeyMap[] = {
{XK_dead_grave , L'`' }, // +U0060
{XK_dead_acute , L'? }, // +U00A8
{XK_dead_acute , L'\'' }, // +U0027
{XK_dead_circumflex , L'^' }, // +U005E
{XK_dead_tilde , L'~' }, // +U007E
{XK_dead_diaeresis , L'? }, // +U00B4
{XK_dead_diaeresis , L'"' }, // +U0022
{XK_dead_abovering , L'? }, // +U00B0
{XK_dead_cedilla , L'? }, // +U00B8
};

I think it might be the encode issue. So I save it in unicode format.
But it still fail.
Would anyone know how to fixed it?
Thanks for your help.
PaulVincent
Posts: 1
Joined: 2012-07-27 14:53

Re: Compile with vs2008 error in keymap.h

Post by PaulVincent »

http://www.koders.com/cpp/fidCB6D3E2A53 ... dowshookex
line 167
copy and save as unicode-utf8
zonesowhat
8
8
Posts: 20
Joined: 2014-04-12 07:44

Re: Compile with vs2008 error in keymap.h

Post by zonesowhat »

The answer above cannot be useful.
Post Reply