Solved

Adding ATL object in MFC project

Posted on 2000-03-13
2
425 Views
Last Modified: 2013-11-25
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?

0
Comment
Question by:jujutong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
pcj0961 earned 50 total points
ID: 2623130
you should have gotten a dialog box that asked if you wanted to add
support to your MFC project for ATL. if you answer yes it will insert the needed ATL includes and defines.  without the correct header file additions
ATL won't work. I think that code guru has a sample of the changes under the ATL catagory or If you create a TEST MFC project (SDI) and  then
use the Insert New ATL Object and answer yes to add support you can go
back into the header files and find the additions and use them.
0
 

Author Comment

by:jujutong
ID: 2624992
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question