473,803 Members | 3,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.l ib")

this is a part of my .CPP file:

#pragma comment(linker, "/EXPORT:_ExpFunc 1,@1=original.@ 1,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc 2,@2=original.@ 2,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc 3,@3=original.@ 3 ,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc 4,@4=original.@ 4,NONAME")
#pragma comment(linker, "/EXPORT:_ExpFunc 5,@5=original.@ 5,NONAME")
...

what can i do?

regards

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

Mar 12 '06 #1
0 1080

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

Similar topics

4
8988
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
7362
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 be any advantage in having strcat and strcpy return a pointer to the "end" of the destination string rather than returning a
1
1908
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 Pocket pc it returns MissingMethod Exception. Code for DLL is NativeFunctions.h
12
12217
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
7944
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 information on ordinals. For example, I currently use: Console.WriteLine(myDate.ToString("d MMMM, yyyy"));
2
4359
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
2512
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 #Modified: 2006-12-31
3
5683
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 tried using dumpbin.exe but it only returns for each ordinal (except the first few): ordinal hint RVA name 21 0 00002439 DllCanUnloadNow 25 1 00007F41 DllGetClassObject 116 2 0000539C DllMain
6
6214
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 ..i am using vista ,thank u...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10550
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.