473,396 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1039

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Terry Coccoli | last post by:
Has anyone created a user function to return the ordinal position based on numeric input? In other words, f(1) returns 'st', f(2) returns 'nd', f(3) returns 'rd', etc.
81
by: Matt | last post by:
I have 2 questions: 1. strlen returns an unsigned (size_t) quantity. Why is an unsigned value more approprate than a signed value? Why is unsighned value less appropriate? 2. Would there...
1
by: vijay | last post by:
I'm having trouble with calling an exported function in a native DLL compiled with eMbedded Visual C++ using C#. Basicly, I have one exported function in the DLL: whenever i execute this exe to...
12
by: fox | last post by:
How do I (portably) make a forward reference to a static (I mean file-scope) variable? I've been using "extern" for years, for example: extern int x; int foo(void) { return x++; }
7
by: Dylan Parry | last post by:
Hi folks, I was wondering if there is any way of formatting a date to include the ordinal characters? I've looked at the documentation for DateTime.ToString(), but no where can I find...
2
by: Amit | last post by:
how can i call one project function in other project within a single solution. plz tell me the solution
7
by: JTree | last post by:
Hi,all I encountered a problem when using unicode() function to fetch a webpage, I don't know why this happenned. My codes and error messages are: Code: #!/usr/bin/python #Filename: test.py...
3
vekipeki
by: vekipeki | last post by:
Hi, first of all sorry if this isn't exactly C++ related, but didn't know where it would be more appropriate. I am trying to get actual function names from their ordinal numbers from a COM dll. I...
6
by: Rajakumarrs | last post by:
i am trying to retrieve exported function names from a dll ,using export directory .I can get a Export function (export by name)...i cant get function name(export only by ordinals)...give some logic...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.