Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIWinHttpRequest Pin
sereneguy11-Aug-04 20:08
sereneguy11-Aug-04 20:08 
QuestionHow to access USB port from VC++ Pin
Fatboyslim11-Aug-04 20:07
Fatboyslim11-Aug-04 20:07 
GeneralXML Parsing Pin
11-Aug-04 19:19
suss11-Aug-04 19:19 
GeneralRe: XML Parsing Pin
11-Aug-04 19:49
suss11-Aug-04 19:49 
GeneralRe: XML Parsing Pin
*Dreamz11-Aug-04 20:41
*Dreamz11-Aug-04 20:41 
GeneralRe: XML Parsing Pin
paulb11-Aug-04 21:10
paulb11-Aug-04 21:10 
GeneralRe: XML Parsing Pin
Rassul Yunussov12-Aug-04 0:09
Rassul Yunussov12-Aug-04 0:09 
GeneralMultithreading - passing message to a window question Pin
Indrawati11-Aug-04 19:05
Indrawati11-Aug-04 19:05 
Hi
I have an app that use multithreading to update the display of a window. I use AfxBeginThread() to spawn the thread, passing a copy of the window's m_hWnd as its parameter. This thread will then execute SendMessage() to update the window's display. This works OK in the Debug mode. However, in the release mode, it always gives error (The app has encountered a problem and will be closed etc2) whenever I have spawned two of the said threads, and then I switched window! This error still occurs even if I make the member function processing the message to do no processing (i.e. it just returns). However, this error does not occur if I comment out the SendMessage() line in the thread's function. I have tried using PostMessage() instead of SendMessage(), but with the same result. Could someone tell me what's the possible cause for this?

Thanks!
GeneralRe: Multithreading - passing message to a window question Pin
Milton Karimbekallil11-Aug-04 20:50
Milton Karimbekallil11-Aug-04 20:50 
GeneralRe: Multithreading - passing message to a window question Pin
Ravi Bhavnani11-Aug-04 20:52
professionalRavi Bhavnani11-Aug-04 20:52 
GeneralRe: Multithreading - passing message to a window question Pin
Rory Solley11-Aug-04 21:29
Rory Solley11-Aug-04 21:29 
GeneralRe: Multithreading - passing message to a window question Pin
Anonymous11-Aug-04 21:32
Anonymous11-Aug-04 21:32 
Generalconvert CString to Unicode (hex) Pin
ba5h33r11-Aug-04 18:47
ba5h33r11-Aug-04 18:47 
GeneralRe: convert CString to Unicode (hex) Pin
Tim Smith11-Aug-04 18:57
Tim Smith11-Aug-04 18:57 
GeneralRe: convert CString to Unicode (hex) Pin
paulb11-Aug-04 20:24
paulb11-Aug-04 20:24 
GeneralWinLogon HWND Pin
GutterBoy11-Aug-04 18:00
GutterBoy11-Aug-04 18:00 
GeneralRe: WinLogon HWND Pin
Milton Karimbekallil11-Aug-04 21:14
Milton Karimbekallil11-Aug-04 21:14 
GeneralRe: WinLogon HWND Pin
GutterBoy12-Aug-04 2:15
GutterBoy12-Aug-04 2:15 
GeneralRe: WinLogon HWND Pin
GutterBoy12-Aug-04 2:17
GutterBoy12-Aug-04 2:17 
GeneralRe: WinLogon HWND Pin
Milton Karimbekallil12-Aug-04 2:49
Milton Karimbekallil12-Aug-04 2:49 
GeneralRe: WinLogon HWND Pin
gafman12-Aug-04 5:21
gafman12-Aug-04 5:21 
GeneralCopyFileEx not working Pin
kelkatu11-Aug-04 17:39
kelkatu11-Aug-04 17:39 
GeneralRe: CopyFileEx not working Pin
Ryan Binns11-Aug-04 18:31
Ryan Binns11-Aug-04 18:31 
GeneralRe: CopyFileEx not working Pin
kelkatu12-Aug-04 20:39
kelkatu12-Aug-04 20:39 
GeneralRe: CopyFileEx not working Pin
Ryan Binns12-Aug-04 22:54
Ryan Binns12-Aug-04 22:54 

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.