CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Sweden
    Posts
    5

    How to use MFC Class in ATL?

    I want to use CRecordset in ATL, DBSet is derive from CRecordset,
    DBSet.h include afx.h and afxdb.h
    when I include DBSet.h in ATL, I can't successful compiled.
    Error is "_WINDOW_H has already include..."
    Does anybody can help me to solve this problem, thanks...


  2. #2
    Join Date
    May 1999
    Posts
    216

    Re: How to use MFC Class in ATL?

    Did you try to set the settings in project menu in the general tab , to use MFC?
    If not set the settings as "Support MFC" then you can use.
    But while creating the AL project, the wizard would have asked if it should support MFC. If u had done that u would not have had problem.
    Ravi



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured