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

how to use pchelpware in a vb.net project

Post Reply
turibbio
Posts: 5
Joined: 2008-10-27 09:48

how to use pchelpware in a vb.net project

Post by turibbio »

Hi all, I'm trying to add pchelpware to a little application in vb.net, but I wasn't able to do it. How can I do that?
RBJensen
8
8
Posts: 13
Joined: 2008-01-04 17:35
Location: Denmark

Re: how to use pchelpware in a vb.net project

Post by RBJensen »

Are you trying to create a client/viewer or server/remote controlled system?
turibbio
Posts: 5
Joined: 2008-10-27 09:48

Re: how to use pchelpware in a vb.net project

Post by turibbio »

I'm trying to create a server/remote controlled system
RBJensen
8
8
Posts: 13
Joined: 2008-01-04 17:35
Location: Denmark

Re: how to use pchelpware in a vb.net project

Post by RBJensen »

I've created such one in C#.
Perhaps you can use some of the code?
I'll try to find and clean it a bit later today.
turibbio
Posts: 5
Joined: 2008-10-27 09:48

Re: how to use pchelpware in a vb.net project

Post by turibbio »

I know also C#, if you haven't so much time, i could convert code. Thanks anyway for the reply. I'll waiting your reply!
RBJensen
8
8
Posts: 13
Joined: 2008-01-04 17:35
Location: Denmark

Re: how to use pchelpware in a vb.net project

Post by RBJensen »

PCHelpware server-side DLL's wrapped in a C# application - uploaded here:

http://drunkardswalk.dk/Files/PCHW_Demo.zip

Features:
Will add itself to Windows Firewall Exception list.

Port, username, address etc can be specified in .exe.config and the app will launch using those settings.

Settings can also be specified on the command line, and will then override .exe.config.

If there are no settings specified in either .exe.config or command line, they can be specified using the GUI.

Bugs: Does not always disconnect automatically after failing to connect.

I have so far used it to provide support from Denmark to locations in:
Denmark, The Faroe Islands, Romania and Holland ;P
turibbio
Posts: 5
Joined: 2008-10-27 09:48

Re: how to use pchelpware in a vb.net project

Post by turibbio »

Tnx for the code, you've been very helpful!
turibbio
Posts: 5
Joined: 2008-10-27 09:48

Re: how to use pchelpware in a vb.net project

Post by turibbio »

I'm sorry I've a question about the code. How do you do to add the assembly 1SCDLL.dll to the project? Just an easy copy/paste or you have used another procedure? tnx!
RBJensen
8
8
Posts: 13
Joined: 2008-01-04 17:35
Location: Denmark

Re: how to use pchelpware in a vb.net project

Post by RBJensen »

Some DLL's have to be added by rightclicking and "Add Reference", others don't. I am not sure exactly what the differences between those DLL types are.

This DLL is being called by using P/Invoke (the DllImport thingy), so you don't actually have to add it to the project, just make sure it is in the /bin/debug folder next to the .exe files. (or probably at least somewhere in the system path - /Windows or something)

The most "correct" way is probably the following:
Right-click the solution in VS, select Add->Existing item, select "files of type = Executable files", select the DLL, hit OK, and it will be included in the solution.
Then you can select the Properties window for the DLL and set "Copy to output directory" = "Copy if newer" or "Copy Always".

Hth.
Post Reply