Read DLL source code
-
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.
-
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"