> I am using MSVC 6.0 with the latest service pack and when I go to compile one
> specific project of mine, I get compiler errors that say NULL is an undeclared
> identifier. As far as I know, NULL is always supposed to work. Is there a
> known problem that causes NULL to not be recognized?
> The project is a windows program. Currently WinMain does nothing except return
> 1. The program compiles just fine when I change all the NULLs to 0. I am a
> fairly experienced programmer, and I would like to think that I am not a
> complete moron, but I have no idea what the problem is. Any help would be
> greatly appreciated.
#define NULL 0
I think NULL is defined based on the headers you use.