Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6987003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:52:50+00:00 2026-05-27T18:52:50+00:00

We have a DLL project which has existed for a long time (maybe as

  • 0

We have a DLL project which has existed for a long time (maybe as far back as Visual Studio 6) which has been updated for each new version of VS. The project contains a number COM classes implemented using ATL.

After upgrade to VS 2010, the project still builds fine. However, if I try to right-click the project and choose Add -> Class… -> ATL Simple Object, I get an error box that says this:

ATL classes can only be added to MFC EXE and MFC Regular DLL projects or projects with full ATL support.

This worked in VS 2008.

When I look at the project properties, Use of MFC was set to Use Standard Windows Libraries and Use of ATL was set to Not Using ATL. I changed these to Use MFC in a Shared DLL and Dynamic Link to ATL respectively, but still get the same error.

I know how to add new ATL objects without using the wizard, and I could try to recreate the project from scratch using VS 2010 to make it happy. But does anyone know of any easy way to get VS to allow me to use the ATL Simple Object wizard with a project that it doesn’t recognize as a project “with full ATL support”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:52:50+00:00Added an answer on May 27, 2026 at 6:52 pm

    Check this thread out.

    It seems that adding this fragment info your ATL C++ code make it work. You don’t need to actually build the project, just remove this stuff away after you are done with the wizard (provided that solution works for you).

    // Added fake code begins here
    
    class CAppModule : 
        public CComModule
    {
    };
    
    // Added fake code ends here, below is regular ATL project stuff
    
    CAppModule _Module;
    

    This is where it all comes from, in $(VisualStudio)\VC\VCWizards\1033\common.js:

    /******************************************************************************
    Description: Returns a boolean indicating whether project is ATL-based.
    oProj: Project object
    ******************************************************************************/
    function IsATLProject(oProj)
    {
        try
        {
            var oCM = oProj.CodeModel;
            oCM.Synchronize();
            // look for global variable derived from CAtlModuleT
            var oVariables = oCM.Variables;
            for (var nCntr = 1; nCntr <= oVariables.Count; nCntr++)
            {
                var oVariable = oVariables(nCntr);
                var strTypeString = oVariable.TypeString;
                if (strTypeString == "ATL::CComModule" || strTypeString == "ATL::CAutoThreadModule")
                {
                    return true;
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a Visual Studio 2008 project which has a large amount of
I have two projects, the DLL project which has all my logic and data
I have a .Net project which has the following dlls: AxInterop.Crystal.dll ( comctl32.ocx )
I have a visual studio 2005 solution which has a web application and a
In my project I have some code which has been deveoped in VBA and
I have an C# dll project for which I have to store the runtime
I have a DLL project in VS 2008 Pro which uses OpenMP. I use
Say I have some C++ project which builds an exe or dll file. The
I have a C# project A which uses a .net wrapper DLL and a
We have a project with many dll files which get loaded when the application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.