View Full Version : Resource Help

04-30-2004, 05:23 AM
okay lemme break this down...
Im reading a tutorial on win32 programs..
I'm to make a "resource file" and i'm having trouble linkin it to my project..

here's my 'so called' resource file

#include "resource.h"

IDI_MYICON ICON "50cent.png"

now i'd like 2 figure out how 2 get this in my main program...im guessin its some type of ..

#include "???"
code...sum1 help!!!!

04-30-2004, 09:24 AM
Maybe this (http://www.functionx.com/win32/Lesson01.htm) can help.


04-30-2004, 09:45 AM
You can't use png as an icon. You need to use an ico.
And what compiler/ide are you using? If it's dev-c++ open project options (alt+p) go to the files tab select your resource script and make sure it has 'include in compilation' checked on the right hand side.

05-11-2004, 01:58 AM
ummmm....wuts an ico image? or should i say how do i convert/make that type of image..

05-11-2004, 02:08 AM
If I'm not mistaken, .ico is an extension pertaining to icons and can be made with a simple program. Here's what my good friend google cooked up: [http://www.google.com/search?q=icon+maker&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8]

05-11-2004, 06:19 AM
Well there are convertors out there, finding a free icon making program is pretty hard though (tis why I'm going to make one soon) ...

The ICO format is essentially a bitmap with a few differences in the headers.

You could easily make a convertor using the WinAPI functions.