Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCodeJocks ToolkitPro in VS 2010? Pin
Stefan_Lang7-Oct-10 5:42
Stefan_Lang7-Oct-10 5:42 
AnswerRe: CodeJocks ToolkitPro in VS 2010? Pin
Rhuros7-Oct-10 23:29
professionalRhuros7-Oct-10 23:29 
GeneralRe: CodeJocks ToolkitPro in VS 2010? Pin
Stefan_Lang8-Oct-10 2:58
Stefan_Lang8-Oct-10 2:58 
GeneralRe: CodeJocks ToolkitPro in VS 2010? Pin
Rhuros8-Oct-10 3:27
professionalRhuros8-Oct-10 3:27 
GeneralRe: CodeJocks ToolkitPro in VS 2010? Pin
Stefan_Lang8-Oct-10 3:41
Stefan_Lang8-Oct-10 3:41 
AnswerRe: CodeJocks ToolkitPro in VS 2010? Pin
Rhuros8-Oct-10 4:47
professionalRhuros8-Oct-10 4:47 
GeneralRe: CodeJocks ToolkitPro in VS 2010? Pin
Stefan_Lang8-Oct-10 6:25
Stefan_Lang8-Oct-10 6:25 
QuestionVC++ debugger, mouse-over variable inspection question Pin
Dave Calkins7-Oct-10 3:18
Dave Calkins7-Oct-10 3:18 
When stopped in the debugger (Visual C++ 2005, native Win32/MFC code), you can mouse over variables and the debugger shows a nice tooltip. For some classes it also shows the member variables and values in that tooltip. For our MFC CObject-derived classes, all we get is the class name; it refuses to show the variables. We can use the + button to expand it and see the variables, but it would be nice to get them right in the tooltip.

Any idea what controls this?

===

For example:

class BaseClass
{
protected:
   double i;
   double j;
   double k;
public:
   BaseClass() { i = j = k = 0.57722; }
   virtual ~BaseClass() {}
};

class MyClass : public BaseClass
{
protected:
   double x;
   double y;
   double z;
public:
   MyClass() { x = y = z = 3.14159; }
   virtual ~MyClass() {}
};

void SomeFunction()
{
   MyClass someVar;

   int x = 0; // set breakpoint here and stop in the debugger and mouse-over someVar
}


For the above example, when you're stopped in the debugger and you mouse-over someVar, you can see the below in the tool-tip.

someVar = {x=3.1415899999999999 y=3.1415899999999999 z=3.1415899999999999 }


Now, if you modify the code slightly by deriving from CObject, it seems to break this. If you change it to the below:

class MyClass : public CObject
{
protected:
   double x;
   double y;
   double z;
public:
   MyClass() { x = y = z = 3.14159; }
   virtual ~MyClass() {}
};

void SomeFunction()
{
   MyClass someVar;

   int x = 0; // set breakpoint here and stop in the debugger and mouse-over someVar
}


Now when you stop in the debugger and mouse-over someVar, you instead see the below.

someVar = {MyClass}


So for some reason, when deriving from CObject, we've now lost the mouse-over tooltip info!

Does anyone know what's going on? How can we get that back?
AnswerRe: VC++ debugger, mouse-over variable inspection question Pin
Dave Calkins7-Oct-10 5:31
Dave Calkins7-Oct-10 5:31 
GeneralRe: VC++ debugger, mouse-over variable inspection question Pin
Dave Calkins7-Oct-10 6:10
Dave Calkins7-Oct-10 6:10 
GeneralRe: VC++ debugger, mouse-over variable inspection question Pin
Code-o-mat7-Oct-10 22:25
Code-o-mat7-Oct-10 22:25 
QuestionINVALID_HANDLE_VALUE Pin
3bood.ghzawi7-Oct-10 2:18
3bood.ghzawi7-Oct-10 2:18 
AnswerRe: INVALID_HANDLE_VALUE Pin
Sauro Viti7-Oct-10 2:29
professionalSauro Viti7-Oct-10 2:29 
AnswerRe: INVALID_HANDLE_VALUE Pin
CPallini7-Oct-10 2:31
mveCPallini7-Oct-10 2:31 
AnswerRe: INVALID_HANDLE_VALUE Pin
bleedingfingers7-Oct-10 2:33
bleedingfingers7-Oct-10 2:33 
AnswerRe: INVALID_HANDLE_VALUE Pin
Luc Pattyn7-Oct-10 2:59
sitebuilderLuc Pattyn7-Oct-10 2:59 
Questionscrollbar doesnt work Pin
aangerma7-Oct-10 0:59
aangerma7-Oct-10 0:59 
AnswerRe: scrollbar doesnt work Pin
Dave Calkins7-Oct-10 2:54
Dave Calkins7-Oct-10 2:54 
QuestionRestrict Writing to USB Pin
Subrat Patnaik7-Oct-10 0:49
Subrat Patnaik7-Oct-10 0:49 
AnswerRe: Restrict Writing to USB Pin
«_Superman_»7-Oct-10 0:53
professional«_Superman_»7-Oct-10 0:53 
QuestionPlease help me for debug information. Pin
Le@rner7-Oct-10 0:39
Le@rner7-Oct-10 0:39 
AnswerRe: Please help me for debug information. Pin
Richard MacCutchan7-Oct-10 1:11
mveRichard MacCutchan7-Oct-10 1:11 
AnswerRe: Please help me for debug information. Pin
Alan Balkany7-Oct-10 4:48
Alan Balkany7-Oct-10 4:48 
QuestionPassing parameter in worker thread Pin
learningvisualc7-Oct-10 0:35
learningvisualc7-Oct-10 0:35 
AnswerRe: Passing parameter in worker thread Pin
«_Superman_»7-Oct-10 0:44
professional«_Superman_»7-Oct-10 0:44 

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.