Examining a DLL's interface

Posted on 2006-05-20
Last Modified: 2010-08-05

I once saw a program which can be used to examine the interface offered by a DLL.  Has anyone got a link to that program?  Does Visual Studio got a program which does this?  I have VS 2003?

Question by:ba272
    LVL 28

    Expert Comment

    This program will do exactly what you said: There is even an Add-On that will allow you to export the source as a visual studio project. This program will work with VS 2003 and VS 2005 (.net 1.x and .net 2.0)
    LVL 11

    Assisted Solution

    ba272, if you are talking of assemblies then you could use the reflector, which strickdd posted.
    or are you talking of dll's written in c or c++?
    LVL 48

    Accepted Solution

    If this is related to your previous question, this is general way.
    Try to find any information in the WEB about this Dll - maybe there are code samples of using it.

    Other information:

    1. Is this .NET Assembly?
    Try to add it as reference to any C# project. If this works - you have all it's interface available in the Object Browser.

    2. Is this COM Dll?
    Try to register it using  regsvr32 <dll name>
    If it is registered successfully, this is COM Dll. You can see it's interface in the OleView.exe program, which comes with Visual Studio. You can do this also using VB6 - add reference to Dll to any project, and see interface in the Object Browser.

    3. What functions are exported from Dll? Using dumpbin.exe command line tool which comes with Visual Studio, execute command:
    dumpbin /EXPORTS <dll name>

    4. Runtime Dll dependences:
    dumpbin /IMPORTS <dll name>

    Post results of these tests here.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now