Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is there any reason why we would want to use memcpy() instead of memmove()? Pin
Ryan Binns11-Apr-05 17:57
Ryan Binns11-Apr-05 17:57 
Generalsave/load variables in a dialog Pin
Green Fuze11-Apr-05 15:33
Green Fuze11-Apr-05 15:33 
GeneralRe: save/load variables in a dialog Pin
Nick Z.11-Apr-05 18:31
Nick Z.11-Apr-05 18:31 
GeneralRe: save/load variables in a dialog Pin
Green Fuze12-Apr-05 0:35
Green Fuze12-Apr-05 0:35 
GeneralRe: save/load variables in a dialog Pin
ThatsAlok11-Apr-05 20:35
ThatsAlok11-Apr-05 20:35 
GeneralRe: save/load variables in a dialog Pin
Green Fuze12-Apr-05 2:55
Green Fuze12-Apr-05 2:55 
GeneralThread synchronization. Pin
Nick Z.11-Apr-05 13:50
Nick Z.11-Apr-05 13:50 
GeneralRe: Thread synchronization. Pin
Ryan Binns11-Apr-05 17:59
Ryan Binns11-Apr-05 17:59 
Your situation is a simple one, and the simple solution you propose should be fine. Just make sure that only ever one thread writes to the variable. As soon as multiple threads write to the variable, you'll have to add synchronisation (mutex, critical section etc...) to make sure that multiple writes don't happen concurrently.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Thread synchronization. Pin
Nick Z.11-Apr-05 18:09
Nick Z.11-Apr-05 18:09 
GeneralRe: Thread synchronization. Pin
markkuk12-Apr-05 0:23
markkuk12-Apr-05 0:23 
GeneralRe: Thread synchronization. Pin
Jack Puppy11-Apr-05 18:00
Jack Puppy11-Apr-05 18:00 
GeneralRe: Thread synchronization. Pin
Nick Z.11-Apr-05 18:12
Nick Z.11-Apr-05 18:12 
GeneralUNICODE COMPILATION ReplaceSel usage for char array. Pin
kristna11-Apr-05 11:19
kristna11-Apr-05 11:19 
GeneralRe: UNICODE COMPILATION ReplaceSel usage for char array. Pin
Graham Bradshaw11-Apr-05 12:05
Graham Bradshaw11-Apr-05 12:05 
GeneralRe: UNICODE COMPILATION ReplaceSel usage for char array. Pin
kristna11-Apr-05 22:55
kristna11-Apr-05 22:55 
GeneralMFC Worker Thread Problem Pin
CNewbie11-Apr-05 11:00
CNewbie11-Apr-05 11:00 
GeneralRe: MFC Worker Thread Problem Pin
Orkun GEDiK11-Apr-05 11:50
Orkun GEDiK11-Apr-05 11:50 
GeneralRe: MFC Worker Thread Problem Pin
CNewbie11-Apr-05 11:56
CNewbie11-Apr-05 11:56 
GeneralRe: MFC Worker Thread Problem Pin
Blake Miller11-Apr-05 12:33
Blake Miller11-Apr-05 12:33 
GeneralRe: MFC Worker Thread Problem Pin
toxcct11-Apr-05 20:55
toxcct11-Apr-05 20:55 
GeneralRe: MFC Worker Thread Problem Pin
CNewbie11-Apr-05 20:58
CNewbie11-Apr-05 20:58 
GeneralRe: MFC Worker Thread Problem Pin
Iain Clarke, Warrior Programmer11-Apr-05 12:37
Iain Clarke, Warrior Programmer11-Apr-05 12:37 
GeneralImage resize in GDI+ Pin
smicikli11-Apr-05 10:18
smicikli11-Apr-05 10:18 
GeneralATL configuration Pin
act_x11-Apr-05 9:47
act_x11-Apr-05 9:47 
GeneralComing out of StandBy application crashes Pin
casid11-Apr-05 9:32
casid11-Apr-05 9:32 

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.