Which macro is used to make an identifier name recognizable to an MFC or Win32 function?
-
MAKESTRINGRESOURCE.
-
MAKEFLOATRESOURCE.
-
MAKECHARRESOURCE.
-
MAKEINTRESOURCE
MAKEINTRESOURCE is a Windows API macro that converts an integer identifier to a resource type compatible with Win32 and MFC resource-loading functions. It's commonly used when loading resources like icons, menus, or dialogs by their numeric IDs. The other macros listed don't exist in the Windows API.
MAKEINTRESOURCE is the Win32/MFC macro that converts an integer resource identifier into a pointer format that resource-related functions expect (e.g., LoadIcon, LoadBitmap), effectively packing the integer ID so it's recognizable as a resource reference rather than a string pointer. 'MAKESTRINGRESOURCE', 'MAKEFLOATRESOURCE', and 'MAKECHARRESOURCE' aren't real Win32/MFC macros — they're fabricated distractors following the naming pattern but don't exist in the API.