【发布时间】:2012-07-07 06:45:28
【问题描述】:
我创建了一个类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。
【问题讨论】: