• C

OPening DLL

I got a DLL lets say ABC.DLL  , If I want to Open that DLL , I mean to view the functions which are present in ABC.DLL .. How can I do that .. is there is any tool for that ???
kittuGAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PacmanCommented:
I think you can do a implib on this dll and generate a mapfile.
If you use Borland C++ then you can use "implib".
Visual C++ doesn't come with such a tool. But there's a shareware version available called "implib32".

note: you only see the names of the functions but not the parameters and the result.

hope this helps you a little bit
Pacman
0
jhanceCommented:
>Visual C++ doesn't come with such a tool.

Sure it does!

DUMPBIN /EXPORTS ABC.DLL

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PacmanCommented:
oh fine. jhance what I wanted to say is that VC doesn't come with implib-tool.
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

kittuGAuthor Commented:
I am a VB Programmer, I don't know any thing about VC++ , so it will be useful for me if any one writes the steps to be done in detail..

Thanks
0
jhanceCommented:
You asked how to get a listing of the exported function in a DLL.  The answer is:

DUMPBIN /EXPORTS ABC.DLL

I don't know if the DUMBIN tool is included with VB or not as I don't have this package.  Of course you asked this question in the "C Programming" area.

There is a LOT more to using a function from a DLL than just knowing the name.  You must know and quantity, order, and type of each argument as well as the type of any returned value.  There are no tools to extract this information as it is NOT stored in the DLL itself.

You must rely on information provided by the creator of the DLL.  If it's a Windows API DLL, you can find the information in the SDK documentation.  If it's a 3rd party DLL, then you need to go back to them for the information.  As a minimum, if you had the C ".h" or header file for the functions, you could construct the VB data needed to make use of the functions.

I'll be so bold as to say that if you DO NOT HAVE either a detailed description of each function in the DLL or the C header file for it, you will not be able to use the DLL from your VB program.



0
jhanceCommented:
By the way, this is one reason why VB components based on COM or ActiveX are much more popular in the VB scene than raw DLLs.  COM embeds this information in the component itself via the Type Library information.
0
kittuGAuthor Commented:
I got VC++ Installed on my Machine, but I don't know how to Open DLL in VC++
0
jhanceCommented:
For the 3rd time:

DUMPBIN /EXPORTS ABC.DLL

will give you a list of the exported functions.

If this is not what you are looking for, please define what you mean by "Open DLL".  DLLs are not normally "opened".  If you want to make use of the DLL from your VC++ program, please see the SDK docs for LoadLibrary().
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.