I'm not sure but NULL should be declared in one of the header includes that are standard. I really don't know which one offhand. stdlib.h maybe?
> 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.