Connection info file does not open in compiled vncviewer

Connection info file does not open in compiled vncviewer

Postby Marc » 2015-11-09 09:01

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?
Marc
 
Posts: 7
Joined: 2015-11-04 21:15

Re: Connection info file does not open in compiled vncviewer

Postby Rudi De Vos » 2015-11-09 09:42

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

Re: Connection info file does not open in compiled vncviewer

Postby Marc » 2015-11-09 10:02

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
Marc
 
Posts: 7
Joined: 2015-11-04 21:15

Re: Connection info file does not open in compiled vncviewer

Postby Rudi De Vos » 2015-11-09 10:39

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

Re: Connection info file does not open in compiled vncviewer

Postby Marc » 2015-11-14 09:07

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...
Marc
 
Posts: 7
Joined: 2015-11-04 21:15


Return to 1.2.0.X

Who is online

Users browsing this forum: No registered users and 2 guests