.
In order to create a function that uses a variable argument list, declare the function with '...' as the last argument and use va_list, va_start and va_end.
CString CTestDgStartStopDlg::Status( LPCTSTR szFormat, ... ) { CString csReturn; va_list args; va_start(args, szFormat); csReturn.FormatV( szFormat, args); va_end( args ); return csReturn; }