What code I should use to access current threadID and print it in TRACE statement when running a app in debugger mode?
I tried 'TRACE("+ + somewhere in a function=<%d> + +\n", @TIB + 0x24 );' and it did not work, though '@TIB + 0x24' worked in watch window.
Thanks.
Xiaoming
I tried 'TRACE("+ + somewhere in a function=<%d> + +\n", @TIB + 0x24 );' and it did not work, though '@TIB + 0x24' worked in watch window.
Thanks.
Xiaoming