title: Get stack trace to string in MS VS C++
body: <p>I need to dump a lot of stack traces (for some debug issue, does'nt matter) in some places in my program. So i want to write some function like DumpCurrentStackTrace("dump.txt"); that dumps current stack trace to file "dump.txt". I need to do this in Microsoft Visual Studio, in C++ project. How can i implement this function (maybe some winapi functions)?</p>