|
From: Schedler, K. <Kur...@hi...> - 2001-09-24 14:35:27
|
I think you need to put a
#define IDR_PCXFILE 999
in a header file that is #included in both the resource file and the source
file(s) which use the name.
-----Original Message-----
From: Tomas Dolejsi [mailto:do...@vo...]
Sent: Saturday, September 22, 2001 5:33 AM
To: Dev-C++ Mail Group
Subject: [Dev-C++] Custom Resource
Hello!
I'd like to include a .pcx file in the .exe file of the application.
I put following line in 'rsrc.rc' file:
IDR_PCXFILE BINTYPE Main.pcx
And there's the piece of my code which should load the pcx file resource:
hResource = LoadResource (hInstance,
FindResource (hInstance, "BINTYPE",
MAKEINTRESOURCE (IDR_PCXFILE)));
However, the compiler claims that IDR_PCXFILE hasn't been declared.
When replacing IDR_PCXFILE with (e.g.) number 999 (in both files), the
program crashes, too.
Does anyone know what's wrong?
"The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message
and its attachments could have been infected during transmission. By
reading the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. The sender's employer is not liable for any loss or damage
arising in any way from this message or its attachments."
|