Results 1 to 2 of 2

Thread: Dynamically loading Dll's

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288

    Lightbulb

    I am having trouble loading Dll's at run time. I know that there are functions LoadLibrary & GetProcAddress but I am unable to make any use of it. The LoadLibrary executes perfectly, but GetProcAddress returns 0. Moreover, how am I to use both these return values in my program.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You can't use DLL loading in VB, because it doesn't have any pointers. What GetProcAddress does is return a valid function pointer, but pointerless languages such as VB cannot use this.

    The only way this can work is to use an external DLL to handle your funcion calls.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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