Maghz
April 24th, 2001, 07:40 PM
Hi Everyone,
I'm having problems with getting the address of my only function in my DLL using GetProcAddress.
I have created a test DLL in VB 6.0 (Test.Dll). This DLL has one Multiuse Class. The class has only one public function "MyProc".
I use LoadLibrary to load the DLL, and use GetProcAddress to get the address for the function "MyProc". For some reasons, GetProcAddress passes ZERO for the address of "MyProc" function. Can anyone help please. Thanks.
Here is the code:
lHandle = LoadLibrary ("Test.Dll" & vbNullChar)
lProcAddress = GetProcAddress ( lHandle, "MyProc" & vbNullChar)
I get ZERO for lProcAddress!!!!
I'm having problems with getting the address of my only function in my DLL using GetProcAddress.
I have created a test DLL in VB 6.0 (Test.Dll). This DLL has one Multiuse Class. The class has only one public function "MyProc".
I use LoadLibrary to load the DLL, and use GetProcAddress to get the address for the function "MyProc". For some reasons, GetProcAddress passes ZERO for the address of "MyProc" function. Can anyone help please. Thanks.
Here is the code:
lHandle = LoadLibrary ("Test.Dll" & vbNullChar)
lProcAddress = GetProcAddress ( lHandle, "MyProc" & vbNullChar)
I get ZERO for lProcAddress!!!!