1.在资源文件中添加字符串资源,设置ID为IDS_STRING,值为“abcd”
2.使用时用LoasString(hWnd,szString,IDS_STRING,5)
注:
MSDN:
int LoadString(
HINSTANCE hInstance, // handle to resource module
UINT uID, // resource identifier
LPTSTR lpBuffer, // resource buffer
int nBufferMax // size of buffer
);
2.使用时用LoasString(hWnd,szString,IDS_STRING,5)
注:
MSDN:
int LoadString(
HINSTANCE hInstance, // handle to resource module
UINT uID, // resource identifier
LPTSTR lpBuffer, // resource buffer
int nBufferMax // size of buffer
);
浙公网安备 33010602011771号