473,386 Members | 1,773 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.

How to access DLL methods n variables without .h n .lib file??

Hi, I try to access the QuickTime COM/ActiveX DLL file, QTOControl.dll
in my VC++ codes as follows:

HINSTANCE OTOControlLib = LoadLibrary("QTOControl.dll");

But how do I access the methods in the dll file?? The problem lies in
that QuickTime did not provide the .h or .lib file for the DLL file??

Any solution??
Thanks alot
:)

Jul 26 '06 #1
6 4593
radishcarrot wrote:
Hi, I try to access the QuickTime COM/ActiveX DLL file, QTOControl.dll
in my VC++ codes as follows:

HINSTANCE OTOControlLib = LoadLibrary("QTOControl.dll");

But how do I access the methods in the dll file?? The problem lies in
that QuickTime did not provide the .h or .lib file for the DLL file??

Any solution??
Try a windows programming group, this it OT here.

--
Ian Collins.
Jul 26 '06 #2

radishcarrot wrote:
Hi, I try to access the QuickTime COM/ActiveX DLL file, QTOControl.dll
in my VC++ codes as follows:

HINSTANCE OTOControlLib = LoadLibrary("QTOControl.dll");

But how do I access the methods in the dll file?? The problem lies in
that QuickTime did not provide the .h or .lib file for the DLL file??

Any solution??
Thanks alot
:)
Hi
GetProcAddress( OTOControlLib , "FunctionName" ) will return the
address of the function named "FunctionName" inside the DLL if it has
been exported by the DLL. But you must know the prototype of function
"FuncionName" in order to store and/or use the pointer returned by
GetProcAddress.
You can see the functions exported by a DLL using dependancy walker

Regads,
Uday Bidkar

Jul 26 '06 #3
* Uday Bidkar:
[off-topic answer to off-topic posting]

Please read the FAQ on what to post and not to post in this group.

Thank you.

--
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?
Jul 26 '06 #4

Uday Bidkar wrote:
radishcarrot wrote:
Hi, I try to access the QuickTime COM/ActiveX DLL file, QTOControl.dll
in my VC++ codes as follows:

HINSTANCE OTOControlLib = LoadLibrary("QTOControl.dll");

But how do I access the methods in the dll file?? The problem lies in
that QuickTime did not provide the .h or .lib file for the DLL file??

Any solution??
Thanks alot
:)

Hi
GetProcAddress( OTOControlLib , "FunctionName" ) will return the
address of the function named "FunctionName" inside the DLL if it has
been exported by the DLL. But you must know the prototype of function
"FuncionName" in order to store and/or use the pointer returned by
GetProcAddress.
You can see the functions exported by a DLL using dependancy walker

Regads,
Uday Bidkar
Thanks for the reply.
I tried the GetProcAddress but what if the function name is input
parameter?? then how do I go about doing it?

Anyway I thought this is c++ programming.. m I wrong?? Cos I just
started programming in C++ and thought that LoadLibrary, GetProcAddress
etc are C++ programming syntax.
Sorry

Jul 26 '06 #5
radishcarrot wrote:
>
Thanks for the reply.
I tried the GetProcAddress but what if the function name is input
parameter?? then how do I go about doing it?

Anyway I thought this is c++ programming.. m I wrong?? Cos I just
started programming in C++ and thought that LoadLibrary, GetProcAddress
etc are C++ programming syntax.
Sorry
It a C++ language group, we discuss the core language as defined by the
standard. Anything platform specific (DLLs for example) is of topic and
you'll get better advice on a platform specific group.

--
Ian Collins.
Jul 26 '06 #6
* radishcarrot:
>
Anyway I thought this is c++ programming.. m I wrong??
Yes.

See this group's FAQ item

"[To] Which newsgroup should I post my questions?"

currently at <url:
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9>

Cos I just
started programming in C++ and thought that LoadLibrary, GetProcAddress
etc are C++ programming syntax.
No, they're Windows API functions, accesible from any language that
supports them.

Try [comp.os.ms-windows.programmer.win32].

Sorry
--
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?
Jul 26 '06 #7

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

Similar topics

99
by: David MacQuigg | last post by:
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
5
by: Colin Anderson | last post by:
I discovered, with great excitement, this article http://www.davison.uk.net/vb2notes.asp when researching methods for emailing from Access via Notes. Unfortunatly, when I run this I get a...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
9
by: Clint | last post by:
Hey all - Excuse the cross-post ... I'm not sure what the appropriate newsgroup would be for this question. I have a question that I'm not quite sure how to ask. For all I know, I have the...
2
by: cdg | last post by:
Is there any way to directly access variables of one class from another class without passing any public member variables. Similar to how any function in a class can directly access (without...
0
by: Jeff | last post by:
I'm a bit new to visual web using VB (.net 2005). I'm using this in conjunction with MySQL and am starting to get the hang of things. Here is the question: I've been able to do essentially the...
4
by: Frankie | last post by:
I have just gotten up to speed on what anonymous methods are (syntax, capabilities, etc), and how they can be used with /called via delegates. What I am wondering is... 1. Are they only/mostly...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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.