DLL for icons

This is a discussion on DLL for icons within the Windows Programming forums, part of the Platform Specific Boards category; How can I have a dll for icons? Like say shell32.dll is? Also, for any of you that use the ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    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
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    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
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    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, 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