Click here to Skip to main content
15,899,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInternet Protocols Pin
Alpesh22-Dec-00 2:12
Alpesh22-Dec-00 2:12 
QuestionHow can i get current domain name? Pin
22-Dec-00 0:44
suss22-Dec-00 0:44 
GeneralCListCtrl with full row selection Pin
22-Dec-00 0:36
suss22-Dec-00 0:36 
GeneralRe: CListCtrl with full row selection Pin
22-Dec-00 0:48
suss22-Dec-00 0:48 
GeneralRe: CListCtrl with full row selection Pin
Erik Funkenbusch26-Dec-00 9:03
Erik Funkenbusch26-Dec-00 9:03 
GeneralCoCreateInstance Timeout Pin
22-Dec-00 0:03
suss22-Dec-00 0:03 
GeneralRe: CoCreateInstance Timeout Pin
l a u r e n22-Dec-00 6:22
l a u r e n22-Dec-00 6:22 
GeneralRe: CoCreateInstance Timeout Pin
Julien26-Dec-00 11:24
Julien26-Dec-00 11:24 
Hi Brenda & Lauren,

I too have had this problem and found that there was an INBUILT timeout! I am led to believe that it can be configured in the registry but did not bother to investigate it as it would be set for ALL CoCreateInstance calls not just mine. So my evil hack was to write my own CoCreateInstanceWithTimeout call which creates the object in a separate thread which I can then use as an arguement to WaitForSingleObject. (Threads send a signal upon termination)
The trick was to recognise that the caller had already timed out and to release the object cleanly watching for race conditions.

Sorry I couldn't be more helpful.

Jules
GeneralRe: CoCreateInstance Timeout Pin
30-Dec-00 9:38
suss30-Dec-00 9:38 
GeneralCalling VB Com DLLs Pin
21-Dec-00 23:58
suss21-Dec-00 23:58 
GeneralRe: Calling VB Com DLLs Pin
l a u r e n22-Dec-00 6:26
l a u r e n22-Dec-00 6:26 
GeneralRe: Calling VB Com DLLs Pin
Julien26-Dec-00 11:36
Julien26-Dec-00 11:36 
GeneralRe: Calling VB Com DLLs Pin
30-Dec-00 9:33
suss30-Dec-00 9:33 
GeneralRe: Calling VB Com DLLs Pin
31-Dec-00 6:02
suss31-Dec-00 6:02 
Questionwindows messages in numeric order? Pin
21-Dec-00 23:42
suss21-Dec-00 23:42 
AnswerRe: windows messages in numeric order? Pin
l a u r e n22-Dec-00 6:16
l a u r e n22-Dec-00 6:16 
AnswerRe: windows messages in numeric order? Pin
Michael Dunn22-Dec-00 16:35
sitebuilderMichael Dunn22-Dec-00 16:35 
GeneralRe: windows messages in numeric order? Pin
l a u r e n23-Dec-00 1:34
l a u r e n23-Dec-00 1:34 
Generalwindows address book file format Pin
l a u r e n21-Dec-00 19:30
l a u r e n21-Dec-00 19:30 
QuestionHow do I write a CBitmap to a file? Pin
21-Dec-00 10:24
suss21-Dec-00 10:24 
AnswerRe: How do I write a CBitmap to a file? Pin
Christian Graus21-Dec-00 10:30
protectorChristian Graus21-Dec-00 10:30 
Generalweb spider script wanted Pin
21-Dec-00 6:34
suss21-Dec-00 6:34 
Questionhow to change BackGroundColor? Pin
20-Dec-00 21:02
suss20-Dec-00 21:02 
AnswerRe: how to change BackGroundColor? Pin
Koceto21-Dec-00 0:58
Koceto21-Dec-00 0:58 
AnswerRe: how to change BackGroundColor? Pin
21-Dec-00 10:38
suss21-Dec-00 10:38 

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.