COM ATL DLL Query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • navraj
    New Member
    • Jan 2009
    • 5

    COM ATL DLL Query

    Hi
    I am trying to create a COM ATL DLL in that i add a method where i used the CDatabase class to access SQL. The problem is i must have the header file <afxdb.h> since i have added this header file its giving me an error on compilation saying "Windows.H is already included. MFC apps must not #include <windows.h>. May i know what is the problem
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Something else is going on. windows.h can be included mutliple times since it, like all professional headers, has an inclusion guard.

    Maybe you could post the exact error.

    Comment

    • prasanth657
      New Member
      • Jan 2008
      • 2

      #3
      nothing..... u have to add/select "MFC support" while creating the COM Object.

      Comment

      Working...