Dumping Derived CStatic Object
-
I have pointer to myderived CStatic object call mylabel Since Everything is derived from CObject I thought I could code the following dc << "Dumping my object << mylabel; dc is a type CDumpContext and I have afxTracEnabled = TRUE and yet I don't see the contents of mylabel in the output window
-
I have pointer to myderived CStatic object call mylabel Since Everything is derived from CObject I thought I could code the following dc << "Dumping my object << mylabel; dc is a type CDumpContext and I have afxTracEnabled = TRUE and yet I don't see the contents of mylabel in the output window
Can other objects be dumped? What is the value of
_DEBUG
? Does the following do anything different:mylabel->Dump(afxDump);
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Can other objects be dumped? What is the value of
_DEBUG
? Does the following do anything different:mylabel->Dump(afxDump);
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
I get text for example m_hWnd = f:\vstools the directory in VS which has some of the MFC source code like wincore.cpp Is there any tool which would dump all the contents of an object for example m_hWnd = 0X0000456; I am sure you or the other developer must of done this would have you maybe have an example you can point me to thanks
-
I get text for example m_hWnd = f:\vstools the directory in VS which has some of the MFC source code like wincore.cpp Is there any tool which would dump all the contents of an object for example m_hWnd = 0X0000456; I am sure you or the other developer must of done this would have you maybe have an example you can point me to thanks
As you know I only play with MFC limited but the windows api GetWindowText will return the text from a static window to a buffer. It will be in unicode or ansi depending on app and you deal with it as required.
In vino veritas