C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-10-2008, 06:27 AM   #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...?
csonx_p is offline   Reply With Quote
Old 06-10-2008, 07:35 PM   #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);
P4R4N01D is offline   Reply With Quote
Old 06-11-2008, 01:50 AM   #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...
csonx_p is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 05:05 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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