1
SimpleIni Documentation说wchar_t支持,但我不明白如何使用它。这是我的尝试:如何使用SimpleIni来返回wchar_t然后转换为std :: wstring?
CSimpleIniCaseW ini;
ini.LoadFile("myapp.ini");
std::wstring test(ini.GetValue("testsection", "testkey", ""));
错误C2664: 'CSimpleIniTempl ::的GetValue' :不能从 转换参数1 '为const char [12]' 到 '常量为wchar_t *'
现在好了我不再发生该错误,但wstring测试为空。 – coolface 2010-12-06 00:36:49