Using an icon
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]
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)
Either way here: http://www.freewebs.com/shadowcrest/Game.cpp
It's gonna be a text-based MS-DOS RPG... (Barely counts, I know)
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...
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...
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement