Click here to Skip to main content
15,917,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: MSMQ - Opening a Private Queue through windows service Pin
led mike27-Jan-09 4:44
led mike27-Jan-09 4:44 
AnswerRe: MSMQ - Opening a Private Queue through windows service Pin
Md Saleem Navalur27-Jan-09 22:51
Md Saleem Navalur27-Jan-09 22:51 
QuestionStack Trace [modified] Pin
baerten27-Jan-09 0:06
baerten27-Jan-09 0:06 
AnswerRe: Stack Trace Pin
Hamid_RT27-Jan-09 0:35
Hamid_RT27-Jan-09 0:35 
GeneralRe: Stack Trace Pin
baerten27-Jan-09 0:59
baerten27-Jan-09 0:59 
GeneralRe: Stack Trace Pin
Luc Pattyn27-Jan-09 1:53
sitebuilderLuc Pattyn27-Jan-09 1:53 
GeneralRe: Stack Trace Pin
baerten27-Jan-09 3:29
baerten27-Jan-09 3:29 
GeneralRe: Stack Trace Pin
Randor 27-Jan-09 8:16
professional Randor 27-Jan-09 8:16 
Hi baerten,

I agree with Luc. However you may be able to use a pre-defined macro[^] something like below:

VOID FunctionB(int iVal,char *caller,int line)
{
	char szBuf[MAX_PATH];
	sprintf(szBuf,"I was called by %s on line %d",caller,line);
	MessageBoxA(NULL,szBuf,0,0);
}

VOID FunctionA()
{
	FunctionB(1,__FUNCTION__,__LINE__);
}



baerten wrote:
i can't write over 100 Debug-Lines into the code


A stack trace is several times more expensive at runtime.

Best Wishes,
-David Delaune
AnswerRe: Stack Trace Pin
Stuart Dootson27-Jan-09 6:04
professionalStuart Dootson27-Jan-09 6:04 
QuestionDatabase implementation in VC++ Pin
Ravi00326-Jan-09 23:22
Ravi00326-Jan-09 23:22 
AnswerRe: Database implementation in VC++ Pin
Rahul Vaishnav26-Jan-09 23:48
Rahul Vaishnav26-Jan-09 23:48 
GeneralRe: Database implementation in VC++ Pin
Ravi00327-Jan-09 0:50
Ravi00327-Jan-09 0:50 
AnswerRe: Database implementation in VC++ Pin
Hamid_RT27-Jan-09 0:31
Hamid_RT27-Jan-09 0:31 
GeneralRe: Database implementation in VC++ Pin
Ravi00327-Jan-09 0:51
Ravi00327-Jan-09 0:51 
QuestionMemory usage Pin
Sunil P V26-Jan-09 22:46
Sunil P V26-Jan-09 22:46 
AnswerRe: Memory usage Pin
Stuart Dootson26-Jan-09 23:20
professionalStuart Dootson26-Jan-09 23:20 
AnswerRe: Memory usage Pin
Randor 27-Jan-09 11:45
professional Randor 27-Jan-09 11:45 
Questionsearching in list taking very long time Pin
VCProgrammer26-Jan-09 22:44
VCProgrammer26-Jan-09 22:44 
AnswerRe: searching in list taking very long time Pin
Stuart Dootson26-Jan-09 23:15
professionalStuart Dootson26-Jan-09 23:15 
QuestionText File Access with specific path. Pin
mac_g26-Jan-09 22:31
mac_g26-Jan-09 22:31 
AnswerRe: Text File Access with specific path. Pin
Cedric Moonen26-Jan-09 22:48
Cedric Moonen26-Jan-09 22:48 
GeneralRe: Text File Access with specific path. Pin
mac_g26-Jan-09 22:56
mac_g26-Jan-09 22:56 
GeneralRe: Text File Access with specific path. Pin
Cedric Moonen26-Jan-09 23:01
Cedric Moonen26-Jan-09 23:01 
GeneralRe: Text File Access with specific path. Pin
mac_g26-Jan-09 23:11
mac_g26-Jan-09 23:11 
GeneralRe: Text File Access with specific path. Pin
Cedric Moonen26-Jan-09 23:24
Cedric Moonen26-Jan-09 23:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.