Click here to Skip to main content
15,905,782 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows services Pin
Heath Stewart22-Oct-03 5:27
protectorHeath Stewart22-Oct-03 5:27 
GeneralPainting the title bar Pin
wangier21-Oct-03 23:41
wangier21-Oct-03 23:41 
Generalcontrol on Desktop Pin
vikramlinux21-Oct-03 22:19
vikramlinux21-Oct-03 22:19 
GeneralRe: control on Desktop Pin
Heath Stewart22-Oct-03 5:23
protectorHeath Stewart22-Oct-03 5:23 
GeneralRe: control on Desktop Pin
Bo Hunter22-Oct-03 12:35
Bo Hunter22-Oct-03 12:35 
GeneralRe: control on Desktop Pin
Heath Stewart22-Oct-03 12:52
protectorHeath Stewart22-Oct-03 12:52 
GeneralInternet Explorer` Pin
Srikar Y21-Oct-03 19:31
Srikar Y21-Oct-03 19:31 
GeneralRe: Internet Explorer` Pin
Heath Stewart22-Oct-03 4:11
protectorHeath Stewart22-Oct-03 4:11 
First, wrong forum.

Second, when writing COM clients, there's really no such things as classes that you can access. Everything is done through interfaces. If you're writing a COM server, you of course use classes but they implement the interface through which clients access the classes. This is one of the fundamentals of COM.

Finally, when the host (Internet Explorer) calls IObjectWithSite::SetSite(IUnknown*), you QI (QueryInterface) for the IWebBrowser2 interface. That's your web browser. Later, call IWebBrowser2::get_Document(IDispatch**) and QI the IDispatch for IHTMLDocument2 (or a newer interface, depending on your browser requirements).

Next time, though, there is a forum for ATL and COM. This would be a more suitable place. If you are using C# to do this, instead of QI'ing for an interface, you simply do a type-cast. The CLR treats this the same.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Internet Explorer` Pin
Philip Fitzsimons22-Oct-03 8:01
Philip Fitzsimons22-Oct-03 8:01 
GeneralDrawing zigzag red lines under words Pin
Meysam Mahfouzi21-Oct-03 19:00
Meysam Mahfouzi21-Oct-03 19:00 
QuestionCan not display toolbar icons, a framework bug? Pin
Libra21-Oct-03 17:47
Libra21-Oct-03 17:47 
GeneralComboBox Pin
Gary Kirkham21-Oct-03 17:09
Gary Kirkham21-Oct-03 17:09 
GeneralRe: ComboBox Pin
Heath Stewart22-Oct-03 3:50
protectorHeath Stewart22-Oct-03 3:50 
GeneralRe: ComboBox Pin
J. Dunlap22-Oct-03 9:33
J. Dunlap22-Oct-03 9:33 
GeneralRe: ComboBox Pin
Heath Stewart22-Oct-03 9:36
protectorHeath Stewart22-Oct-03 9:36 
QuestionHow to get title bar's graphics or its retangle? Pin
wangier21-Oct-03 16:42
wangier21-Oct-03 16:42 
GeneralCapture HTML as Image Pin
Member 31415321-Oct-03 15:28
Member 31415321-Oct-03 15:28 
GeneralWeb Site Scrape Problem Pin
Member 50249221-Oct-03 12:36
Member 50249221-Oct-03 12:36 
GeneralRe: Web Site Scrape Problem Pin
Kentamanos21-Oct-03 12:59
Kentamanos21-Oct-03 12:59 
GeneralRe: Web Site Scrape Problem Pin
Member 50249221-Oct-03 16:32
Member 50249221-Oct-03 16:32 
GeneralRapping rappers? Wrapping wrappers! Pin
allancto21-Oct-03 9:36
allancto21-Oct-03 9:36 
GeneralRe: Rapping rappers? Wrapping wrappers! Pin
James Simpson24-Oct-03 2:08
James Simpson24-Oct-03 2:08 
GeneralRe: Rapping rappers? Wrapping wrappers! Pin
allancto26-Oct-03 21:37
allancto26-Oct-03 21:37 
GeneralType.GetType("System.Drawing.Color") returns null?! Pin
Arun Bhalla21-Oct-03 8:27
Arun Bhalla21-Oct-03 8:27 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
leppie21-Oct-03 8:36
leppie21-Oct-03 8:36 

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.