how to include ressources into the executable ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
phrounz
Posts: 45
Joined: Thu Feb 10, 2005 11:45 am
Location: France
Contact:

how to include ressources into the executable ?

Post by phrounz »

Hello
I want to include images, etc ... into an executable on Dev-C++.
I am trying to use a .rc file like :

Code: Select all

#include <windows.h>

101		BITMAP 	"code(r)_logo.bmp"
Is it possible and how can I include it in the program ? I tried

Code: Select all

ITexture* texture = pilote->getTexture(MAKEINTRESOURCE (101));
in the main.cpp file but it doesn't work.
It seem that I must add the information that it should search the image using the application instance, like in the first agrument of the window function

Code: Select all

HANDLE LoadImage(      

    HINSTANCE hinst,
    LPCTSTR lpszName,
    UINT uType,
    int cxDesired,
    int cyDesired,
    UINT fuLoad
);
cpprules
Posts: 148
Joined: Wed Jul 27, 2005 8:37 pm
Location: on the Pedastal

Post by cpprules »

I think that *.rc stuff works only with Visual C++.
CRPG, FRPG, Oblivion Fan
Hater of Counter Strike (i hate it so much damn it)
WToma
Posts: 70
Joined: Tue Aug 09, 2005 8:38 am
Location: Szeged, Hungary

Post by WToma »

Somehow Devcpp can handle resources, but I don't know how.
Toma
"This is not a bug, this is a feature!"
phrounz
Posts: 45
Joined: Thu Feb 10, 2005 11:45 am
Location: France
Contact:

Post by phrounz »

There must be a way to do it, because there is an item in the menu called "New ressource file", and it creates an empty rc file.

I'll try to find it myself. Nevertheless, thanks for help.
Post Reply