Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Read DLL source code

Read DLL source code

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wow9999
    wrote on last edited by
    #1

    Hi all how can i open a dll to read it's scource code? Thanks

    B R 2 Replies Last reply
    0
    • W wow9999

      Hi all how can i open a dll to read it's scource code? Thanks

      B Offline
      B Offline
      Brad Sokol
      wrote on last edited by
      #2

      The short answer is you can't. DLLs - and other types of Windows executable files like .exe, .scr, .cpl, ocx, and so on - contain machine code that has been compiled from higher level source languages. With the exception of open source projects, the original source files - which are separate from the DLL - are almost never provided with an application. Depending on what you're trying to learn, there may be other ways. The web is an amazing place to find code that demonstrates how to do almost anything. CodeProject and MSDN are great places to start. Using development tools that come with Visual Studio, the Platform SDK or sites on the web such as SysInternals, it is possible to view the DLL's external interface. From this, you may be able to learn a bit about what the DLL can do, but not how it does it. Have a look at "OLE-COM Object Viewer" (Platform SDK) or "OLE Viewer" (Visual Studio 6.0. If the DLL implements COM objects, you can view the type library which show you the interfaces, methods, etc. "Depends" which comes with Visual Studio lets you look at the functions and data exported by a DLL, as well as what other DLLs it depends on. Process Explorer from SysInternals lets you see what DLLs a running program is using. Hope that helps.

      1 Reply Last reply
      0
      • W wow9999

        Hi all how can i open a dll to read it's scource code? Thanks

        R Offline
        R Offline
        Ryan Binns
        wrote on last edited by
        #3

        You can't get a DLLs source code from the DLL.

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups