|
-
April 24th, 2001, 07:40 PM
#1
GetProcAddress
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!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|