Re: How to registere Com classes of MFC/ATL support application
- From: "Brian Muth" <bmuth@xxxxxxxx>
- Date: Wed, 20 Feb 2008 08:11:56 -0800
<doublemaster007@xxxxxxxxx> wrote in message news:5f155070-4049-4698-bc5f-3ba54eee7ff3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 20, 3:54 am, "Brian Muth" <bm...@xxxxxxxx> wrote:
<doublemaster...@xxxxxxxxx> wrote in messagenews:6588f83c-87ef-4c6f-88db-78b246a1f36d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I have a MFC Dilog based apllication with 'spport ATL'. i have
> projectname.idl file in the project solution, which declares some
> interfaces and coclasses.. Problem is how to register this calsses?
> I can create the object using CCOmObject::Createinstance which doesnt
> require any CLSID_XXX,,, but CCOMQIPtr failes..saying that class not
> registered.. i tried manually registering the exe..still classes are
> not registered..OLEVIEWER doesnt show up the interfaces or classes...
> please help me..
I'm wondering if you want it the other way around, that is an ATL project with MFC support.
Brian
Noo...MFC project with ATL support. No way we can register the
classes??
Well, you probably can, but the wizard you chose doesn't put the infrastructure in place. You will have to craft all that work by hand.
Frankly, MFC and ATL really don't mix that well together in the same project. I recommend either splitting the projects into two subprojects (MFC in one, ATL in the other) or if you need an ATL project with GUI capabilities such as a dialog box, take a look at WTL.
Brian
.
- Follow-Ups:
- Re: How to registere Com classes of MFC/ATL support application
- From: doublemaster007@xxxxxxxxx
- Re: How to registere Com classes of MFC/ATL support application
- References:
- How to registere Com classes of MFC/ATL support application
- From: doublemaster007@xxxxxxxxx
- Re: How to registere Com classes of MFC/ATL support application
- From: Brian Muth
- Re: How to registere Com classes of MFC/ATL support application
- From: doublemaster007@xxxxxxxxx
- How to registere Com classes of MFC/ATL support application
- Prev by Date: RE: IOleInPlaceSite::OnUIActivate failing in IE
- Next by Date: System Tray Icon with Free Threaded COM exe
- Previous by thread: Re: How to registere Com classes of MFC/ATL support application
- Next by thread: Re: How to registere Com classes of MFC/ATL support application
- Index(es):
Relevant Pages
|