Re: Registering a CLSID in MFC application
- From: "Headache" <rquirk@xxxxxxxxxxxxxx>
- Date: 15 Dec 2005 01:01:50 -0800
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.
.
- References:
- Registering a CLSID in MFC application
- From: VivekR
- Registering a CLSID in MFC application
- Prev by Date: Re: How to Hightlight text in CRichEditCtrl
- Next by Date: Re: Using lparam in cheaderctrl
- Previous by thread: Registering a CLSID in MFC application
- Next by thread: Debugger doesn't show stativ values
- Index(es):
Relevant Pages
|
Loading