I'm trying to embed a GIF into my plugin but I'm failing to get the resource; this is what I'm doing:
HMODULE hModule = GetModuleHandle(NULL);
HRSRC hResInfo = FindResource(hModule, MAKEINTRESOURCE(201), L"GIF");
That is into the OnPluginReady() event, this is the firebreathWin.rc:
IDB_BITMAP1 GIF "C:/loader.gif"
And this into the resource.h:
#define IDB_BITMAP1 201
The exact same procedure, is working on a console application; but not in my firebreath project.
Using, Visual C++ 2010.