64,681
社区成员
发帖
与我相关
我的任务
分享
PIPEINST* Pipe = (PIPEINST*)GlobalAlloc(GPTR, sizeof(PIPEINST)*INSTANCES); // success
PIPEINST* Pipe = new PIPEINST[INSTANCES](); // failed
PIPEINST* Pipe = (PIPEINST*)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(PIPEINST)*INSTANCES); // success
PIPEINST* Pipe = (PIPEINST*)LocalAlloc(LPTR, sizeof(PIPEINST)*INSTANCES); // success
PIPEINST* Pipe = (PIPEINST*)malloc(sizeof(PIPEINST)*INSTANCES); //failed