Dll

This is a discussion on Dll within the C++ Programming forums, part of the General Programming Boards category; I am just wondering if it is possible to open a .DLL file in visual C++ or Dev C++? not ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    132

    Dll

    I am just wondering if it is possible to open a .DLL file in visual C++ or Dev C++? not the source but the actual .DLL.

  2. #2
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    well, you can look at it with the hex editor, but I don't know how much use that'd be too you.

    What are you trying to achieve?
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    A DLL is compiled machine code, like an EXE file.

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    903
    Quote Originally Posted by Hugo716
    I am just wondering if it is possible to open a .DLL file in visual C++ or Dev C++? not the source but the actual .DLL.
    It is possible to 'open' a DLL in Visual C++. It will basically tell you what functions / resources are used by/in this resource. Can be pretty useful but many tools already do that for executable files.

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    132
    ok ill try a hex editor thanks.

    i just want to open some DLLs i have to see what they contain and how they r built and what some of them actualy do.

    cheers.

  6. #6
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    Quote Originally Posted by Hugo716
    i just want to open some DLLs i have to see what they contain and how they r built and what some of them actualy do.
    unless you're a pretty l337 hax0r it won't mean a lot to you.

    you might see some function names, but that won't really help you.

    look on your machine for "depends.exe" (should be somewhere in your visual studio installation). If you open the dll with that it will at least tell you what functions it contains, if not what they actually do.

    as for how dlls are built, generally you build them the same way you build any program, they are just linked differently.
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  7. #7
    Registered User
    Join Date
    May 2006
    Posts
    903
    A DLL usually contains only classes, structs and functions. It also provides (optional ?) a DllMain() function which has a few messages you can handle (process / thread load/unload).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 08:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 03:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 01:34 PM
  4. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 06:24 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21