Click here to Skip to main content
15,902,447 members
Home / Discussions / COM
   

COM

 
GeneralRe: CoCreateInstance() Fails!! Pin
lgy200021-Mar-06 13:33
lgy200021-Mar-06 13:33 
GeneralRe: CoCreateInstance() Fails!! Pin
Jörgen Sigvardsson26-Mar-06 10:37
Jörgen Sigvardsson26-Mar-06 10:37 
GeneralDECLARE_PROTECT_FINAL_CONSTRUCT Pin
Garth Watkins19-Mar-06 23:34
Garth Watkins19-Mar-06 23:34 
GeneralRe: DECLARE_PROTECT_FINAL_CONSTRUCT Pin
User 21559720-Mar-06 0:01
User 21559720-Mar-06 0:01 
QuestionHow to close a COM Server Process from Client? Thank you! Pin
Best Kiluyar19-Mar-06 14:32
Best Kiluyar19-Mar-06 14:32 
AnswerRe: How to close a COM Server Process from Client? Thank you! Pin
Stephen Hewitt19-Mar-06 16:34
Stephen Hewitt19-Mar-06 16:34 
GeneralRe: How to close a COM Server Process from Client? Thank you! Pin
Best Kiluyar19-Mar-06 17:50
Best Kiluyar19-Mar-06 17:50 
GeneralRe: How to close a COM Server Process from Client? Thank you! Pin
Stephen Hewitt19-Mar-06 18:08
Stephen Hewitt19-Mar-06 18:08 
Ok, you’re talking from the point of view of implementing the server, that wasn't clear in your post. Typically a global reference count is maintained which all implemented COM object increment when they're constructed and decrement when they're destructed. IClassFactory::LockServer also increments or decrements it based on its parameter - References on class factories should not influence this count. When the count transitions to zero the server typically wait for a timeout - If there is no activity and the timeout expires CoSuspendClassObjects is called and we arrange for the application to exit. In short it's complicated. Use ATL and you don't have to worry about any of this.

Steve
QuestionRe: How to close a COM Server Process from Client? Thank you! Pin
Best Kiluyar23-Mar-06 16:23
Best Kiluyar23-Mar-06 16:23 
QuestionPassing Arrays in COM Pin
Johan O17-Mar-06 19:11
Johan O17-Mar-06 19:11 
AnswerRe: Passing Arrays in COM Pin
Jürgen Jung18-Mar-06 1:09
Jürgen Jung18-Mar-06 1:09 
AnswerRe: Passing Arrays in COM Pin
Lim Bio Liong18-Mar-06 5:33
Lim Bio Liong18-Mar-06 5:33 
GeneralThanks Pin
Johan O18-Mar-06 9:03
Johan O18-Mar-06 9:03 
Questionweb services Pin
deborai17-Mar-06 18:18
deborai17-Mar-06 18:18 
Question.NET components remoted by client computer (VB6) thru DCOM? Pin
im_chc17-Mar-06 7:58
professionalim_chc17-Mar-06 7:58 
QuestionChanging UUID of a Control Pin
<color>Aljechin 17-Mar-06 0:02
<color>Aljechin 17-Mar-06 0:02 
AnswerRe: Changing UUID of a Control Pin
khan++17-Mar-06 1:34
khan++17-Mar-06 1:34 
Questionimporting mails from msoutlook Pin
alexenoy16-Mar-06 0:38
alexenoy16-Mar-06 0:38 
QuestionQuestion??? Pin
HakunaMatada15-Mar-06 23:25
HakunaMatada15-Mar-06 23:25 
AnswerRe: Question??? Pin
Gizzo16-Mar-06 0:41
Gizzo16-Mar-06 0:41 
AnswerRe: Question??? Pin
khan++16-Mar-06 0:56
khan++16-Mar-06 0:56 
AnswerRe: Question??? Pin
User 21559719-Mar-06 18:01
User 21559719-Mar-06 18:01 
Questiontool that closely resembles the working of DbgView Pin
abhiramsss15-Mar-06 16:49
abhiramsss15-Mar-06 16:49 
QuestionCHTMLView shutdown problem Pin
starcarrier15-Mar-06 8:25
starcarrier15-Mar-06 8:25 
QuestionHELP ME --> E_FAIL 0x80004005 Pin
dharani14-Mar-06 20:51
dharani14-Mar-06 20: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.