适用于中英文系统

ini文件:

[A]
test=测试

代码:

char strValue[1024] = {0};
    GetPrivateProfileStringA("A", "test", "", strValue, sizeof(strValue)*1024, "E:\\framework\\test.ini");
    //将utf8编码转为gb2312即可