469,906 Members | 2,210 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,906 developers. It's quick & easy.

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


in Jeff Partch's thread
http://groups.google.com/group/micro...&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

--
42601551
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 12 '06 #1
0 902

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Terry Coccoli | last post: by
12 posts views Thread by fox | last post: by
7 posts views Thread by Dylan Parry | last post: by
7 posts views Thread by JTree | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.