|
-
May 12th, 1999, 06:04 AM
#1
Why i am not getting a pointer to a function in dll
I am getting the handle to the dll in HANDLE properly but i am always get the function pointer null..
Why this must be happening??Can anybody tell me..I tried and used another library it works..
What may be the problem with the dll.I am calling getProcAddress with rite proc name...
Thanks in advance
-
May 12th, 1999, 06:25 AM
#2
Re: Why i am not getting a pointer to a function in dll
may be try to get pointer by ordinal number instead of function name so you are sure it's not a name mangling problem.
chrislaw
-
May 12th, 1999, 06:32 AM
#3
Re: Why i am not getting a pointer to a function in dll
if you use the DUMPBIN utility with the /EXPORTS argument it will tell you the REAL name of all your functions.
-
May 12th, 1999, 07:44 AM
#4
Re: Why i am not getting a pointer to a function in dll
How this can be achieved ??
I am not getting what u told...please explain..
Whats ordinal number??
Thank
Anand
-
May 12th, 1999, 08:48 AM
#5
Re: Why i am not getting a pointer to a function in dll
do it like Lothar suggested or create a .def file or create a type library. I'm not sure but maybe the first exported function automatically gets ID 0, second 2 and so on... Instead of using name with GetProcAddress you can use this ordinal ID number too...
G'Things
chrislaw
-
May 12th, 1999, 10:48 AM
#6
Re: Why i am not getting a pointer to a function in dll
is the function exported?
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
|