Click here to Skip to main content
15,887,596 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionReflection and MessageBox Pin
W Balboos, GHB31-Mar-09 3:19
W Balboos, GHB31-Mar-09 3:19 
AnswerRe: Reflection and MessageBox [modified] Pin
Luc Pattyn31-Mar-09 5:15
sitebuilderLuc Pattyn31-Mar-09 5:15 
GeneralRe: Reflection and MessageBox Pin
W Balboos, GHB31-Mar-09 6:43
W Balboos, GHB31-Mar-09 6:43 
QuestionResolving C++ dll's inside CLI Pin
BicycleTheif31-Mar-09 2:38
BicycleTheif31-Mar-09 2:38 
AnswerRe: Resolving C++ dll's inside CLI Pin
Mark Salsbery31-Mar-09 6:27
Mark Salsbery31-Mar-09 6:27 
QuestionPop-up Blocker for cable boxes Pin
Quecumber25629-Mar-09 13:40
Quecumber25629-Mar-09 13:40 
QuestionWhy does False = True !?!?!?!? [modified] Pin
Xpnctoc28-Mar-09 12:08
Xpnctoc28-Mar-09 12:08 
AnswerIt's a VS 2008 Watch window bug! Pin
Xpnctoc29-Mar-09 10:08
Xpnctoc29-Mar-09 10:08 
I found the problem...

First, the dialog where the user can set the value of bCamFollowsTrain had backwards logic. When the "yes" radio button was selected, bCamFollowsTrain got assigned a value of FALSE, and vice versa. That's my bad. Once I fixed that, my code functioned as expected.

So then the question became "Why is the Watch window showing me the wrong value?" I inserted a line to explicitly update the value of bCamFollowsTrain just before the IF statement. In step tracing, I noticed then that the value in the Watch window shows correctly, regardless of whether I assign true or false.

The user updates this value via a modeless dialog box. Since the dialog is modeless, the update is performed by delegate callback in the RadioButton_SelectedIndexChanged event. When I removed the explicit assignment code and went back to using this dialog, the Watch window began showing the wrong value again. In fact, I was able to duplicate the situation in reverse, making the debugger show bCamFollowsTrain == TRUE when I had set it to FALSE (and when step-tracing took the FALSE path).

Therefore, my conclusion is that it seems the Watch window has some issues with picking up on variables changed via delegate callbacks. As of right now, my code is working completely as expected while my debugger is still showing incorrect values.

*sigh*
QuestionPassing pointer to C++ function from VC++ Pin
Kurt Richardson27-Mar-09 8:36
Kurt Richardson27-Mar-09 8:36 
AnswerRe: Passing pointer to C++ function from VC++ Pin
Mark Salsbery27-Mar-09 10:38
Mark Salsbery27-Mar-09 10:38 
GeneralRe: Passing pointer to C++ function from VC++ Pin
Kurt Richardson30-Mar-09 7:22
Kurt Richardson30-Mar-09 7:22 
QuestionWrapper for CDialog class in C++/CLI dll Pin
Oldboy227-Mar-09 6:05
Oldboy227-Mar-09 6:05 
AnswerRe: Wrapper for CDialog class in C++/CLI dll Pin
Mark Salsbery27-Mar-09 6:42
Mark Salsbery27-Mar-09 6:42 
GeneralRe: Wrapper for CDialog class in C++/CLI dll Pin
led mike27-Mar-09 8:50
led mike27-Mar-09 8:50 
GeneralRe: Wrapper for CDialog class in C++/CLI dll Pin
Mark Salsbery27-Mar-09 8:55
Mark Salsbery27-Mar-09 8:55 
GeneralRe: Wrapper for CDialog class in C++/CLI dll Pin
Oldboy231-Mar-09 14:59
Oldboy231-Mar-09 14:59 
Questionshort cut key to a button ... Pin
m_mun25-Mar-09 23:09
m_mun25-Mar-09 23:09 
AnswerRe: short cut key to a button ... Pin
N a v a n e e t h25-Mar-09 23:32
N a v a n e e t h25-Mar-09 23:32 
Questionhelp with C++ Pin
mimikoyan25-Mar-09 18:15
mimikoyan25-Mar-09 18:15 
AnswerStop reposting your question you fraking monkey Pin
led mike26-Mar-09 4:42
led mike26-Mar-09 4:42 
QuestionCorrect handling of binary data defined in .h from a .Net perspective Pin
atzplzw25-Mar-09 9:02
atzplzw25-Mar-09 9:02 
AnswerRe: Correct handling of binary data defined in .h from a .Net perspective Pin
led mike25-Mar-09 9:47
led mike25-Mar-09 9:47 
Questionlistbox not visible in thread Pin
Thilek25-Mar-09 6:53
Thilek25-Mar-09 6:53 
AnswerRe: listbox not visible in thread Pin
Thilek25-Mar-09 9:09
Thilek25-Mar-09 9:09 
Questionhelp with C++ pragraming Pin
mimikoyan25-Mar-09 0:56
mimikoyan25-Mar-09 0:56 

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.