Re: Registering a CLSID in MFC application




VivekR wrote:
> 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

Why don't you generate a noddy MFC application with the OLE Automation
check box checked? Then you can examine the code generated in the
document class for such a case and you'll be able to debug it with the
command line option /regserver set in the debug properties of your
project.

.



Relevant Pages

  • 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)
  • 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.mfc)
  • 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)
  • 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... ... I'm wondering if you want it the other way around, that is an ATL project with MFC support. ...
    (microsoft.public.vc.atl)
  • Re: Form to COM
    ... I have few major problem: ... I compile my C# project on one machine using VS2005, and runs my MFC ... How do I register the COM on users machines? ... REGASM myassem.dll /tlb:com.myassem.tlb ...
    (microsoft.public.dotnet.framework.windowsforms)

Loading