Click here to Skip to main content
15,915,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: InternetGetConnectedState() failed on WINME Pin
tgprakash3-Oct-04 21:04
tgprakash3-Oct-04 21:04 
GeneralRe: InternetGetConnectedState() failed on WINME Pin
2249173-Oct-04 22:42
2249173-Oct-04 22:42 
GeneralRe: InternetGetConnectedState() failed on WINME Pin
David Crow4-Oct-04 4:14
David Crow4-Oct-04 4:14 
GeneralSending data with ::SendMessage(...) function Pin
Muhammad Azam3-Oct-04 18:49
Muhammad Azam3-Oct-04 18:49 
GeneralRe: Sending data with ::SendMessage(...) function Pin
ThatsAlok3-Oct-04 19:18
ThatsAlok3-Oct-04 19:18 
GeneralRe: Sending data with ::SendMessage(...) function Pin
Steen Krogsgaard4-Oct-04 3:52
Steen Krogsgaard4-Oct-04 3:52 
GeneralRe: Sending data with ::SendMessage(...) function Pin
Ed K4-Oct-04 16:07
Ed K4-Oct-04 16:07 
GeneralRe: Sending data with ::SendMessage(...) function Pin
Steen Krogsgaard4-Oct-04 20:50
Steen Krogsgaard4-Oct-04 20:50 
Hi,

Frankly, I'm not sure that there is any problems with sending the strings between threads in the same process, but I vaguely remember something about CString and threads, you'll have to look it up un MSDN.

Inter-thread communication is always faced with the challenge that the two (or more) threads can access the data simultaneously, so you'll need to protect the integrity of the data by using one of the synchronization tokens. Or, if the data you send are going to be read only in the receiving thread it's best to pass a copy instead of a reference (when you pass the address of the CString objects in WPARAM and LPARAM they are of course passed by reference).

Of course, if the receiving thread is in another process the problems gets worse, as the two threads now don't even share a memory space.

Cheers
Steen.

"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: Sending data with ::SendMessage(...) function Pin
Muhammad Azam4-Oct-04 20:33
Muhammad Azam4-Oct-04 20:33 
GeneralRe: Sending data with ::SendMessage(...) function Pin
Steen Krogsgaard4-Oct-04 21:25
Steen Krogsgaard4-Oct-04 21:25 
GeneralRe: Sending data with ::SendMessage(...) function Pin
Muhammad Azam4-Oct-04 23:26
Muhammad Azam4-Oct-04 23:26 
GeneralActive X Problem Pin
BAIJUMAX3-Oct-04 17:31
professionalBAIJUMAX3-Oct-04 17:31 
Generalcontext and winhelp menus not staying in foreground Pin
raultkd3-Oct-04 16:45
raultkd3-Oct-04 16:45 
QuestionI'm floating integer to hex? Pin
BOBOBOBOBS3-Oct-04 15:53
BOBOBOBOBS3-Oct-04 15:53 
AnswerRe: I'm floating integer to hex? Pin
ThatsAlok3-Oct-04 19:09
ThatsAlok3-Oct-04 19:09 
AnswerRe: I'm floating integer to hex? Pin
mirex4-Oct-04 2:40
mirex4-Oct-04 2:40 
GeneralHelp Pin
Anonymous3-Oct-04 14:22
Anonymous3-Oct-04 14:22 
GeneralRe: Help Pin
ThatsAlok3-Oct-04 20:36
ThatsAlok3-Oct-04 20:36 
GeneralExtract HBITMAP from IMAGELIST icon Pin
peterchen3-Oct-04 14:15
peterchen3-Oct-04 14:15 
GeneralRe: Extract HBITMAP from IMAGELIST icon Pin
PJ Arends3-Oct-04 16:24
professionalPJ Arends3-Oct-04 16:24 
GeneralMFC Progress Bar Pin
Anonymous3-Oct-04 11:59
Anonymous3-Oct-04 11:59 
GeneralRe: MFC Progress Bar Pin
ThatsAlok3-Oct-04 19:25
ThatsAlok3-Oct-04 19:25 
GeneralRe: MFC Progress Bar Pin
pubududilena4-Oct-04 0:06
pubududilena4-Oct-04 0:06 
QuestionWinVerifyTrust on legacy Win9x? Pin
Jason De Arte3-Oct-04 10:36
Jason De Arte3-Oct-04 10:36 
AnswerRe: WinVerifyTrust on legacy Win9x? Pin
Jason De Arte3-Oct-04 17:01
Jason De Arte3-Oct-04 17:01 

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.