[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] the difference between SWT Embed the browser and SWT embed the word or excel

The embeddable IE control that the Browser uses is defined to run in-process, so SWT runs it this way.  As a result it does not show up in the Task Manager.

If you compare http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet123.java (IE) and http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet262.java (Word) you'll see that they're pretty similar, except that the IE snippet uses an OleControlSite and the Word snippet uses an OleClientSite.  OleControlSite is a subclass of OleClientSite, and takes care of differences like this (running in-proc vs. out-of-proc) that are needed to embed the IE control properly.  It is possible to embed the IE control out-of-process, but is error-prone at runtime since it's not spec'd to be used this way.


willwen <will_wen@xxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

05/22/10 04:56 AM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

[platform-swt-dev] the difference between SWT Embed the browser and SWT embed the word or excel

 My question as follows:
when I use  the SWT embed the word or excel program it will create a WINWORD.EXE process or a EXCEL.EXE process.
but when I run a swt browser appliccation it doesn't run the iexplore.exe process. what;s the difference?
Best Regards
platform-swt-dev mailing list