Results 1 to 6 of 6

Thread: VB RAS? - Getting DUN Names!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Posts
    31

    VB RAS? - Getting DUN Names!

    I posted this in the networking forum.. but:

    http://www.vbforums.com/showthread.p...hreadid=138896

    ta.

  2. #2
    Addicted Member darrenl's Avatar
    Join Date
    Jul 2000
    Location
    Portsmouth, UK
    Posts
    148
    This site is very usefull in explaing the RAS API.

    http://www.totalenviro.com/PlatformVB

    Hope this helps.
    Dazzer

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Posts
    31
    Hi,

    thanks for replying, I've got the helpfiule from the site, but the file says use Enum[..] to get the connection names.. however in the enum part, it will only return the number of phonebook entries..

  4. #4
    Addicted Member darrenl's Avatar
    Join Date
    Jul 2000
    Location
    Portsmouth, UK
    Posts
    148
    If you look at the first eample in :-

    Dial-up Networking\Working with phonebook entries\Enumerating existing entries The example is in yellow. Paste this code into a module. Then from a command button or something insert this code.
    Code:
    Dim myRasEntry() As VBRasEntryName
    Dim ret As Long
    Dim l As Long
        
        ret = VBRasGetAllEntries(myRasEntry)
    
        For l = LBound(myRasEntry) To UBound(myRasEntry)
            Debug.Print myRasEntry(l).entryname
        Next
    The return value is the count of entries, but the array you passed is now filled with the name of each entry.

    Happy coding.
    Dazzer

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Posts
    31
    aah

    thanks, I was too hasty to look properly into it!

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Posts
    31
    darrenl,

    I've done what I wanted, but in order for me to replicate the WHOLE DUN settings, I can't write the user/pass to the new dun I've just created.. read thru that help file and the set dial params function doens't have an "entryname" to pass to..

    any ideas?

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