Using an icon

Started by
10 comments, last by programering 17 years, 6 months ago
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]

Video Game Programmer.
5 years in industry.

Advertisement
What language and what compiler/IDE are you using?
Sry forgot.

Im using Microsoft visual Studios 2005
C++

Video Game Programmer.
5 years in industry.

Post your code.
I want to see your code so I can help you with it.
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)

Video Game Programmer.
5 years in industry.


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]
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...

Video Game Programmer.
5 years in industry.

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?
Nope but i am swedish so. it's only a matter of time I begin my quest to n00b up that community to...

PooQuest FTW...

Video Game Programmer.
5 years in industry.

This topic is closed to new replies.

Advertisement