strTmp.LoadString(IDS_PRODUCT_NAME);  我知道他应该加载字符串。
#define IDS_PRODUCT_NAME     65070  这是IDS_PRODUCT_NAME的含义。
#define PRODUCT_NAME    "monitor"  这是PRODUCT_NAME的含义。
我想知道IDS_PRODUCT_NAME和PRODUCT_NAME之间有联系吗?  为什么PRODUCT_NAME改成中文之后会乱码???

解决方案 »

  1.   

    这个是和资源文件相关的。具体你可以查查 MSDN了。简单说是这样的,就是有个字符串的表。
    ...
    65070 "你好"
    ...#define IDS_PRODUCT_NAME 65070
    你可以根据这个数字,Load到“你好”这个字符串。
    这样做有利于国际化嘛。
      

  2.   

    #define variable_name [variable_value]
    Parameters
    variable_name 
    The variable can include any characters that are not white space. 
    variable_value 
    Any characters can be used, but leading and trailing white space is truncated. 
    Do not use white space characters unless the entire variable is surrounded by double quotes. If the value is empty, the variable is set to an empty string.