class chexctl {
public:
chexctl(){
pfilebuffer = VirtualAlloc(NULL, 0x60000, MEM_COMMIT, PAGE_READWRITE); // 256+128K
// pdispbuffer = (char*)pfilebuffer+0x50000;
pfind = (char*)pfilebuffer+0x58000;
preplace = (char*)pfilebuffer+0x59000;
hfile = NULL;
hwnd = NULL;
errorcode = 0;
instancecounter ++; // 实例计数加1
newfile = true;
edit = false;
}static int instancecounter;.....
用chexctl *p= new chexctl; 
语句创建对象后,静态变量instancecounter的值为什么没有变化?
是不是构造函数没有执行?