Re: Alexander Where r u ?
From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 01/17/05
- Next message: michael.loiacono_at_gmail.com: "Re: MapPoint 2002 ocx Control in ATL Composite Control ?"
- Previous message: Alexander Nickolov: "Re: Converting my COM DLL Server to an EXE causes IMarshal - Fail"
- In reply to: ABC: "Re: Alexander Where r u ?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 Jan 2005 10:37:55 -0800
Isn't this simpler to achieve by registering a new protocol for
IE to navigate through? E.g.
mydocproto://my.doc.address
I know nothing beyond its existence, but Igor Tandetnik
here should have quiote a few tips in this regard.
-- ===================================== Alexander Nickolov Microsoft MVP [VC], MCSD email: agnickolov@mvps.org MVP VC FAQ: http://www.mvps.org/vcfaq ===================================== "ABC" <vishalmore@rediffmail.com> wrote in message news:1105774648.037751.264480@z14g2000cwz.googlegroups.com... > Hi Alexander, > > There are some clarifications that I must make to my last post. I want > the IE to host the Word document I created from Structured Storage > inside my Active Document Server. > > I have also realized that it is the container that will show the > document in its client site by calling DoVerb - something that I was > doing explicitly (and incorrectly) inside my Server, as mentioned in my > last post. ( Earlier I was doing DoVerb on the Word document IOleObject > inside CActiveDoc1::OnCreate and the document was getting created in > native WinWord app outside IE) > > However, I now understand that it is the container that will do this > job - once my server calls ActivateMe() and CreateView() and so on. > Upon observation I see that the container is not able to get the right > OleObject (corresponding) from my server.To achieve what I want to, my > ActiveDoc must return the IOleObject (corresponding to Word) to > container (IE). > > I think I must override the QueryInterface function for my ActiveDoc > object to return the IOleObject corresponding to Word. Also, I think > ActiveDoc's QueryInterface must be overridden.Is that right ? > > (My server is based on the Microsoft Sample for ActiveDoc in ATL). I'm > not very experienced with ATL and I'm clueless on how to make sure my > QueryInterface function returns the IOleObject that I want to ? > > I used COM_INTERFACE_ENTRY_FUNC(IID_IOleObject, 0, QI) macro to > override the QueryInterface, but the control is going to this function. > The defination for QI is > static HRESULT WINAPI QI(void* pv, REFIID riid,LPVOID* ppv, DWORD dw) > What is wrong here ? > > Thnx in advance ! >
- Next message: michael.loiacono_at_gmail.com: "Re: MapPoint 2002 ocx Control in ATL Composite Control ?"
- Previous message: Alexander Nickolov: "Re: Converting my COM DLL Server to an EXE causes IMarshal - Fail"
- In reply to: ABC: "Re: Alexander Where r u ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|