Click here to Skip to main content
15,921,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
Nitheesh George11-Apr-08 4:29
Nitheesh George11-Apr-08 4:29 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait11-Apr-08 5:22
followait11-Apr-08 5:22 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
Nitheesh George11-Apr-08 6:45
Nitheesh George11-Apr-08 6:45 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait11-Apr-08 7:09
followait11-Apr-08 7:09 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait11-Apr-08 7:18
followait11-Apr-08 7:18 
QuestionWhat is wrong with this iterator? Pin
vikramlinux10-Apr-08 22:41
vikramlinux10-Apr-08 22:41 
AnswerRe: What is wrong with this iterator? Pin
vikramlinux10-Apr-08 22:46
vikramlinux10-Apr-08 22:46 
GeneralRe: What is wrong with this iterator? Pin
Cedric Moonen10-Apr-08 22:58
Cedric Moonen10-Apr-08 22:58 
GeneralRe: What is wrong with this iterator? Pin
Stephen Hewitt13-Apr-08 14:21
Stephen Hewitt13-Apr-08 14:21 
GeneralRe: What is wrong with this iterator? Pin
Rajesh R Subramanian10-Apr-08 23:04
professionalRajesh R Subramanian10-Apr-08 23:04 
AnswerRe: What is wrong with this iterator? Pin
Cedric Moonen10-Apr-08 22:50
Cedric Moonen10-Apr-08 22:50 
AnswerRe: What is wrong with this iterator? Pin
Jonathan [Darka]10-Apr-08 23:00
professionalJonathan [Darka]10-Apr-08 23:00 
GeneralRe: What is wrong with this iterator? Pin
vikramlinux11-Apr-08 1:31
vikramlinux11-Apr-08 1:31 
Generalafter pressing button dialog box should be pop up like Windos Explorer Start Button in SDK [modified] Pin
Pankaj Kothawade10-Apr-08 19:48
Pankaj Kothawade10-Apr-08 19:48 
GeneralRe: after pressing button dialog box should be pop up like Windos Explorer Start Button in SDK Pin
Hamid_RT12-Apr-08 5:45
Hamid_RT12-Apr-08 5:45 
Generalin-process server considerations Pin
George_George10-Apr-08 19:39
George_George10-Apr-08 19:39 
GeneralRe: in-process server considerations Pin
Stephen Hewitt10-Apr-08 20:14
Stephen Hewitt10-Apr-08 20:14 
GeneralRe: in-process server considerations Pin
George_George10-Apr-08 21:37
George_George10-Apr-08 21:37 
GeneralRe: in-process server considerations Pin
Stephen Hewitt10-Apr-08 21:39
Stephen Hewitt10-Apr-08 21:39 
GeneralRe: in-process server considerations Pin
George_George10-Apr-08 21:58
George_George10-Apr-08 21:58 
GeneralRe: in-process server considerations Pin
Stephen Hewitt10-Apr-08 22:04
Stephen Hewitt10-Apr-08 22:04 
George_George wrote:
Here is the comments from the book ATL Internals about in-process server considerations,

--------------------
Any thread that calls CoGetClassObject or CoCreateInstance must already have joined an apartment, or the call will fail immediately. So, does that mean all objects exposed from in-process servers must be equally at home in single-threaded and multithreaded apartments so that random clients isn't cause harm? Fortunately, no.
--------------------


Any thread that calls CoGetClassObject or CoCreateInstance must already have joined an apartment, or the call will fail immediately.

This part is pretty straight forward.



So, does that mean all objects exposed from in-process servers must be equally at home in single-threaded and multithreaded apartments so that random clients isn't cause harm?

This just seems to be another way of stating the question you asked.



Fortunately, no.

This is saying that the threading models of the client and server do not have to match but goes into no details on how this is achieved.

Steve

GeneralRe: in-process server considerations Pin
George_George10-Apr-08 22:07
George_George10-Apr-08 22:07 
QuestionError loading ActiveX control in secondary desktop ? Pin
phucbaby10-Apr-08 19:31
phucbaby10-Apr-08 19:31 
GeneralRe: Error loading ActiveX control in secondary desktop ? Pin
phucbaby10-Apr-08 19:37
phucbaby10-Apr-08 19:37 
GeneralRe: Error loading ActiveX control in secondary desktop ? Pin
leenmie13-Apr-08 4:03
leenmie13-Apr-08 4:03 

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.