Results 1 to 5 of 5

Thread: Connect to the net...

  1. #1

    Thread Starter
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Post

    How can I connect to the net using an existing Dial Up Networking connection in VB6?

    Basically, I want to click a button, and it connects me to that DUN.

    Thanks,
    Morgan
    [email protected] - Home
    [email protected] - Work
    Using VB6 SP6 but trying to learn VB2005EE

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123

    Post

    You can use this way:

    Public Sub ModemCallWin95_98()

    Dim WIN
    WIN = Shell("rundll32.exe rnaui.dll,RnaDial " & "Connect Name", 1)

    End Sub

    AND:

    Public Sub ModemCallWinNT()

    Dim NT
    NT = Shell("rasphone.exe [-d Connect Name]", 1)

    End Sub

    OR:
    Goto www.catalyst.com and download here free Socket French -package.

    - Dj4

  3. #3

    Thread Starter
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Post

    The problem with
    Code:
    Public Sub ModemCallWin95_98() 
         Dim WIN 
         WIN = Shell("rundll32.exe rnaui.dll,RnaDial " & "Connect Name", 1) 
    
    End Sub
    is that it only opens the Dial-Up box, it doesn't actually connect.

    I'm looking for an actual connect.
    Morgan
    [email protected] - Home
    [email protected] - Work
    Using VB6 SP6 but trying to learn VB2005EE

  4. #4

    Thread Starter
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Post

    The problem with
    Code:
    Public Sub ModemCallWin95_98() 
         Dim WIN 
         WIN = Shell("rundll32.exe rnaui.dll,RnaDial " & "Connect Name", 1) 
    
    End Sub
    is that it only opens the Dial-Up box, it doesn't actually connect.

    I'm looking for an actual connect.
    Morgan
    [email protected] - Home
    [email protected] - Work
    Using VB6 SP6 but trying to learn VB2005EE

  5. #5
    Lively Member
    Join Date
    Jan 1999
    Location
    Karjalohja, Finland
    Posts
    123

    Post

    Goto www.catalyst.com and download here free Socket French -package.

    That package include Ras ocx-component. Using that component you can connect actually.

    - Dj4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width