How to use TRACE() in Win32 Applications
-
Hi all: How can I get debug information through TRACE() or other similar macro in Win32 applications? I added TRACE() in the source code and also include the "AFX.h".In the project setting I choose the "use MFC in a static library"? But it cannot pass the compilation!
-
Hi all: How can I get debug information through TRACE() or other similar macro in Win32 applications? I added TRACE() in the source code and also include the "AFX.h".In the project setting I choose the "use MFC in a static library"? But it cannot pass the compilation!
The nearest equivalent would be to use AllocConsole() and write any debug strings to its handle. I have used this method in the past If you vote me down, my score will only get lower
-
Hi all: How can I get debug information through TRACE() or other similar macro in Win32 applications? I added TRACE() in the source code and also include the "AFX.h".In the project setting I choose the "use MFC in a static library"? But it cannot pass the compilation!
Hi Including gives you; _RPT0, _RPT1 .. _RPT4, _ASSERT, et al These are the primitives of TRACE and ASSERT. I always use it like so, for example; _RPT1(_CRT_WARN, "## blah = '%ls'\n", sz); HTH Martin
-
Hi all: How can I get debug information through TRACE() or other similar macro in Win32 applications? I added TRACE() in the source code and also include the "AFX.h".In the project setting I choose the "use MFC in a static library"? But it cannot pass the compilation!
Have you considered
OutputDebugString()
?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow