CString str;
str.Loadstring(IDS_1)

解决方案 »

  1.   

    LoadStringh 函数原形:
    int LoadString(
      HINSTANCE hInstance, 
      UINT uID, 
      LPTSTR lpBuffer, 
      int cchBufferMax 
    ); 
    Parameters
    hInstance 
    [in] Handle to an instance of the module whose executable file contains the string resource. 
    uID 
    [in] The integer identifier of the string to be loaded. 
    lpBuffer 
    [out] Long pointer to the buffer to receive the string. 
    cchBufferMax 
    [in] The size of the buffer in characters. The string is truncated and null terminated if it is longer than the number of characters specified. hInstance是当前实例句柄?