All Windows resource handling APIs (like FindResource, LoadImage, LoadMenu,…) accept at least a resource identifier and an instance handle. This information is required to load the resource. MFC classes (like CMenu, CBitmap, …) only take the identifier as they try to find the module containing the resource on their own. This article discusses how you can load resources by ID (as integer and string) or name (string).
Weiterlesen „C++ / MFC: Loading resources by name (string)“