Zinc ベースの Flash アプリケーション用に .dll をリファクタリングする必要があります。
マスターからブランチにクラスをコピーして貼り付けた後、奇妙なコンパイル エラーが発生します。
GameInfo.h(15): error C2146: syntax error : missing ';' before identifier 'm_wsVersion'
GameInfo.h(15): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
GameInfo.h(15): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
対処されたコード:
// removed the comments
#include "stdafx.h"
#include <string.h>
class GameInfo {
public:
UINT m_uiGameId;
wstring m_wsVersion; // Line 15
UINT m_uiCheckSum;
wstring m_wsFilePath; // Same error report as on line 15
public:
static BOOL createFromFile(wstring path, GameInfo &target); // error "error C2061: syntax error : identifier 'wstring'" thrown
};
私は Visual Studio 2010 を使用していますが、IDE 自体はすべて問題なく、構文エラーなどもありません。そして、コードには触れていないと言ったように、ヘッダーは問題ないようです。
このエラーについて何か手がかりはありますか?