va_list
: Type to hold information about variable arguments
va_start
: Initialize a variable argument list
void test::dbg(LPCTSTR lpFmt,... )
{
va_list marker;
va_start( marker,lpFmt );
char text[1000]={0,};
vsprintf( text,lpFmt,marker);
va_end( marker );
CString ret(text);
//...
}
댓글 없음:
댓글 쓰기