Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProgress Bar Range Question Pin
JBAK_CP17-May-07 13:47
JBAK_CP17-May-07 13:47 
AnswerRe: Progress Bar Range Question Pin
PJ Arends17-May-07 16:45
professionalPJ Arends17-May-07 16:45 
AnswerRe: Progress Bar Range Question Pin
Sameerkumar Namdeo17-May-07 17:06
Sameerkumar Namdeo17-May-07 17:06 
Questionput a for( ) inside an if ( ) ? [modified] Pin
Immunity1817-May-07 12:36
Immunity1817-May-07 12:36 
AnswerRe: put a for( ) inside an if ( ) ? Pin
Christian Graus17-May-07 13:26
protectorChristian Graus17-May-07 13:26 
Questionweird call stack problem w/VC 6... Pin
Jesse Evans17-May-07 11:00
Jesse Evans17-May-07 11:00 
AnswerRe: weird call stack problem w/VC 6... Pin
Jonathan [Darka]18-May-07 5:08
professionalJonathan [Darka]18-May-07 5:08 
AnswerRe: weird call stack problem w/VC 6... Pin
cgreathouse18-May-07 5:39
cgreathouse18-May-07 5:39 
GeneralRe: weird call stack problem w/VC 6... Pin
Jesse Evans18-May-07 6:15
Jesse Evans18-May-07 6:15 
GeneralRe: weird call stack problem w/VC 6... Pin
Jesse Evans18-May-07 7:32
Jesse Evans18-May-07 7:32 
Questionif ( str.GetAt(i) != letter ) ? Pin
Immunity1817-May-07 10:38
Immunity1817-May-07 10:38 
AnswerRe: if ( str.GetAt(i) != letter ) ? Pin
Mark Salsbery17-May-07 11:59
Mark Salsbery17-May-07 11:59 
GeneralRe: if ( str.GetAt(i) != letter ) ? Pin
Immunity1817-May-07 12:05
Immunity1817-May-07 12:05 
QuestionSetting directory for .ncb/.suo/.aps files? Pin
dontknowitall17-May-07 9:49
dontknowitall17-May-07 9:49 
QuestionDifference between Debug and Release Pin
masnu17-May-07 9:41
masnu17-May-07 9:41 
AnswerRe: Difference between Debug and Release Pin
Nelek17-May-07 20:29
protectorNelek17-May-07 20:29 
GeneralRe: Difference between Debug and Release Pin
masnu18-May-07 5:22
masnu18-May-07 5:22 
AnswerRe: Difference between Debug and Release Pin
prasad_som17-May-07 21:04
prasad_som17-May-07 21:04 
GeneralRe: Difference between Debug and Release Pin
masnu18-May-07 6:14
masnu18-May-07 6:14 
Thanks Prasad (and Joseph). I found the answer in his article.

For those who are curious the problem came about in the declaration of tx_in_progress. It was declared as int tx_in_progress. When I wrote while (pCom->tx_in_progress) {;} and optimized for speed the compiler assumed nothing in the loop modified the variable so it never checked it again, creating an endless loop. The solution is to declare it as volatile int which tells the compiler not to make any assumptions about the variable. I'm pretty sure that is the cause of it. If anyone has something different please let me know.

Great article by Joseph. Thanks.
Questionprogram in oop in c++ Pin
KARFER17-May-07 9:27
KARFER17-May-07 9:27 
AnswerRe: program in oop in c++ Pin
Hamid_RT17-May-07 9:32
Hamid_RT17-May-07 9:32 
AnswerRe: program in oop in c++ Pin
Joan M17-May-07 10:11
professionalJoan M17-May-07 10:11 
Generalstack overflow Pin
xyecloudy17-May-07 14:51
xyecloudy17-May-07 14:51 
GeneralRe: stack overflow Pin
Hamid_RT17-May-07 19:45
Hamid_RT17-May-07 19:45 
GeneralRe: stack overflow Pin
xyecloudy18-May-07 1:18
xyecloudy18-May-07 1:18 

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.