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"
Code: Select all
ITexture* texture = pilote->getTexture(MAKEINTRESOURCE (101));
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
);