Re: Problem understanding how WebBrowser Control communicates with APP
From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 04/26/04
- Next message: Igor Tandetnik: "Re: How to catch web page script "moveto()" in CHtmlView?"
- Previous message: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- In reply to: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- Next in thread: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- Reply: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 26 Apr 2004 09:28:53 -0400
"Martin Payne" <martin@microcosm.co.uk> wrote in message
news:408cdcbe.6057109@news.eclipse.co.uk
>> Yes. That's why you register a class factory with the
>> IInternetSession, not the APP itself. The class factory should
>> manufacture new instances on demand.
>>
>> When your implementation of IClassFactory::CreateInstance is called,
>> you - surprise - create an instance.
>
> That is my problem - I do not have an implmentation of the
> IClassFactory. To be honest I do not really know how to do this. I
> based my code around the CBitmappAPP that you sent me (from my 6 Feb
> post) which calls CreateInstance for the IClassFactory but does not
> implement the CreateInstance anywhere.
It uses ATL's stock IClassFactory implementation. If you use ATL, that's
how you can get it:
IClassFactory* pCF;
HRESULT hr = YourClass::_ClassFactoryCreatorClass::CreateInstance(
YourClass::_CreatorClass::CreateInstance,
IID_IClassFactory,
reinterpret_cast<void**>(&pCF));
Otherwise, write a simple COM object that implements IClassFactory
interface.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
- Next message: Igor Tandetnik: "Re: How to catch web page script "moveto()" in CHtmlView?"
- Previous message: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- In reply to: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- Next in thread: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- Reply: Martin Payne: "Re: Problem understanding how WebBrowser Control communicates with APP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|