小编jsc*_*ott的帖子

类定义文件中的Win32程序编译器错误

我试图在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)

c++ winapi compiler-errors

0
推荐指数
1
解决办法
112
查看次数

标签 统计

c++ ×1

compiler-errors ×1

winapi ×1