I added the resource script (RC file= to the DEV C++ Project files.
The project compiles OK, but FindResource cannot find the resource.
The resource file is OK, the resource type is IMA and the resource name is
IMA_1. (DEV C++ 5, W Vista Home Ed)
I guess the resource script is not getting compiled at all.
I would prefer to add a .RES file to the Dev C++ Project.
How can do that?
Thanks in advance.
include <iostream>
include <stdlib.h>
include <windows.h>
using namespace std;
int main(int argc, char *argv[])
{
HRSRC hRsrc;
HGLOBAL hResource;
DWORD dwSize;
int hfFile;
I added the resource script (RC file= to the DEV C++ Project files.
The project compiles OK, but FindResource cannot find the resource.
The resource file is OK, the resource type is IMA and the resource name is
IMA_1. (DEV C++ 5, W Vista Home Ed)
I guess the resource script is not getting compiled at all.
I would prefer to add a .RES file to the Dev C++ Project.
How can do that?
Thanks in advance.
include <iostream>
include <stdlib.h>
include <windows.h>
using namespace std;
int main(int argc, char *argv[])
{
HRSRC hRsrc;
HGLOBAL hResource;
DWORD dwSize;
int hfFile;
hRsrc = FindResource(NULL, TEXT("IMA_1"),TEXT("IMA"));
if (hRsrc)
{
hResource = LoadResource(NULL, hRsrc);
dwSize = SizeofResource(NULL, hRsrc);
}
else
cout << "Failure";
return 0;
}