Click here to Skip to main content
15,913,836 members
Home / Discussions / COM
   

COM

 
GeneralActiveX newbie looking for a starting point... Pin
cjlambre25-Mar-04 3:37
cjlambre25-Mar-04 3:37 
GeneralRe: ActiveX newbie looking for a starting point... Pin
ian mariano25-Mar-04 10:12
ian mariano25-Mar-04 10:12 
GeneralIStorage Pin
Phil J Pearson24-Mar-04 22:33
Phil J Pearson24-Mar-04 22:33 
GeneralRe: IStorage Pin
Nick Parker25-Mar-04 3:13
protectorNick Parker25-Mar-04 3:13 
GeneralRe: IStorage Pin
Phil J Pearson25-Mar-04 5:01
Phil J Pearson25-Mar-04 5:01 
GeneralRe: IStorage Pin
Nick Parker25-Mar-04 6:03
protectorNick Parker25-Mar-04 6:03 
GeneralCHtmlView Pin
alex.barylski24-Mar-04 22:09
alex.barylski24-Mar-04 22:09 
GeneralRe: CHtmlView Pin
Rob Manderson24-Mar-04 22:32
protectorRob Manderson24-Mar-04 22:32 
I took a look at the class definition. The class creates an instance of the WebBrowser and then does a QueryInterface() through that instance to get the IWebBrowser2 interface which is wrapped in a CComPtr<IWebBrowser2> m_pBrowserApp; member. It's safe to keep that interface pointer around - it ain't going to change unless the WebBrowser itself is closed. You can get all the other interfaces from that one (either directly or indirectly).

I'd suggest not trying to do multiple inheritance. Use the m_pBrowser member to QueryInterface() to get the IHTMLDocument2 interface and go from there (edit - or just call GetHTMLDocument). Don't forget that the document can change if you do a navigate so caching that interface pointer could cause problems.


Rob Manderson

Colin Davies wrote: I'm sure Americans could use more of it, and thus reduce the world supply faster. This of course would be good, because the faster we run out globally, the less chance of pollution there will be. (Talking about the price of petrol) The Soapbox, March 5 2004
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 0:11
alex.barylski25-Mar-04 0:11 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 8:40
protectorRob Manderson25-Mar-04 8:40 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 12:06
alex.barylski25-Mar-04 12:06 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 12:27
protectorRob Manderson25-Mar-04 12:27 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 13:00
alex.barylski25-Mar-04 13:00 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 13:14
protectorRob Manderson25-Mar-04 13:14 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 15:27
alex.barylski25-Mar-04 15:27 
GeneralRe: CHtmlView Pin
Rob Manderson25-Mar-04 15:50
protectorRob Manderson25-Mar-04 15:50 
GeneralRe: CHtmlView Pin
alex.barylski25-Mar-04 16:30
alex.barylski25-Mar-04 16:30 
GeneralRe: CHtmlView Pin
alex.barylski26-Mar-04 13:40
alex.barylski26-Mar-04 13:40 
GeneralRe: CHtmlView Pin
Rob Manderson26-Mar-04 13:56
protectorRob Manderson26-Mar-04 13:56 
GeneralSafeArray freak Pin
El'Cachubrey24-Mar-04 5:46
El'Cachubrey24-Mar-04 5:46 
QuestionMake a Composite Control (COM) be an OLE container? Pin
mangellj24-Mar-04 5:30
mangellj24-Mar-04 5:30 
QuestionActiveX storing data to be picked up by another ActiveX later? Pin
SysLo23-Mar-04 0:57
SysLo23-Mar-04 0:57 
AnswerRe: ActiveX storing data to be picked up by another ActiveX later? Pin
igor196024-Mar-04 15:01
igor196024-Mar-04 15:01 
GeneralRe: ActiveX storing data to be picked up by another ActiveX later? Pin
SysLo25-Mar-04 1:49
SysLo25-Mar-04 1:49 
GeneralI am unable to retrieve Combuilder in Matlab Pin
vil_0922-Mar-04 20:08
vil_0922-Mar-04 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.