Accessing the call stack in code?

Started by
2 comments, last by S1CA 19 years, 7 months ago
I know you can look at the call stack in the debugger, but can your program have access to it to say, print it to a file at any given point? This is with Visual C++ 6.0
Advertisement
Look up StackWalk64 in MSDN.
--God has paid us the intolerable compliment of loving us, in the deepest, most tragic, most inexorable sense.- C.S. Lewis
Exactly what I was looking for. Thanks so much.
Something I did a while back for test/experimentation purposes might be of interest to you:

http://www.sc3d.com/thought/snippets/debugging/GetFunctionCaller

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

This topic is closed to new replies.

Advertisement