Neil Devlin wrote:
> 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?

You should need a special operator new definition for debug builds.
Look up the VC header files for DEBUG_NEW to see the signature of the
operator new definition that VC uses for debug builds.


--
Ehsan Akhgari
Farda Technology <http://www.farda-tech.com/>

Everybody has a photographic memory. . . . Some don't have film.

_______________________________________________
msvc mailing list
msvc@beginthread.com
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to