MAKEINTRESOURCE

2.x

  LPCSTR MAKEINTRESOURCE(idResource)    
  WORD idResource; /* resource identifier to convert */

The MAKEINTRESOURCE macro converts an integer resource identifier into a value compatible with Windows resource-management functions. This macro is used in place of a string containing the name of the resource.

Parameters

idResource

Specifies the integer resource identifier to be converted.

Return Value

The return value contains the idResource parameter in the low-order word and zero in the high-order word.

Comments

The MAKEINTRESOURCE macro is defined in WINDOWS.H as follows:

#define MAKEINTRESOURCE(i)  ((LPCSTR)MAKELP(NULL, (i)))

See Also

MAKELP