Click to See Complete Forum and Search --> : Why i am not getting a pointer to a function in dll


anand_gore
May 12th, 1999, 06:04 AM
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

chris law
May 12th, 1999, 06:25 AM
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

Lothar Haensler
May 12th, 1999, 06:32 AM
if you use the DUMPBIN utility with the /EXPORTS argument it will tell you the REAL name of all your functions.

anand_gore
May 12th, 1999, 07:44 AM
How this can be achieved ??
I am not getting what u told...please explain..
Whats ordinal number??
Thank
Anand

chris law
May 12th, 1999, 08:48 AM
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

BrianOG
May 12th, 1999, 10:48 AM
is the function exported?