Link to home
Start Free TrialLog in
Avatar of jujutong
jujutong

asked on

Adding ATL object in MFC project

Hi,

I am trying to add an ATL object into my MFC project using MS VC++ 6.0.  I went to ClassView->New ATL Object, it gives me the following errors:

ATL Object Wizard:
AddIncludeFile(ProjectNameHeader, MIDLHeader)
You must have ATL setup correctly to insert an ATL object into your project.

What happened before this was that I successfully added an ATL object this way, but then MSDEV crashed.  I reinstalled the whole MS Visual Studio 6.0 and tried again.  And this is when I encounter the above problem.

How can I make this work?

ASKER CERTIFIED SOLUTION
Avatar of pcj0961
pcj0961

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jujutong
jujutong

ASKER

Hmm, I have already clicked 'Yes' when I was asked 'Do you want to add ATL support to your MFC project?'.  But the errors that I listed still followed.  I am actually trying the suggestion on adding the necessary header files back from a test program.  It's a good getaround but won't fix the cause of the problem.  If you have further ideas, please feel free to shed some light.