Thread: DLL for icons

  1. #1

    DLL for icons

    How can I have a dll for icons? Like say shell32.dll is?

    Also, for any of you that use the dev-c++ ide, how do I add icon and bitmap resources?

  2. #2

  3. #3
    Ok, I've searched but I'm still having some problems...

    Now say I have my dll, I've added the resources to it and I've set the resource file so that it's like:

    IDB_TESTBMP BITMAP "test.bmp"

    test.bmp has been added to the file, and IDB_TESTBMP is defined as 5000.

    Now, how can I load the image from another file?

    I tried LoadLibrary and then LoadImage but I couldn't get it working..

  4. #4
    Doh, I forgot to include the resource header into the resource file.. It works now!

  5. #5
    In your face... ha ha ha Liger86's Avatar
    Join Date
    Dec 2002
    Location
    Motorcity Capital
    Posts
    321
    did you know that dll's can also be used to make custom desktop icons?
    From Ukraine with love!

    Internationally known widely respected

    - Digitally yourz -

  6. #6
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Why, no, I didn't! That is just amazing. Thank you!
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

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, 07:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  4. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 05:24 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 04:29 AM