Click here to Skip to main content
15,892,005 members
Home / Discussions / COM
   

COM

 
AnswerRe: How to get notified about the out-of-process server crashed ? Pin
Dudi Avramov1-Mar-03 21:55
Dudi Avramov1-Mar-03 21:55 
GeneralVB6 COM book Pin
Davy Mitchell5-Feb-03 1:41
Davy Mitchell5-Feb-03 1:41 
GeneralRe: VB6 COM book Pin
Nick Parker14-Feb-03 16:47
protectorNick Parker14-Feb-03 16:47 
GeneralConstructors, Destructors and FinalRelease Pin
Jeremy Pullicino4-Feb-03 21:29
Jeremy Pullicino4-Feb-03 21:29 
GeneralRe: Constructors, Destructors and FinalRelease Pin
Anders Molin6-Feb-03 9:29
professionalAnders Molin6-Feb-03 9:29 
GeneralRe: Constructors, Destructors and FinalRelease Pin
Jörgen Sigvardsson17-Feb-03 10:21
Jörgen Sigvardsson17-Feb-03 10:21 
GeneralRe: Constructors, Destructors and FinalRelease Pin
Anders Molin17-Feb-03 12:05
professionalAnders Molin17-Feb-03 12:05 
GeneralRe: Constructors, Destructors and FinalRelease Pin
Jörgen Sigvardsson17-Feb-03 10:23
Jörgen Sigvardsson17-Feb-03 10:23 
The biggest advantage over FinalXXX over ctor/dtor is that you can compile with _ATL_MIN_CRT and not having to worry whether your global objects constructors/destructors are called or not. And you can signal error through HRESULT in the FinalConstruct method, causing CoCreateInstance() to report the failure. In C++ you'd have to throw something for that, and we all know that exceptions and COM doesn't really go hand in hand. Smile | :)

Of course, you could bypass the _ATL_MIN_CRT effect with placement new/explicit destructor calls in select places. However, FinalXXXis safer and produces more maintainable code, IMHO.

--
Yeeeeehaaaaawwwwd!
GeneralActiveX control on website Pin
Ice|Man4-Feb-03 4:08
Ice|Man4-Feb-03 4:08 
GeneralRe: ActiveX control on website Pin
Abbas_Riazi4-Feb-03 21:33
professionalAbbas_Riazi4-Feb-03 21:33 
GeneralRe: ActiveX control on website Pin
Ice|Man4-Feb-03 21:47
Ice|Man4-Feb-03 21:47 
GeneralRe: ActiveX control on website Pin
Abbas_Riazi5-Feb-03 0:30
professionalAbbas_Riazi5-Feb-03 0:30 
Generalcom loading Pin
Anonymous3-Feb-03 20:21
Anonymous3-Feb-03 20:21 
GeneralRe: com loading Pin
Abbas_Riazi4-Feb-03 21:17
professionalAbbas_Riazi4-Feb-03 21:17 
QuestionMore info on com? Pin
LiquidKnight3-Feb-03 12:22
LiquidKnight3-Feb-03 12:22 
AnswerRe: More info on com? Pin
Anders Molin6-Feb-03 9:31
professionalAnders Molin6-Feb-03 9:31 
GeneralWeird COM behavior Pin
vray1233-Feb-03 4:43
vray1233-Feb-03 4:43 
GeneralRe: Weird COM behavior Pin
AlexO3-Feb-03 5:11
AlexO3-Feb-03 5:11 
GeneralRe: Weird COM behavior Pin
vray1233-Feb-03 6:16
vray1233-Feb-03 6:16 
Generalprb:createobject Pin
shanksprasad2-Feb-03 22:25
shanksprasad2-Feb-03 22:25 
GeneralRe: prb:createobject Pin
AlexO3-Feb-03 5:14
AlexO3-Feb-03 5:14 
QuestionHow do I end an ATL EXE srvr when client abnormally terminates Pin
nebbish31-Jan-03 12:08
nebbish31-Jan-03 12:08 
AnswerRe: How do I end an ATL EXE srvr when client abnormally terminates Pin
AlexO3-Feb-03 5:25
AlexO3-Feb-03 5:25 
GeneralUsing Com in MTS Pin
AnirbanMondal31-Jan-03 0:44
AnirbanMondal31-Jan-03 0:44 
GeneralRe: Using Com in MTS Pin
pushpi1-Feb-03 0:51
pushpi1-Feb-03 0:51 

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.