473,386 Members | 2,078 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,386 software developers and data experts.

Calling function exported in a dll..

Hi,
Using a disassembler, i am able to see the exported functions in a dll.
My question is, how do i make a call to those functions and compile my
code if i do not have the header?

Jun 3 '06 #1
9 2236
farseer wrote:
Hi,
Using a disassembler, i am able to see the exported functions in a dll.
My question is, how do i make a call to those functions and compile my
code if i do not have the header?


http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
Alan Johnson
Jun 3 '06 #2
i swear, this place is really anal about questions asked here it
seems...seems you folks are expecting only those well versed in c++ to
ask questions...either that or everyone gets a kick out posting that
parashift link.

Sometimes, for a novice, it is difficult to know exactly how a question
is categorized...esp if you are not well versed in the language. Does
not matter here however...there seems to be very little tolerance for
those that are trying to learn.

i guess by your response it means in native/ansi c++, it is impossible
to call functions in a dll by inspection...

Alan Johnson wrote:
farseer wrote:
Hi,
Using a disassembler, i am able to see the exported functions in a dll.
My question is, how do i make a call to those functions and compile my
code if i do not have the header?


http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
Alan Johnson


Jun 3 '06 #3
* farseer:
Using a disassembler, i am able to see the exported functions in a dll.
My question is, how do i make a call to those functions and compile my
code if i do not have the header?


If you ask in [comp.os.ms-windows.programmer.win32] I'll answer it if
nobody else does first.

Here, it's flagrantly off-topic.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Jun 3 '06 #4
farseer wrote:
i swear, this place is really anal about questions asked here it
seems...seems you folks are expecting only those well versed in c++ to
ask questions...either that or everyone gets a kick out posting that
parashift link.
Take it this way:

If we did answer your (off topic) question, we would also have to answer
hundreds of other off topic questions asked here from time to time. This
would mess up this group and those who really have a problem regarding
the language would be (unfairly) less attended.

If we did the above, we would as well rename the group to
comp.programming to better convey our topicality. So why not just post
to comp.programming for everyone's sake?

Sometimes, for a novice, it is difficult to know exactly how a question
is categorized...esp if you are not well versed in the language. Does
not matter here however...there seems to be very little tolerance for
those that are trying to learn.
It is not about how you verse your question. Off topic here means one or
more of the following:

non-C++ language-related
platform-dependent
homework

Your question was both non-C++ language related AND platform-dependent.
If you did not know that, now you do.

We are suggesting you to post to other groups for your very best
benefit: that your question will be much better answered in detail there.

i guess by your response it means in native/ansi c++, it is impossible
to call functions in a dll by inspection...


It is indeed impossible with standard C++ (ISO/IEC 14882:2003.) You have
to resolve to platform-specific solutions. Google "DLL call" will get
you started.

Regards,
Ben
Jun 3 '06 #5
farseer wrote:
i swear, this place is really anal about questions asked here it
seems...
I guess some are just tired to see the same off-topic question for the
hundredth time.
seems you folks are expecting only those well versed in c++ to
ask questions...
No.
either that or everyone gets a kick out posting that parashift link.
It's this newsgroup's FAQ. It's usually a good idea to mention the FAQ if it
contains something relevant to the question instead of repeating the same
answer over and over and over again. That's what FAQs are there for.
However, it's right that posting just a link to it could be considered a bit
rude. Still that particular FAQ is relevant and helpful.
Sometimes, for a novice, it is difficult to know exactly how a question
is categorized...esp if you are not well versed in the language. Does
not matter here however...there seems to be very little tolerance for
those that are trying to learn.
You're right that it's not good to just assume that the OP knows that an
answer would be off-topic.
i guess by your response it means in native/ansi c++, it is impossible
to call functions in a dll by inspection...


Yes. In fact, the C++ standard doesn't even define DLLs or anything similar.

Jun 3 '06 #6
In article <11*********************@j55g2000cwa.googlegroups. com>,
"farseer" <fa*****@optonline.net> wrote:
i swear, this place is really anal about questions asked here it
seems...seems you folks are expecting only those well versed in c++ to
ask questions...either that or everyone gets a kick out posting that
parashift link.
Not at all. After they ask the question and are told that the question
has nothing to do with C++, we expect that they have learned something.
IE we expect that they are not well versed in C++, but they have more
knowledge about C++ than they did before they received the answer they
did.
Sometimes, for a novice, it is difficult to know exactly how a question
is categorized...esp if you are not well versed in the language. Does
not matter here however...there seems to be very little tolerance for
those that are trying to learn.
It does matter, it is important for us to help the questioner categorize
his question. Hence the comments as to where to post said question and
that the question isn't a C++ question.
i guess by your response it means in native/ansi c++, it is impossible
to call functions in a dll by inspection...


