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

Connection info file does not open in compiled vncviewer

Post Reply
Marc
8
8
Posts: 9
Joined: 2015-11-04 21:15

Connection info file does not open in compiled vncviewer

Post by Marc »

I compiled version 1.2.0.9 using vncviewer_vs2013.sln in vs2015 . I included nasm.exe and the directx folders.
Compilation worked fine and vncviewer.exe in the Debug folder works.

I created a connection info file (.vnc file) from a running remote desktop session (ctl+Alt+F5).

When I open this file with this new created vncviewer.exe, a window opens with the error message:
Invalid VNC server specified, Usage includes........ etc.
and then the application closes down

Opening this .vnc file with the original vncviewer works fine, but with the compiled vncviewer I get this window.

I tried to debug the code but I get an error message about rdr.lib when debugging
So I browsed the code but could not find a solution so far.
It seems that the error window is called from VNCoptions.cpp but I expect that this should be handled in clientconnections.cpp

Can you give me a clue?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Connection info file does not open in compiled vncviewer

Post by Rudi De Vos »

did you open the .vnc file by double click or
vncviewer.exe -config filename.vnc

How i compile VS2015 in debug
on top select [debug][X64]
rebuild

.vnc is a readable file, is the hostname correct ?
Marc
8
8
Posts: 9
Joined: 2015-11-04 21:15

Re: Connection info file does not open in compiled vncviewer

Post by Marc »

I opened by double clicking. That didn't work.

I just tried a shortcut "vncviewer.exe -config filename.vnc" and that works! (So host and port should be ok)

The hostname is:
host=ID
port=XXXX
where XXXX is the ID number


Debug option X64 and a rebuild resulted in the same error message:
unable to start program "PATH\rdr\x64\Debug\rdr/lib"
Operation not supported. Unknown error: 0x800700c1
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Connection info file does not open in compiled vncviewer

Post by Rudi De Vos »

Compiler
Set as default project to vncviewer and not rdr, else the compiler try to run rdr as exe and that's a lib.

.vnc is the association configured at OS level.
when you click a .vnc file it need to execute vncviewer -config %1 and not vncviewer %1

save as vncreg.reg, but first you need to remove the old .vnc association
else the new is not accepted.

Code: Select all

[HKEY_CLASSES_ROOT\.vnc]
@="VncViewer.Config"

[HKEY_CLASSES_ROOT\VncViewer.Config]
@="VNCviewer Config File"

[HKEY_CLASSES_ROOT\VncViewer.Config\DefaultIcon]
@="C:\\Program Files (x86)\\UltraVNC\\vncviewer.exe\\vncviewer.exe,0"

[HKEY_CLASSES_ROOT\VncViewer.Config\shell]

[HKEY_CLASSES_ROOT\VncViewer.Config\shell\open]

[HKEY_CLASSES_ROOT\VncViewer.Config\shell\open\command]
@="\"C:\\Program Files (x86)\\UltraVNC\\vncviewer.exe\" -config \"%1\""
Marc
8
8
Posts: 9
Joined: 2015-11-04 21:15

Re: Connection info file does not open in compiled vncviewer

Post by Marc »

Rudy, thanks.
Both suggestions worked.

On the first line in the registry file I added :
Windows Registry Editor Version 5.00
Followed by your registry data above
and that did the job.
Problem solved...
Post Reply