The third parameter of
FindResource()
defines the resource type and must be the name of such a type, one of the standard types, or the ID of the type identifier converted by
MAKINTRESOURCE()
. See also in the
MSDN[
^]. Sou you may use one of these:
::FindResource(NULL, MAKEINTRESOURCE(IDR_RC_DATA1), _T("RC_DATA"));
::FindResource(NULL, MAKEINTRESOURCE(IDR_RC_DATA1), RT_RCDATA);
::FindResource(NULL, MAKEINTRESOURCE(IDR_RC_DATA1), MAKEINTRESOURCE(RC_DATA));