PDA

Click to See Complete Forum and Search --> : Dynamically loading Dll's


amitabh
Nov 5th, 2000, 05:59 AM
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.

parksie
Nov 5th, 2000, 06:46 AM
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.