#error WINDOWS.H already included

Hi,

I wanted to use CFileDialog class in my SolidWorks C++ Addin project. I included #include "afxdlgs.h" file in the code. and I have used MFC in a shared Dll.
Project setting->Configuration Properties->general->Use of MFC = Use MFC in a shared DLL

But now I am getting following error:
#error WINDOWS.H already included. MFC apps must not #include

Kindly response quickly, I am stuck.

Thanks in advanceSolidworksEdrawings