Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/articles/mfc-tutorials/)
-   -   OutputDebugString with variable number of arguments (http://www.go4expert.com/articles/outputdebugstring-variable-arguments-t871/)

asadullah.ansari 6Mar2008 13:38

Re: OutputDebugString with variable number of arguments
 
Quote:

Originally Posted by shabbir
I could not get you which reply you are talking about.

I think tejus user talk about this thread.

http://www.go4expert.com/showthread.php?t=1176

shahata 9Aug2008 17:23

Re: OutputDebugString with variable number of arguments
 
A much more simple approach:

void _OutputDebugString(LPCTSTR lpOutputString, ... )
{
TCHAR OutMsg[MAX_LENGTH];

va_list argptr;
va_start(argptr, lpOutputString);

wvsprintf(OutMsg, lpOutputString, argptr);
OutputDebugString(OutMsg);

va_end(argptr);
}

hsm 22Jul2010 16:41

Re: OutputDebugString with variable number of arguments
 
The Download ZIP file is corrupt

shabbir 22Jul2010 16:43

Re: OutputDebugString with variable number of arguments
 
Quote:

Originally Posted by hsm (Post 70596)
The Download ZIP file is corrupt

I downloaded once again and they worked fine for me


All times are GMT +5.5. The time now is 12:28.