我试图在Visual C++中编译,只是将此配置文件加载器/解析器添加到我的项目中.对于某些CPACileData类中定义的函数,它至少会收到两个错误之一:
missing type specifier - int assumed.
syntax error : missing ',' before '&'
Run Code Online (Sandbox Code Playgroud)
显然这应该是一个引用的字符串
#ifdef UVSS_EXPORTS
#define UVSS_API __declspec(dllexport)
#else
#define UVSS_API __declspec(dllimport)
#endif
class CProfileData
{
public:
UVSS_API CProfileData(){};
UVSS_API CProfileData(const string& profileFile);
UVSS_API ~CProfileData(void);
UVSS_API bool GetVariable( const string& sectionName, const string& variableName, string& valueRet );
UVSS_API bool GetSection( const string& sectionName, SECTION_MAP **pMapRet );
UVSS_API bool GetVariableW( const string& sectionName, const string& variableName, wstring& valueRet );
UVSS_API bool GetVariableInt( const string& sectionName, const string& variableName, …Run Code Online (Sandbox Code Playgroud)