Hi, I have VC 6.0 , and creating my own heap function, and using operator new, when I compile this (in debug) I get the following message:
syntax error : identifier 'THIS_FILE' if I comment out the following that is automatically created: #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif I dont get the error, anyone let mw now whats happening and the best way to stop this problem? Regards Neil below is a snipet of the code.. void * CNewMemory::operator new(size_t size) { if(s_hHeap==NULL) { s_hHeap=HeapCreate(HEAP_NO_SERIALIZE,0,0); if(s_hHeap==NULL) return (NULL); } void *p=HeapAlloc(s_hHeap,0,size); .... .... .... return (p); } _______________________________________________ msvc mailing list msvc@beginthread.com See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.