I have custom binary resources (animated cursors) that would like to store as resources in a static lib in Visual Studio C++. It turns out that custom binary resources wi
In case you use dll using MFC (and CWinApp), you can obtain the HMODULE from CWinApp.
extern MyDllApp theApp;
HMODULE module = (HMODULE)theApp.m_hInstance;
HRSRC myResource = ::FindResource(module,
MAKEINTRESOURCE(IDR_FILE_RESOURCE), _T("GROUP_NAME"));
If you supply NULL
in FindResource, application won't find your resource.