| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| C++ (Non Visual C++ Issues) Ask or answer C and C++ questions not related to Visual C++. This includes Console programming, Linux programming, or general ANSI C++. |
![]() |
|
|
Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
how to get function call stack
Hello everyone,
I am using C/C++ on Windows. I am wondering how to get the function call stack from my application. For example, if function foo call function goo, then function goo call function zoo, in function goo, I want to output the function call stack (foo --> goo --> zoo), and in goo, output the function call stack (foo --> goo). Are there any samples of how to implement that? Does Windows runtime support this feature? thanks in advance, George |
|
#2
|
|||
|
|||
|
Re: how to get function call stack
Hi!
Are you looking for something like this; http://www.codeproject.com/useritems/cmtrace.asp Thanks Laitinen |
|
#3
|
|||
|
|||
|
Re: how to get function call stack
Hi Laitinen,
Quote:
What I want to have is something like printStackTrace in Java, which is provided by system SDK or system internal accessible interface to produce the function call stack information. regards, George |
|
#4
|
|||
|
|||
|
Re: how to get function call stack
Sorry George!
I dont have any good suggestions for you! Laitinen |
|
#5
|
||||
|
||||
|
Re: how to get function call stack
This should be helpful - http://www.eptacom.net/pubblicazioni...ng/except.html
__________________
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold My Blogs : Learning C++ is fun | Abnegator's reflectionsOpen Threads : C++ Aha! Moments | Nature of work in C++? |
|
#6
|
|||
|
|||
|
Re: how to get function call stack
Hi exterminator,
Quote:
If the URL is correct, it may be school proxy settings blocks the access to the URL. So, could you upload the tutorial you recommended as an attachment please? :-) regards, George |
|
#7
|
||||
|
||||
|
Re: how to get function call stack
Don't take that for granted. Always, verify what you get unless I say "take my word for it" which I rarely say!
![]() Here's an alternate link to it from DDJ - http://www.ddj.com/dept/cpp/184403512
__________________
Can you help me with my homework assignment?, Before you post!, Use code tags, How to post!, Codeguru technical FAQs, C++ FAQ Lite, Stroustrup: C++ Style and Technique FAQ, Guru of the Week, Comeau C and C++ FAQs, Comeau C++ Templates FAQs, CUJ @ DDJ, Spam threshold My Blogs : Learning C++ is fun | Abnegator's reflectionsOpen Threads : C++ Aha! Moments | Nature of work in C++? |
|
#8
|
|||
|
|||
|
Re: how to get function call stack
Thank you exterminator!
Quote:
regards, George |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|