クラスを作成しましたAdresy
:
class Adresy {
public:
static const DWORD hp = 0x947000;
static const DWORD mp = 0x7B2084;
static const DWORD cap = 0x97EE94;
enum Flags
{
None = 0,
Poisoned = 1,
Burning = 2,
ProtectedByMagicShield = 16
};
};
この例で使用しようとすると、次のようになります。
if(( (DWORD) adr.ProtectedByMagicShield & pFlags) == (DWORD) ProtectedByMagicShield){
//...
}
エラーをスローすると表示されます。'ProtectedByMagicShield' : undeclared identifier...
pFlags
は、DWORD
C++。NETを使用しています。