Solved

DLL Questions

Posted on 2004-03-21
5
243 Views
Last Modified: 2010-04-17
Hey everybody. I have some questions having to do with .DLL's. I'm going to start points out at 50 and increase as needed, depending on how the questions affect my programming capabilities. So first question:
   Is it possible to somehow get the functions/classes in a .dll and use them in your program, on the basics of you don't know anythiing about them, all you have is a 3rd party .dll with no references or anything for it. For example, would it be possible to somehow take all the .dlls and .exes from AIM and integrate parts of it to your own program? Thanks in advanced.
- Drew
0
Comment
Question by:Drew_Benton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Assisted Solution

by:DonRameshSachin
DonRameshSachin earned 50 total points
ID: 10646701
Drew,
 Yes u can access the Methods and other public members of the Dll. But it is always adviceble to know the functionality of the methods provided by the DLL. Since, if the methids in a DLL has parameters, then u need to know the what r those parameters are meant for. See, like it is similar to APIs. U can use APIs with little knowledge of APIs, All u need to know, what is that method will do and what are the parameters that we need to pass and what would be the output from that method

I hope this would give u some ideas abt it.
DonRamesh
0
 
LVL 3

Accepted Solution

by:
pamboo earned 50 total points
ID: 10647126
To see the methods exposed by any DLL , u can use dumpbin.exe

For example , To see the methods exposed by windows kernel32.dll
 dumpbin e:\WINNT\system32\KERNEL32.DLL /exports (Run in command prompt)

Where u will get this dumpbin.exe ?

 It is not DOS internal command. U will get when u install vistual studio , U can find dumpbin.exe in VC98\bin subfolder of
Microsoft visual studio folder.

Also , for ur more references , to see the dlls associiated with any binaries , u can use View Dependency which also comes when with visual studio .(Depends.exe in Visual Studio Common\Tools subfolder)

- Rajan

0
 
LVL 3

Expert Comment

by:pamboo
ID: 10647155
U cannot get the definition of the functions or methods exposed by any dll (from the dll binary).

Depending on the type of the dll , u can only use those dlls in ur application .

-Rajan
0
 
LVL 9

Assisted Solution

by:bhagyesht
bhagyesht earned 50 total points
ID: 10648039
"Is it possible to somehow get the functions/classes in a .dll and use them in your program, on the basics of you don't know anythiing about them, all you have is a 3rd party .dll with no references or anything for it. "
I am assuming that you have lost the documentation and the person who made the dll is not traceable. in case thats not the case please check EE guidelines regarding IPR
If its an activex EXE open VB add a reference to it press F2 and u r done

Bhagyesh Trivedi
0
 

Author Comment

by:Drew_Benton
ID: 10671819
Thank you all I will glady increase points and split b/t ev1. Much thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question