473,804 Members | 2,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("QT OControl.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 4615
radishcarrot wrote:
Hi, I try to access the QuickTime COM/ActiveX DLL file, QTOControl.dll
in my VC++ codes as follows:

HINSTANCE OTOControlLib = LoadLibrary("QT OControl.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("QT OControl.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 , "FunctionNa me" ) will return the
address of the function named "FunctionNa me" inside the DLL if it has
been exported by the DLL. But you must know the prototype of function
"FuncionNam e" 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("QT OControl.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 , "FunctionNa me" ) will return the
address of the function named "FunctionNa me" inside the DLL if it has
been exported by the DLL. But you must know the prototype of function
"FuncionNam e" 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.c om/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.program mer.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
5933
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 important changes, so in this thread I would like to focus on that issue alone. I have edited the Proposed Syntax example below to take out the changes unecessary to this discussion. I left in the change of "instance variable" syntax (...
6
4765
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 appreciated. Thanks in advance
5
7396
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 Run-time error. When I run it on an XP machine it crashes, but on an NT box it just generates an unknown error, handled by the error handler. I have debugged and stepped through the code and have narrowed the issue to the point at which the...
7
8876
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 want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
11
6607
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 where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
9
4163
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 verbaige completely wrong, but here goes nothing ... I'm currently using the MS Data Access Block for a desktop application I'm writing. Recently, I had to add a call to a web service, which in
2
1821
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 passing an argument) any member variable of its' own class. I thought the only way this could be possible would be to make a function a "friend" of the class. But I now beleive that it is still necessary to pass variables to the other class, is this...
0
871
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 same thing with different methods, all of which entail having web pages for multiple users each access the same set of common values initially stored in a single record in a MySQL table. 1st method) use a set of application variables that are...
4
2394
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 syntactic sugar (important as that can be)? 2. Are anonymous methods *required* anywhere? That is, are anonymous methods the only way to accomplish certain tasks in ..NET programming?
0
9711
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
9593
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
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...
0
10088
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7633
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
6862
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
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.