Solved

Adding ATL object in MFC project

Posted on 2000-03-13
2
422 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordmultiple challenge 12 156
Post a good COM tutorial 1 68
WPF issue with Trigger 2 130
Please explain "Promise Pattern" and how it's used 2 58
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…

733 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