There, you learned something about C++. Our task was accomplished. :-)

--
Bene disserere est finis logices. -- Aristotle
Jun 3 '06 #7
benben wrote:
farseer wrote:
i swear, this place is really anal about questions asked here it
seems...seems you folks are expecting only those well versed in c++ to
ask questions...either that or everyone gets a kick out posting that
parashift link.


Take it this way:

If we did answer your (off topic) question, we would also have to answer
hundreds of other off topic questions asked here from time to time.


The respondent could simply have pointed out that no such mechanism
exists in C++, and that therefore the question is not topical, rather
than brushing him off like that. Firm, but gentle.

--
Mike Smith
Jun 3 '06 #8
Daniel T. wrote:
In article <11*********************@j55g2000cwa.googlegroups. com>,
"farseer" <fa*****@optonline.net> wrote:
i swear, this place is really anal about questions asked here it
seems...seems you folks are expecting only those well versed in c++ to
ask questions...either that or everyone gets a kick out posting that
parashift link.


Not at all. After they ask the question and are told that the question
has nothing to do with C++, we expect that they have learned something.


You'd have a point, if the responder actually *told* the OP that the
question was off-topic and that no such mechanism exists in C++.
Instead, the responder gave the OP the equivalent of "talk to the hand",
which is just rude. I'm as much a supporter of preserving the
topicality of this NG as the next guy, but that doesn't mean we have to
be insufferable pricks while we're doing it.

--
Mike Smith
Jun 3 '06 #9
thank you, you've been a great help.

Alf P. Steinbach wrote:
* farseer:
Using a disassembler, i am able to see the exported functions in a dll.
My question is, how do i make a call to those functions and compile my
code if i do not have the header?


If you ask in [comp.os.ms-windows.programmer.win32] I'll answer it if
nobody else does first.

Here, it's flagrantly off-topic.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Jun 3 '06 #10

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

Similar topics

1
by: Private Pyle | last post by:
DB2 version 8, fixpack 5. Aix 5.1.0.0 Using C for AIX compiler. I'm having a problem where I can create stored procedures but I'm getting -444 when I call them. It's a new environment for...
2
by: Pawan Aggarwal | last post by:
I'm having trouble with calling an exported function in a native DLL compiled with eMbedded Visual C++ in C# application in PocketPC 2002 OS. Problem Description follows: I have one exported...
1
by: seash | last post by:
class xyz{ public void somefunction{ if(this.folderBrowserDialog1.ShowDialog() == DialogResult.OK) { m_varFolderPath = this.folderBrowserDialog1.SelectedPath; m_varFolderPath += ...
17
by: Bill Grigg | last post by:
I have been successfully calling DLL's using VC++ 6.0 and also using VC++7.1 (.NET). I only mention this because I have never felt comfortable with the process, but nonetheless it did work....
1
by: Abhishek | last post by:
Hello All I am able to call the function exported by Exe from a dll file im getting the address of the function but whille calling that function im getting access violation Error as bellow my code...
0
by: Abhishek | last post by:
Hello All I am able to call the function exported by Exe from a dll file im getting the address of the function but whille calling that function im getting access violation Error as bellow my code...
1
by: Mayur | last post by:
Hello All I am able to call the function exported by Exe from a dll file im getting the address of the function but whille calling that function im getting access violation Error as bellow my code...
1
by: Mayur | last post by:
Hello All I am able to call the function exported by Exe from a dll file im getting the address of the function but whille calling that function im getting access violation Error as bellow my code...
11
by: briankirkpatrick | last post by:
Forgive me if my post seems a little amateurish... I'm requesting assistance from some of you smart folks out there to get the managed calls write that meet the specification in the esa.h for...
1
by: rock31 | last post by:
I have programed a DLL, it compiles fine from C++ express edition 2008. But I can not call it from VBA. The following is the code, hope anyone can help me. This is testdll2_for_vba.h #ifndef...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.