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

No existing instance of WinVNC could be contacted?

Post Reply
fredtheman
8
8
Posts: 26
Joined: 2006-05-06 05:31

No existing instance of WinVNC could be contacted?

Post by fredtheman »

Hello

I'm writing an applet in VB Classic that shells to winvnc.exe using the -connect switch to dial out to the viewer.

Problem is, I get the error message above. Does I need to first install the WinVNC server as a Windows service before being able to dial out? I'd like to avoid this because some customers don't have admin rights on their PC.

Thank you
Fred.
SuperTurtle
20
20
Posts: 48
Joined: 2006-02-27 11:31

Post by SuperTurtle »

You need to “run” the viewer first…and THEN GIVE it your parameters…

(so, you need to do this in two steps)

So, 1st shell,
Winvinc.exe

(and, I assume you use a api shell to “wait” until the command is done….).

Then, execute your existing shell with all of your parameters…

SuperTurtle
fredtheman
8
8
Posts: 26
Joined: 2006-05-06 05:31

Post by fredtheman »

SuperTurtle wrote:You need to “run” the viewer first…and THEN GIVE it your parameters…
OK, works better that way :-)
SuperTurtle wrote:(and, I assume you use a api shell to “wait” until the command is done….).
Incidently, I was wondering how to wait for a Shell-ed command to finish, possibly telling me how it went, before moving on to the next. I'll see how VB does this.

One other task is checking if WinVNC is already running, and avoid relaunching it with "-run". I'll check the Win32 API for a function to go through running applications.

Thank you
Fred.
SuperTurtle
20
20
Posts: 48
Joined: 2006-02-27 11:31

Post by SuperTurtle »

>Incidently, I was wondering how to wait for a Shell-ed command to finish, possibly telling me how it went, before moving on to the next. I'll see how VB does this.

Actually, you might not need to use a api shellwait….

Just try running the first shell (-run), and then try the shell again. If you don’t get a error, then likely you don’t have to worry about the shell waiting (I just tested this..and there was not a problem). So, it seems that shell at least waits untill the program is loaded..but no more then that..

And, another possible is to write out a batch file..and one shell to that would also prevent any stepping over the shell commands…

Here is one api wait example…it is for ms-access, but will work equally well for VB6..

http://www.mvps.org/access/api/api0004.htm

I don’t think you actually need the api wait, but I was being cautious...so, try without....


SuperTurtle
Post Reply