Re: How to registere Com classes of MFC/ATL support application

Tech-Archive recommends: Fix windows errors by optimizing your registry




<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

.



Relevant Pages

  • Re: ATL Service EXE VS .NET 2003 - Wont register method
    ... the interfaces defined in your IDL file in your main ATL project. ... I created an ATL service EXE with 2 interface methods. ... methods did not register under windows registry and I can't build a client ...
    (microsoft.public.vc.atl)
  • RE: Intellisense showing ATL instead of MFC
    ... I understood you notice some VS IDE Intelligence always show the ATL ... It sounds you are using ATL/MFC Shared Classes ... ATL and MFC application. ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.ide)
  • Re: COM dll resources
    ... resources named via strings - it requires numeric IDs. ... to both frameworks - ATL and MFC - and stored separately. ... This time I derived it from the MFC class CDialog ... >> Then add resource string to this DLL and have a method which loads this ...
    (microsoft.public.vc.atl)
  • Re: Queryinterface then Release fails
    ... parent or factory object) will release your interface. ... and finally you release main IDirectDraw ... I would suggest you to really use ATL in your context. ... (Note that you can also use these ATL helper classes also in MFC.) ...
    (microsoft.public.vc.mfc)
  • Re: ATL Server Class Method Implementation question
    ... Typically your application class is a singleton of some sort. ... In MFC that is a class derived from CWinApp. ... > need to inherit something off of these ATL classes, ... >> Microsoft MVP, MCSD ...
    (microsoft.public.win32.programmer.ole)