Sign in to follow this  
Net-Ninja

Using an icon

Recommended Posts

Yes I know I'm an Uber n00b and this question has probably been asked before. But as I'm not keen about looking through 40 pages of posts (right after having searched the web) I'm gonna ask it here anyways. I already have the .ico file and i know that you should use a resource file, but Iv'e never got it to work. Appreciate any help i can get... Thanx in advance ;) [Edited by - Net-Ninja on October 21, 2006 10:10:24 AM]

Share this post


Link to post
Share on other sites
Uhm isn't it the same type of code no matter what code you previously used?

Either way here: http://www.freewebs.com/shadowcrest/Game.cpp

It's gonna be a text-based MS-DOS RPG... (Barely counts, I know)

Share this post


Link to post
Share on other sites

Is it:

hIcon = LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON));





I guess.

What is it that don't work?
Do the window app run?

[Edited by - Kazgoroth on October 22, 2006 5:49:57 AM]

Share this post


Link to post
Share on other sites
What didn't work?
I didn't know how to include an icon att all.

But no worries, ive figured it out, you just add a .rc file and VisualStudios handles the rest...

Thanks anyways.
Could be good if you wrote how to do it if you don't have VS...

Share this post


Link to post
Share on other sites
Quote:
Original post by Net-Ninja
What didn't work?
I didn't know how to include an icon att all.

But no worries, ive figured it out, you just add a .rc file and VisualStudios handles the rest...

Thanks anyways.
Could be good if you wrote how to do it if you don't have VS...


Good! rating++;

BTW, was you a member at .se?

Share this post


Link to post
Share on other sites
Quote:
Original post by Ravuya
Why'd you ask to see his code? It's a resource file.


Okey. It just was a reflex.
I'm so used to ask for the code that I didn't think.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this