https://github.com/animetrics/PlistCpp
这上面有个开源代码,读README就会了;VisualStudio新手得先知道如何设置基本的配置信息···我刚开始卡在这里,以为这个代码废的。。。
#include "Plist.hpp"
vector< CString > vecAdminUsersName;
map<string, boost::any> dict;
Plist::readPlist( adminFile, dict );
vector< boost::any >::const_iterator it_users;
for( it_users = usersName.begin();
it_users != usersName.end();
++it_users )
{
vecAdminUsersName.push_back( CString( (boost::anycast<string>(*it_users)).c_str() ) );
}