Registering a CLSID in MFC application



Hi

My project is a MFC multidoc application. Now I have to expose COM
interfaces so that the application can cater the needs of the clients
through COM interfaces. So I manually added an interface and coclass to
this MFC application. When the client cocreates it gets error saying
"Cannot find the specified path" or "class not registered", failed hr.
I understand that this CLSID that i added manually must be registered.
But when i use the commandline /regserver, just my application starts
up, but the CLSID is not registered.

How do i register the CLSID from this MFC application ?
Where I should and what code must i add to register it.

Your help appreciated.

Thanks & Regards
Vivek Ragunathan

.



Relevant Pages

  • Re: COM object data persistence
    ... > common data, I found the common data is not the same as the VB, MFC ... > clients accessed. ... I believe you need to register your class objects with the ...
    (microsoft.public.vc.atl)
  • Re: Registering a CLSID in MFC application
    ... > My project is a MFC multidoc application. ... > interfaces so that the application can cater the needs of the clients ... > I understand that this CLSID that i added manually must be registered. ... > Where I should and what code must i add to register it. ...
    (microsoft.public.vc.mfc)
  • Registering a CLSID in MFC application
    ... My project is a MFC multidoc application. ... interfaces so that the application can cater the needs of the clients ... Where I should and what code must i add to register it. ...
    (microsoft.public.vc.atl)
  • Re: How to registere Com classes of MFC/ATL support application
    ... Problem is how to register this calsses? ... not registered..OLEVIEWER doesnt show up the interfaces or classes... ... MFC and ATL really don't mix that well together in the same project. ...
    (microsoft.public.vc.atl)
  • Using assembly with interfaces only.
    ... I want to expose these interfaces to COM Clients. ... then I used regasm.exe to generate tlb and register it, ...
    (microsoft.public.dotnet.framework.interop)