Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: My CreateFile is not working Pin
amitmistry_petlad 17-Jan-07 20:15
amitmistry_petlad 17-Jan-07 20:15 
GeneralRe: My CreateFile is not working Pin
Rajesh R Subramanian17-Jan-07 20:37
professionalRajesh R Subramanian17-Jan-07 20:37 
GeneralRe: My CreateFile is not working Pin
Hamid_RT18-Jan-07 0:38
Hamid_RT18-Jan-07 0:38 
QuestionCString amd multithreading Pin
softwaremonkey17-Jan-07 19:39
softwaremonkey17-Jan-07 19:39 
AnswerRe: CString amd multithreading Pin
Nibu babu thomas17-Jan-07 20:14
Nibu babu thomas17-Jan-07 20:14 
GeneralRe: CString amd multithreading Pin
softwaremonkey17-Jan-07 20:53
softwaremonkey17-Jan-07 20:53 
AnswerRe: CString amd multithreading Pin
David Crow18-Jan-07 3:29
David Crow18-Jan-07 3:29 
AnswerRe: CString amd multithreading Pin
Mark Salsbery18-Jan-07 7:07
Mark Salsbery18-Jan-07 7:07 
The same rules apply to any object shared between threads.

Reading a CString is probably safe, and probably always will be, BUT...

CString is a class, and its implementation is hidden from you. You have no way of knowing
if the underlying implementation moves the string around in memory so theoretically even read
access should be synchronized between threads.

Again, if you look at the CStringT class it's safe. The underlying implementation could change
at any time though. Probably won't, but...just something to think about before assuming all
read operations are safe on objects. Smile | :)

Mark

QuestionSplash Screen Pin
Sangeetha_J17-Jan-07 19:26
Sangeetha_J17-Jan-07 19:26 
AnswerRe: Splash Screen Pin
Hamid_RT17-Jan-07 19:33
Hamid_RT17-Jan-07 19:33 
GeneralRe: Splash Screen Pin
Sangeetha_J17-Jan-07 20:03
Sangeetha_J17-Jan-07 20:03 
GeneralRe: Splash Screen Pin
Rajesh R Subramanian17-Jan-07 20:40
professionalRajesh R Subramanian17-Jan-07 20:40 
GeneralRe: Splash Screen Pin
Sangeetha_J17-Jan-07 21:32
Sangeetha_J17-Jan-07 21:32 
GeneralRe: Splash Screen Pin
Rajesh R Subramanian17-Jan-07 22:47
professionalRajesh R Subramanian17-Jan-07 22:47 
GeneralRe: Splash Screen Pin
Sangeetha_J17-Jan-07 23:03
Sangeetha_J17-Jan-07 23:03 
GeneralRe: Splash Screen Pin
Rajesh R Subramanian17-Jan-07 23:26
professionalRajesh R Subramanian17-Jan-07 23:26 
GeneralRe: Splash Screen Pin
Sangeetha_J17-Jan-07 23:46
Sangeetha_J17-Jan-07 23:46 
GeneralRe: Splash Screen Pin
Rajesh R Subramanian18-Jan-07 0:03
professionalRajesh R Subramanian18-Jan-07 0:03 
GeneralRe: Splash Screen Pin
Sangeetha_J18-Jan-07 0:08
Sangeetha_J18-Jan-07 0:08 
GeneralRe: Splash Screen Pin
Hamid_RT18-Jan-07 1:03
Hamid_RT18-Jan-07 1:03 
GeneralRe: Splash Screen Pin
Sangeetha_J18-Jan-07 1:24
Sangeetha_J18-Jan-07 1:24 
GeneralRe: Splash Screen Pin
Hamid_RT18-Jan-07 1:44
Hamid_RT18-Jan-07 1:44 
GeneralRe: Splash Screen Pin
Sangeetha_J18-Jan-07 1:48
Sangeetha_J18-Jan-07 1:48 
GeneralRe: Splash Screen Pin
Hamid_RT18-Jan-07 2:03
Hamid_RT18-Jan-07 2:03 
GeneralRe: Splash Screen Pin
Sangeetha_J18-Jan-07 2:10
Sangeetha_J18-Jan-07 2:10 

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.