a question about how to forward a function exported by ordinal only

4

42601551

in Jeff Partch's thread
http://groups.google.com/group/micr...901653d04ad774a?sa=X&oi=groupsr&start=1&num=3

says a way to forward function exported by ordinal. i tried, however
the linker reported me with the following:

PureGina.exp : error LNK2001: unresolved external symbol _ExpFunc1
PureGina.exp : error LNK2001: unresolved external symbol _ExpFunc10
PureGina.exp : error LNK2001: unresolved external symbol _ExpFunc11
PureGina.exp : error LNK2001: unresolved external symbol _ExpFunc12
PureGina.exp : error LNK2001: unresolved external symbol _ExpFunc13
....

i am sure that i did make a mock .DEF file for the orignal dll, and
compiled the .LIB through LIB.EXE, did add the line: #pragma
comment(lib, "original.lib")

this is a part of my .CPP file:

#pragma comment(linker, "/EXPORT:_ExpFunc1,@1=original.@1,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc2,@2=original.@2,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc3,@3=original.@3 ,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc4,@4=original.@4,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc5,@5=original.@5,NONAME")
...

what can i do?

regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top