Advertisement

Please !! Stupid Icon !!

Started by August 18, 2001 02:24 AM
18 comments, last by Prozak 23 years, 6 months ago
Nope, does not work!

Can u guys send me a zipped file with an
ancient project of yours, that has this capability?

thanx a zillion...

Hugo Ferreira
UniteK Future
"My Name Is Jerry."[TheSphere]
I have no idea what is wrong. Is the large icon working?
Advertisement
when i create the exe, the icon is there, the one i''ve selected,
but when i run the damn app, the upper-left icon is diferent, sometimes its the microsoft flag, sometimes its a micro-window
default icon...

this must be one of those giant THIS_ERROR_IS_IN_YOUR_FACE_STUPID!

oh god! its 9:41 am !!!!

ok, sleep depravation isnt cool...

Hugo Ferreira
UniteK Future
"My Name Is Jerry."[TheSphere]
I''m not sure. I think I''ll probably have to sleep soon. I''ll try looking up a few things and see if I can find something. I''ll have to try finding a solution after I wake up later today. Sorry I couldn''t help you sooner.
Thanks a lot, u really helped.
Lets get some sleep...


Hugo Ferreira
UniteK Future
"My Name Is Jerry."[TheSphere]
I nailed that error, and boy, was it stupid!

I have all my icons in a sub-folder /Files/Icons

It seems that VC6 wants those icon files to
be in the same directory as the rest of the project
files, at least for IconSm...

dumb thing, I must say...

thanks all for your help, and remember,
if a newbie comes passing by with a post similar
to this one, u know what to say...



Hugo Ferreira
UniteK Future
"My Name Is Jerry."[TheSphere]
Advertisement
jesus...
i''ve been able to track the error even further, and i''ve learned a lot, i must say.

i was using:
  winclass.hIconSm = LoadIcon(NULL, MAKEINTRESOURCE(ID_ICON_DISK));  


it wasn''t working (duh!), but this one works every time:
  winclass.hIconSm = LoadIcon(hinstance, MAKEINTRESOURCE(ID_ICON_DISK));  


it seems hIconSm needs the instance handle...

hope this added to everybody''s knowledge, i know i learned something...




Hugo Ferreira
UniteK Future
"My Name Is Jerry."[TheSphere]
Yeah, and you were asked to add the instance handle a few posts back by Midnight Coder. If you''d used the instance handle for LoadIcon, I expect that NULL for hIconSm would have worked too.
Yeah, either one should work. I''m glad you fixed it.

But I don''t understand... I thought a few posts back you said that the large icon worked? Which shouldn''t be the case if the file is in the wrong place. Oh well, at least it works now.
quote:
Original post by pentium3id
What app do u use for icon editing? microangelo?



I just use a paint app to do my icons, then cut the 32x32 or 16x16 or whatever (16x15 for toolbar icon I think) and paste it in VC++. If it''s too big, I shrink it before cutting. Then CTRL+V pasts it in VC++. I use VC++5 still, but VC++6 surely would do the same... I can''t see why not. On a side note, I tend to use paint shop pro as my paint app.

This topic is closed to new replies.

Advertisement