Hello,
I'm sorry I cannot reproduce your problem. I think you must have done more than only change the line and change it back.
Nevertheless I remember I had questionable errors with windows.h before too. The errors resulted because of other include files or a special project type.
You could try the following:
- change the order of #include
- for cout, do you use the standard library std::cout or the "old" cout - I've seen differences there too. Search for using namespace std for example. When you use cout, it can be different from std::cout. Define cout explicitly.
- What kind of project do you use in VS? As far as I remember, there can be differences between a console app and a GUI MFC app (e.g. in MFC you don't include windows.h by yourself, you should VS handle the include).
- change DWORD to unsigned long.
Regards, Guido