...

View Full Version : Resource Help



As5a5sIn5
04-30-2004, 04: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!!!!

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

shmoove

Mhtml
04-30-2004, 08: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.

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

Antoniohawk
05-11-2004, 01: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]

Mhtml
05-11-2004, 05: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum