Advertisement Jump to content

Archived

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

Noods

Program icon???

This topic is 5638 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!