![]() |
OutputDebugString with variable number of arguments
1 Attachment(s)
Most often a question comes in my mind that why OutputDebugString does not take variable no of arguments like the TRACE or printf function. I dont know the reason why but I have a solution to the problem.
This article is for those OutputDebugString fan's who are annoyed to use the CString and format the string with the variables like Code: CPP
Code: CPP
I have taken care of escape character \, string %s, integers %d and characters %c but you can add the floating point numbers and many more. |
Re: OutputDebugString with variable number of arguments
VER NICE,YOU ARE A VERY CLEVER PERSON,I'M ALSO THANKING U FOR REPLYING
TO MY ARTICLE 'FRIENDSHIP CALCULATOR & HANGMAN'.MY NAME IS TEJUS. I WAS VERY SAD BECAUSE NOONE DIDN'T REPLY TO ME TILL UR REPLY. I AM STUDYING IN 'VI'(6TH)'IN S.N.PUBLIC SCHOOL ,KOLLAM |
Re: OutputDebugString with variable number of arguments
I could not get you which reply you are talking about.
|
Re: OutputDebugString with variable number of arguments
just leave it.
|
Re: OutputDebugString with variable number of arguments
Thanks for the code. but it doesnt find helping in trace.
|
Re: OutputDebugString with variable number of arguments
but neway ur code have provided much knowledge to reslove problem.
|
Re: OutputDebugString with variable number of arguments
BlasterBlang, Please confine links to signatures only
|
Re: OutputDebugString with variable number of arguments
i m not so clear with it
|
Re: OutputDebugString with variable number of arguments
not clear
|
Re: OutputDebugString with variable number of arguments
Can you clarify what is not clear?
|
Re: OutputDebugString with variable number of arguments
Quote:
http://www.go4expert.com/showthread.php?t=1176 |
Re: OutputDebugString with variable number of arguments
A much more simple approach:
void _OutputDebugString(LPCTSTR lpOutputString, ... ) { TCHAR OutMsg[MAX_LENGTH];} |
Re: OutputDebugString with variable number of arguments
The Download ZIP file is corrupt
|
Re: OutputDebugString with variable number of arguments
Quote:
|
| All times are GMT +5.5. The time now is 10:47. |