Hey All -
I am writing a win32 dll. I included a class that can access database operations. I included afxdb.h in the headerfile and declared a variable in the header file for CDatabase. When I compile it.. it gives me a error

"WINDOWS.H already included. MFC apps must not #include <windows.h>"

same when I try to include it in the .cpp file (below stdafx.h ) it compiles without errors.

I am trying to research on it online.. no 1 seems to have a solution... but jus very similar problems...!!!

can any one help me around this please????