Jump to content
  • Advertisement

Archived

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

Noods

Program icon???

This topic is 5539 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

Lets say I have an icon file "icon1.ico". How do I make this the icon for a program in MSV C++? Does this have to be specified in the project or can I do it strictly in the code?

Share this post


Link to post
Share on other sites
Advertisement
Do you load the icon with your window class?

wndclass.hIcon = LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(ICON_1));




[edited by - stooge_dev on August 16, 2003 5:22:31 PM]

Share this post


Link to post
Share on other sites
Noods:

The part stooge_dev forgot to tell you was that you have to set ICON_1


Set which icon to use like the following:

ICON_1 ICON DISCARDABLE "MyGame.ico"

then do

wndclass.hIcon = LoadIcon(GetModuleHandle(NULL),MAKEINTRESOURCE(ICON_1));

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You have to put the ICON_1 in something like a resource.h file

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!