Feasibility of VPN connection using VB6 and RAS API?

This may not be as robust as you need, but I have called out to the system rasdial command in the past for simple situations where I needed to setup a VPN connection USAGE: rasdial entryname username password|* /DOMAIN:domain /PHONE:phonenumber /CALLBACK:callbacknumber /PHONEBOOK:phonebookfile /PREFIXSUFFIX rasdial entryname /DISCONNECT rasdial Not industrial strength, but good to use in scripts and such.

This may not be as robust as you need, but I have called out to the system rasdial command in the past for simple situations where I needed to setup a VPN connection. USAGE: rasdial entryname username password|* /DOMAIN:domain /PHONE:phonenumber /CALLBACK:callbacknumber /PHONEBOOK:phonebookfile /PREFIXSUFFIX rasdial entryname /DISCONNECT rasdial Not industrial strength, but good to use in scripts and such.

I was hoping for more control, but willsettle for works ;) – cmsjr Jan 13 '09 at 2:26 I am sure that someone somewhere has wrapped this API using COM/ActiveX. Depending on your desire/ability to pay, you could get more control that route. Otherwise, I think you may be stuck creating your own wrapper from VB.

:) – Jeremy Jan 13 '09 at 13:09.

Is . Net completely not an option or is it not an option to switch everything you have into . Net?

You could create a . Net class library and enable COM+ and then use the library in your existing VB6 application. Apologies if this isn't an option either.

Solid suggestion, but no . NET at all. – cmsjr Jan 10 '09 at 3:18.

In worse case where you only find . NET examples I would use . NET Reflector to see what APIs the .

NET framework is calling and what parameters it is passing. I did this when I was trying to use GDI+ in VB6. A algorithm worked great in .

NET but failed badly when I used the direct API in VB6. Using reflector I found the parameter I was messing up and then it started to work.

If you can handle the interop and understand converting C# to VB6, I have pretty much all of the RAS API completed on my open source project. You could just take the bits and pieces of it out you need and put them in your project. Just check out the source code tab on the project, it's all under there.

dotras.codeplex.com The component you'd be interested in is RasDialer, just be warned that component is pretty complex under the hood.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions