Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CheckBoxes in setup Pin
BoudewijnEctor12-Nov-03 4:38
BoudewijnEctor12-Nov-03 4:38 
GeneralRe: CheckBoxes in setup Pin
David Crow12-Nov-03 4:54
David Crow12-Nov-03 4:54 
GeneralRe: CheckBoxes in setup Pin
BoudewijnEctor2-Dec-03 21:55
BoudewijnEctor2-Dec-03 21:55 
GeneralRe: CheckBoxes in setup Pin
David Crow3-Dec-03 2:54
David Crow3-Dec-03 2:54 
GeneralRe: CheckBoxes in setup Pin
Maximilien12-Nov-03 4:49
Maximilien12-Nov-03 4:49 
GeneralChange Printer Port Pin
Andy H12-Nov-03 3:04
Andy H12-Nov-03 3:04 
GeneralMFC and COM, and Access violation in CoUninitialize Pin
sagmam12-Nov-03 2:55
sagmam12-Nov-03 2:55 
GeneralRe: MFC and COM, and Access violation in CoUninitialize Pin
Antti Keskinen12-Nov-03 3:38
Antti Keskinen12-Nov-03 3:38 
The most important aspect of using COM with MFC is to initialize and uninitialize COM correctly.

Instead of using a global object, I suggest that you put ::CoInitialize(NULL) in the start of your CWinApp-derived application's 'InitInstance' and ::CoUninitialize() o the end of the same application's 'ExitInstance' (Before return call). This way, the initialization and uninitialization are handled smoothly.

As for the actual problem, I have just about no idea of where it lies. I suggest using the above methodology to utilize COM server.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: MFC and COM, and Access violation in CoUninitialize Pin
sagmam12-Nov-03 4:06
sagmam12-Nov-03 4:06 
GeneralRe: MFC and COM, and Access violation in CoUninitialize Pin
Pir8ofTampa12-Nov-03 4:32
Pir8ofTampa12-Nov-03 4:32 
GeneralRe: MFC and COM, and Access violation in CoUninitialize Pin
sagmam12-Nov-03 23:05
sagmam12-Nov-03 23:05 
GeneralWinsock Pin
Stan the man12-Nov-03 2:41
Stan the man12-Nov-03 2:41 
GeneralRe: Winsock Pin
Johnny ²12-Nov-03 2:48
Johnny ²12-Nov-03 2:48 
GeneralRe: Winsock Pin
Pir8ofTampa12-Nov-03 3:20
Pir8ofTampa12-Nov-03 3:20 
GeneralFile Pin
Anonymous12-Nov-03 2:37
Anonymous12-Nov-03 2:37 
GeneralRe: File Pin
David Crow12-Nov-03 3:17
David Crow12-Nov-03 3:17 
Generalhelp needed with CSocket Pin
Aswin12-Nov-03 2:03
Aswin12-Nov-03 2:03 
GeneralRe: help needed with CSocket Pin
Johnny ²12-Nov-03 3:01
Johnny ²12-Nov-03 3:01 
GeneralRe: help needed with CSocket Pin
Aswin12-Nov-03 3:34
Aswin12-Nov-03 3:34 
Generala problem about CListCtrl Pin
benben12-Nov-03 2:02
benben12-Nov-03 2:02 
GeneralRe: a problem about CListCtrl Pin
David Crow12-Nov-03 3:26
David Crow12-Nov-03 3:26 
GeneralThanks a lot. Pin
benben12-Nov-03 15:35
benben12-Nov-03 15:35 
Generalmajor difference between a service and a exe Pin
Anonymous12-Nov-03 1:55
Anonymous12-Nov-03 1:55 
GeneralRe: major difference between a service and a exe Pin
geo_m12-Nov-03 3:23
geo_m12-Nov-03 3:23 
Generalini file Pin
jasu12-Nov-03 1:37
jasu12-Nov-03 1:37 

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.