Click here to Skip to main content
15,908,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSetWindowLong using a class member function? Pin
Harco17-Sep-03 0:59
Harco17-Sep-03 0:59 
AnswerRe: SetWindowLong using a class member function? Pin
Jagadeesh VN17-Sep-03 1:21
Jagadeesh VN17-Sep-03 1:21 
GeneralRe: SetWindowLong using a class member function? Pin
Harco17-Sep-03 4:24
Harco17-Sep-03 4:24 
AnswerRe: SetWindowLong using a class member function? Pin
David Crow17-Sep-03 2:43
David Crow17-Sep-03 2:43 
Generalcontrol mouse Pin
Ta_Tee47317-Sep-03 0:22
Ta_Tee47317-Sep-03 0:22 
QuestionMFC is a STA assisted code? Pin
vgrigor16-Sep-03 23:31
vgrigor16-Sep-03 23:31 
AnswerRe: MFC is a STA assisted code? Pin
Jagadeesh VN17-Sep-03 0:57
Jagadeesh VN17-Sep-03 0:57 
AnswerRe: MFC is a STA assisted code? Pin
Jagadeesh VN17-Sep-03 1:11
Jagadeesh VN17-Sep-03 1:11 
To join the MTA of a process, a given thread must call CoInitializeEx(0, COINIT_MULTITHREADED). Any objects created within this thread must be thread-safe.

I would suggest to use the MTA model. If you implement it properly, then COM will come in and take care of synchronization for us.

After working with "Apartment", "Both", and "Free", I would take MTA anytime over STA model.


"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
GeneralRe: MFC is a STA assisted code? Pin
vgrigor17-Sep-03 1:25
vgrigor17-Sep-03 1:25 
GeneralRe: MFC is a STA assisted code? Pin
Jagadeesh VN17-Sep-03 1:33
Jagadeesh VN17-Sep-03 1:33 
GeneralRe: MFC is a STA assisted code? Pin
vgrigor17-Sep-03 1:49
vgrigor17-Sep-03 1:49 
GeneralRe: MFC is a STA assisted code? Pin
Jagadeesh VN17-Sep-03 1:50
Jagadeesh VN17-Sep-03 1:50 
GeneralRe: MFC is a STA assisted code? Pin
Jagadeesh VN17-Sep-03 1:56
Jagadeesh VN17-Sep-03 1:56 
GeneralRe: MFC is a STA assisted code? Pin
vgrigor17-Sep-03 1:59
vgrigor17-Sep-03 1:59 
GeneralRe: MFC is a STA assisted code? Pin
Jagadeesh VN17-Sep-03 2:08
Jagadeesh VN17-Sep-03 2:08 
GeneralRe: MFC is a STA assisted code? Pin
vgrigor17-Sep-03 2:17
vgrigor17-Sep-03 2:17 
GeneralRe: MFC is a STA assisted code? Pin
Jagadeesh VN17-Sep-03 2:31
Jagadeesh VN17-Sep-03 2:31 
GeneralRe: MFC is a STA assisted code? Pin
Anonymous18-Sep-03 3:30
Anonymous18-Sep-03 3:30 
GeneralRe: MFC is a STA assisted code? Pin
vgrigor18-Sep-03 3:37
vgrigor18-Sep-03 3:37 
GeneralWindows Authorization Pin
Bernhard16-Sep-03 23:24
Bernhard16-Sep-03 23:24 
GeneralRe: Windows Authorization Pin
Steve S17-Sep-03 6:01
Steve S17-Sep-03 6:01 
GeneralRe: Windows Authorization Pin
Bernhard17-Sep-03 19:20
Bernhard17-Sep-03 19:20 
GeneralRe: Windows Authorization Pin
Steve S18-Sep-03 2:11
Steve S18-Sep-03 2:11 
GeneralRe: Windows Authorization Pin
Bernhard18-Sep-03 2:14
Bernhard18-Sep-03 2:14 
GeneralDynamically set PATH variable in application Pin
Wim Jans16-Sep-03 23:15
Wim Jans16-Sep-03 23:15 

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.