Click here to Skip to main content
15,886,809 members
Home / Discussions / COM
   

COM

 
AnswerRe: Building an Office2K COM addin with VC++/ATL Pin
sudeesh8-Aug-06 18:06
sudeesh8-Aug-06 18:06 
AnswerRe: Building an Office2K COM addin with VC++/ATL [modified] Pin
sudeesh8-Aug-06 18:06
sudeesh8-Aug-06 18:06 
QuestionHelp~~~ Pin
HuizhiZhao4-Aug-06 19:39
HuizhiZhao4-Aug-06 19:39 
AnswerRe: Help~~~ Pin
anu_885-Aug-06 1:44
anu_885-Aug-06 1:44 
GeneralRe: Help~~~ Pin
HuizhiZhao6-Aug-06 15:34
HuizhiZhao6-Aug-06 15:34 
AnswerRe: Help~~~ Pin
Michael Dunn5-Aug-06 11:17
sitebuilderMichael Dunn5-Aug-06 11:17 
GeneralRe: Help~~~ Pin
HuizhiZhao6-Aug-06 15:34
HuizhiZhao6-Aug-06 15:34 
AnswerRe: Help~~~ Pin
Jörgen Sigvardsson5-Aug-06 13:28
Jörgen Sigvardsson5-Aug-06 13:28 
In short: CComBSTR is a thin wrapper around the BSTR API, while _bstr_t is a rather thick one. By thick I mean that it wraps associated HRESULTs into exceptions.

_bstr_t is more suitable for applications, in which it's almost always possible to throw exceptions across calls. In certain scenarios however, such as in COM components, it's not advisable to do that because of threading/apartment issues (it's downright dangerous!). In such scenarios, CComBSTR is far better suitable, as it does not throw exceptions. Smile | :)


--
Mr. Bender's Wardrobe by ROBOTANY 500
GeneralRe: Help~~~ Pin
HuizhiZhao6-Aug-06 15:35
HuizhiZhao6-Aug-06 15:35 
Questionnewbee trying to create GUID programetically Pin
harsha_12343-Aug-06 21:17
harsha_12343-Aug-06 21:17 
AnswerRe: newbee trying to create GUID programetically [modified] Pin
Jonathan [Darka]3-Aug-06 21:39
professionalJonathan [Darka]3-Aug-06 21:39 
Questionhow can i handling IHTMLElement event,about reuseing webbrowser Pin
O_O_O3-Aug-06 15:42
O_O_O3-Aug-06 15:42 
QuestionProblem releasing an object from memory in IE Pin
gvsunil2-Aug-06 23:31
gvsunil2-Aug-06 23:31 
AnswerRe: Problem releasing an object from memory in IE Pin
Mike Dimmick6-Aug-06 23:29
Mike Dimmick6-Aug-06 23:29 
Questionquetion regarding ocx object unloading (Addref, Release) Pin
darbien siamak2-Aug-06 9:39
darbien siamak2-Aug-06 9:39 
AnswerRe: quetion regarding ocx object unloading (Addref, Release) Pin
Mike Dimmick14-Aug-06 16:35
Mike Dimmick14-Aug-06 16:35 
QuestionAutofilter Method of Excel worksheet range? Pin
vaibhav24122-Aug-06 6:38
vaibhav24122-Aug-06 6:38 
QuestionPING other Systems Pin
abhiramsss31-Jul-06 2:09
abhiramsss31-Jul-06 2:09 
AnswerRe: PING other Systems Pin
QuickDeveloper1-Aug-06 18:25
QuickDeveloper1-Aug-06 18:25 
QuestionHow to open DLL files to read the code Pin
Harshad Pednekar31-Jul-06 1:18
Harshad Pednekar31-Jul-06 1:18 
AnswerRe: How to open DLL files to read the code Pin
Prakash Nadar1-Aug-06 1:14
Prakash Nadar1-Aug-06 1:14 
QuestionSinks Pin
DanB198328-Jul-06 0:08
DanB198328-Jul-06 0:08 
AnswerRe: Sinks Pin
Stephen Hewitt28-Jul-06 1:17
Stephen Hewitt28-Jul-06 1:17 
AnswerRe: Sinks Pin
Kiran Pinjala31-Jul-06 21:26
Kiran Pinjala31-Jul-06 21:26 
QuestionI want to load COM objects in a C# application Pin
Steve Messer27-Jul-06 17:20
Steve Messer27-Jul-06 17:20 

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.