Click here to Skip to main content
15,913,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do we read information from a DSN? Pin
Ritu Kwatra1-Aug-05 1:06
Ritu Kwatra1-Aug-05 1:06 
GeneralTabCtrl Pin
Halawlaws31-Jul-05 21:33
Halawlaws31-Jul-05 21:33 
GeneralRe: TabCtrl Pin
Anonymous31-Jul-05 23:52
Anonymous31-Jul-05 23:52 
Generalhook clipboard! Pin
macro91331-Jul-05 21:28
macro91331-Jul-05 21:28 
QuestionThread doesnt want to set event? Pin
Member 341989131-Jul-05 21:15
Member 341989131-Jul-05 21:15 
AnswerRe: Thread doesnt want to set event? Pin
S. Senthil Kumar31-Jul-05 23:17
S. Senthil Kumar31-Jul-05 23:17 
GeneralRe: Thread doesnt want to set event? Pin
Member 34198911-Aug-05 0:12
Member 34198911-Aug-05 0:12 
GeneralRe: Thread doesnt want to set event? Pin
S. Senthil Kumar1-Aug-05 0:45
S. Senthil Kumar1-Aug-05 0:45 
You need to declare quit as volatile, which guarantees that the compiler won't do any optimization, which is what is happening in your case. The compiler probably decided that quit was not being modified in the while loop and decided to ignore the check altogether.

Declaring it as volatile prevents the compiler from doing that optimization, my guess is that would solve your problem.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Thread doesnt want to set event? Pin
Member 34198911-Aug-05 1:49
Member 34198911-Aug-05 1:49 
GeneralRe: Thread doesnt want to set event? Pin
Member 34198911-Aug-05 20:33
Member 34198911-Aug-05 20:33 
Questionhow do i call class dll in vb which is created in vc++ Pin
rajesh_kapure31-Jul-05 21:10
rajesh_kapure31-Jul-05 21:10 
AnswerRe: how do i call class dll in vb which is created in vc++ Pin
Aamir Butt31-Jul-05 21:50
Aamir Butt31-Jul-05 21:50 
GeneralRe: how do i call class dll in vb which is created in vc++ Pin
rajesh_kapure31-Jul-05 23:08
rajesh_kapure31-Jul-05 23:08 
GeneralRe: how do i call class dll in vb which is created in vc++ Pin
Eytukan1-Aug-05 5:28
Eytukan1-Aug-05 5:28 
GeneralRe: how do i call class dll in vb which is created in vc++ Pin
rajesh_kapure1-Aug-05 17:44
rajesh_kapure1-Aug-05 17:44 
GeneralwParam from WM_KEYDOWN to wParam WM_CHAR Pin
Member 214363831-Jul-05 20:59
Member 214363831-Jul-05 20:59 
GeneralUTF8 to UTF16 Conversion Pin
Cool Ju31-Jul-05 20:37
Cool Ju31-Jul-05 20:37 
GeneralRe: UTF8 to UTF16 Conversion Pin
Jack Puppy1-Aug-05 0:21
Jack Puppy1-Aug-05 0:21 
GeneralCalling Webservice through VC++ Pin
Ganesh_T31-Jul-05 20:34
Ganesh_T31-Jul-05 20:34 
GeneralRe: Calling Webservice through VC++ Pin
sunit51-Aug-05 3:06
sunit51-Aug-05 3:06 
GeneralRe: Calling Webservice through VC++ Pin
Ravi Bhavnani1-Aug-05 7:41
professionalRavi Bhavnani1-Aug-05 7:41 
GeneralWindows Message Hook Crashes Pin
nick1131-Jul-05 19:02
nick1131-Jul-05 19:02 
GeneralRe: Windows Message Hook Crashes Pin
Alexander M.,1-Aug-05 1:08
Alexander M.,1-Aug-05 1:08 
GeneralRe: Windows Message Hook Crashes Pin
nick111-Aug-05 17:49
nick111-Aug-05 17:49 
GeneralBuild MFC Pin
LiYS31-Jul-05 17:03
LiYS31-Jul-05 17:03 

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.