Click here to Skip to main content
15,909,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory as displayed in NT/2k TaskManager Pin
Erik Funkenbusch26-Dec-00 9:00
Erik Funkenbusch26-Dec-00 9:00 
GeneralProperties Sheet Pin
23-Dec-00 4:48
suss23-Dec-00 4:48 
GeneralRe: Properties Sheet Pin
23-Dec-00 23:57
suss23-Dec-00 23:57 
GeneralDialog Pin
22-Dec-00 14:14
suss22-Dec-00 14:14 
GeneralRe: Dialog Pin
22-Dec-00 15:38
suss22-Dec-00 15:38 
GeneralImage Overlay Pin
22-Dec-00 11:42
suss22-Dec-00 11:42 
GeneralRe: Image Overlay Pin
l a u r e n23-Dec-00 21:08
l a u r e n23-Dec-00 21:08 
GeneralChanging a MDI Child Window Icon Pin
22-Dec-00 8:21
suss22-Dec-00 8:21 
QuestionEasy way to create a popup menu with the Grid Control? Pin
Jason Douglas22-Dec-00 3:00
professionalJason Douglas22-Dec-00 3:00 
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 

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.