Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Current Procedure

Status
Not open for further replies.

jduckwo

Programmer
May 1, 2001
11
US
Is there any way (object, api, etc.) to determine the name of the current procedure at runtime?
 
No, and I wish there was. Same thing applies to knowing the current module name.

I'd like to know this so I can log errors with it.

Maybe it'll be in .NET -- I need to go check.

Chip H.
 
I hope so too, I just thought that there might be an undocumented function or dll that someone has found that I could use.

Jake
 
I have a vague recollection of getting something working along these lines in some code about a year ago. I need to try and dig out the code - and it is possible that it may not be quite what you want.
 
I hope you can find it, it would be greatly appreciated.

I can do it manually by creating my own call stack object, but when you have 20 activeX dll's and over 100 forms in your project, alot of re-coding would be needed to implement that kind of feature, and I don't have that much time.

Thanks in advance,
Jake
 
I think you may be out of luck then, I'm afraid. My technique involved writing a custom error handling class which, like your custom stack object, would be time-consuming to retrofit.

Sorry.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top