Click to See Complete Forum and Search --> : How to use MFC Class in ATL?


Jimmy
May 11th, 1999, 01:50 PM
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...

ravish
April 19th, 2000, 04:48 AM
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