Click here to Skip to main content
15,889,909 members
Home / Discussions / COM
   

COM

 
QuestionHow DCOM is implemented? Pin
jayanthkulkarni3-Jul-06 2:21
jayanthkulkarni3-Jul-06 2:21 
AnswerRe: How DCOM is implemented? Pin
Mike Dimmick3-Jul-06 3:07
Mike Dimmick3-Jul-06 3:07 
QuestionHow to register a UPnP device Pin
Le Saint2-Jul-06 1:41
Le Saint2-Jul-06 1:41 
QuestionActiveX Question, help me. Pin
Shi Zhu29-Jun-06 23:18
Shi Zhu29-Jun-06 23:18 
AnswerRe: ActiveX Question, help me. Pin
peterchen8-Jul-06 5:33
peterchen8-Jul-06 5:33 
QuestionUsing MSHTML/CHtmlView in a thread Pin
Neville Franks29-Jun-06 16:31
Neville Franks29-Jun-06 16:31 
AnswerRe: Using MSHTML/CHtmlView in a thread Pin
Keith Worden30-Jun-06 1:04
Keith Worden30-Jun-06 1:04 
GeneralRe: Using MSHTML/CHtmlView in a thread Pin
Neville Franks30-Jun-06 1:38
Neville Franks30-Jun-06 1:38 
Hi Keith,
Thanks for the reply. I got the following reply on an MS Newgroup, which explains things.

You cannot simply pass COM interface pointers to a worker thread - you
need to marshal them. See

http://support.microsoft.com/?kbid=150777

MSHTML is a single-threaded component. If you don't marshal the
pointers - in violation of COM rules - you'll likely get random crashes.
If you do marshal, then any call you make in the worker thread though
such a pointer gets marshalled back to the main thread, executed there,
and any results marshalled back to the worker. Essentially, the worker
thread isn't doing any work, it spends all its time waiting for the main
thread to serve its calls.

Bottom line: it's pointless to perform DHTML manipulations from a worker
thread. You add pure overhead, without gaining anything at all.


I was already working on implementation that built the HTML in a thead and
added it to a queue for the app thread to display. My main problem was
getting the main thread to be a bit more responsive when large chunks of
HTML are in play. After a few different implementations, I've now got
something I'm quite happy with.

Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
AnswerRe: Using MSHTML/CHtmlView in a thread Pin
peterchen8-Jul-06 5:37
peterchen8-Jul-06 5:37 
QuestionError registering dll Pin
Keith Worden29-Jun-06 7:33
Keith Worden29-Jun-06 7:33 
AnswerRe: Error registering dll Pin
Stephen Hewitt29-Jun-06 14:08
Stephen Hewitt29-Jun-06 14:08 
GeneralRe: Error registering dll Pin
Keith Worden30-Jun-06 0:19
Keith Worden30-Jun-06 0:19 
AnswerRe: Error registering dll Pin
Keith Worden30-Jun-06 0:54
Keith Worden30-Jun-06 0:54 
QuestionOutlook addin / paste clipboard content in message window Pin
Nicolas Richeton28-Jun-06 23:02
Nicolas Richeton28-Jun-06 23:02 
AnswerRe: Outlook addin / paste clipboard content in message window Pin
Nicolas Richeton29-Jun-06 4:59
Nicolas Richeton29-Jun-06 4:59 
QuestionIs COM supported on operating systems other than windows? Pin
Ajax9528-Jun-06 14:43
Ajax9528-Jun-06 14:43 
QuestionGetting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Muhammad Azam28-Jun-06 4:10
Muhammad Azam28-Jun-06 4:10 
AnswerRe: Getting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Mike Dimmick3-Jul-06 3:25
Mike Dimmick3-Jul-06 3:25 
GeneralRe: Getting Exception when two instance of ActiveX control are opened using Ctrl+N in IE Pin
Muhammad Azam4-Jul-06 23:21
Muhammad Azam4-Jul-06 23:21 
QuestionImporting and using an OCX Pin
Sean Capstick28-Jun-06 3:45
Sean Capstick28-Jun-06 3:45 
Questionchanges in idl file generated by an ocx [modified] Pin
nikhil_ag198528-Jun-06 0:31
nikhil_ag198528-Jun-06 0:31 
AnswerRe: changes in idl file generated by an ocx Pin
Mike Dimmick28-Jun-06 8:54
Mike Dimmick28-Jun-06 8:54 
GeneralRe: changes in idl file generated by an ocx Pin
nikhil_ag198528-Jun-06 15:24
nikhil_ag198528-Jun-06 15:24 
GeneralRe: changes in idl file generated by an ocx Pin
nikhil_ag19855-Jul-06 20:11
nikhil_ag19855-Jul-06 20:11 
QuestionAdding picture to outlook command button Pin
Laxman Auti28-Jun-06 0:00
Laxman Auti28-Jun-06 0:00 

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.