Creating Icon resource using image

This is a discussion on Creating Icon resource using image within the Windows Programming forums, part of the Platform Specific Boards category; This is probably a well covered topic, but searched & couldn't find my exact answers... I've tried to create a ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    610

    Creating Icon resource using image

    This is probably a well covered topic, but searched & couldn't find my exact answers...

    I've tried to create a resource in VS 2005 by going add>Resource>Icon>Import and selected an image file (bmp)... The file gets loaded successfully under Resource Files but not as .ico but .bmp... Can i use LoadImage to load this bmp as an icon? If so (my attempt below...)
    Code:
    wcx.hIcon = (HICON)LoadImage(0,"logo.bmp",IMAGE_ICON,0,0,LR_SHARED);
    How do specify the image...?

  2. #2
    HelpingYouHelpUsHelpUsAll
    Join Date
    Dec 2007
    Location
    In your nightmares
    Posts
    223
    You could try converting the Bitmap to an Icon, I am sure there are freeware thrid party tools for this job.
    long time no C; //seige
    You miss 100% of the people you don't C;
    Code:
    if (language != LANG_C && language != LANG_CPP)
        drown(language);

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    610
    Quote Originally Posted by P4R4N01D View Post
    You could try converting the Bitmap to an Icon, I am sure there are freeware thrid party tools for this job.
    thanx, works...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Loading an image in from a resource file
    By starcatcher in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2008, 06:44 AM
  4. How to Creating DLL image resource
    By nostromos in forum Windows Programming
    Replies: 1
    Last Post: 10-09-2005, 02:36 AM
  5. How to change a mouse cursor in console mode
    By GaPe in forum Windows Programming
    Replies: 10
    Last Post: 07-03-2002, 07:42 AM

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