Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

shadowDragon

Getting VC 7.0 to let me load my own Icon

This topic is 5325 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know this is a beginner question so I''m posting it in the right place. How do I put my own Icon for my hIcon and hIconSm? Ok I know this is the line of code that will do it: LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1)) And I know the dimensions for the big and small icons are 32x32 and 16x16 respectvely. but I''m still confused about a few things: 1. If I have a bitmap resource, why can''t I just put IDB_BITMAP1 where IDI_ICON1 is and have it work? Does it specifically have to be IDI_ICON? (they''re both just bitmaps right?) 2. I''ve found VC 7.0 (.NET) likes to use it''s own bitmaps for icons but not the ones I make and then try to import. (it will let me use a bitmap I created using it''s bitmap editor when I do "Add Resource" but when I try to add a new Icon and import my bitmap, it only will make it a bitmap resource, not an icon. 3. It tells me when I import my bitmaps that "the file loaded correctly but since it has > 256 colors it cannot be displayed". But the ones that it creates in it''s own editor are 32 bit!! (I also can''t get Photoshop to go lower than 16 bit...) Can anyone walk me through the steps to get a bitmap I made loaded as the hIcon for my game? It CAN''T BE THIS HARD... MANY Thanks in advance. I''ve been trying to get this to work for the past 2 hours...

Share this post


Link to post
Share on other sites
Advertisement
1. No. Bitmaps and icons are different.

2. I dont quite understand your question although I believe the correct response is see #1.

3. I dont have MSVC++ 7.0 to verify but on MSVC++ 6.0 its editor makes only up to 8bpp bitmaps.

Instead of using MSVC++''s bitmap editor, use its icon editor. Use the resource created with that in LoadIcon().


Thanks Salsa!Colin Jeanne | Invader''s Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud

Share this post


Link to post
Share on other sites
Thanks for the reply Invader X.

But I still need to know how to make my own bitmaps (ones I create in Photoshop or some other art program) into icons to use.

I was hunting around on the internet for .bmp to .ico file converters but all of them have a 30 day trial period then want $30 to buy the registered version.

It can't be this complicated just to get a personalized .bmp converted to an .ico file! (You'd think one would be included in VC .Net).

Anyone know of any FREE ones?

[edited by - shadowDragon on February 27, 2004 1:24:53 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!