Re: Something like Debug.WriteLine()?
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
"Sin Jeong-hun" <typingcat@xxxxxxxxx> wrote in message
news:1189255463.519666.206000@xxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm practicing DirectX 9 programming with Visual C++. To test the
code, I need to print some additional information during the execution
of my DirectX application. I tried to use printf() and cout, but
nothing came out on the 'Output' window. In .NET, I could use
System.Diagnostics.Debug.WriteLine(), but what about native Win32?
OutputDebugString
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
Relevant Pages
- Re: Linking problem under linux
... copying word for word what my book tells me. ... It works without printing out an error but during execution of the ... you call printf in 64-bit code. ... I suspect the same for exit. ... (comp.lang.asm.x86) - Re: object address
... int* foo { ... During the execution of this function, &x is the address of a slot in ... the stack frame is no ... E.g. printf works something ... (comp.lang.lisp) - Re: More on debuggers
... Well, if you insert the printf() randomly, no help at all. ... A useful debugging printf() tells you, at a minimum, that the execution path through the code actually reached the printfstatement. ... I can use gdb to debug gcc programs on all of our our systems, but I try to avoid doing so, if I can, for the reasons given below. ... I'll check the value of a variable before and after execution of a statement that was supposed to change that value, and find it unchanged, because the actual storage of that value to memory has been deferred to some other location in the program. ... (comp.lang.c) - Differences in piping an executable and "exec ... >@xxx 2>@xxx"
... supplier and this executable delievers text at stdout via "printf". ... So we built an own little executable (evaluating a tcl script using ... At the end of the execution we missed all the printf results. ... (comp.lang.tcl) - Re: Newbie: The C / C++ Issue
... printf however, is ... enviroment have to be specially written for the kernel anyway. ... most pople could go their entire life without cout. ... and strings, but if you want your strings formatted, cout isn't much fun. ... (freebsd-questions) |
|