|
-
March 21st, 2003, 09:18 AM
#1
forwarding variable number of arguments
I want to write a general method that will add entries to a log file.
My problem is that i don't know how to pass all the arguments from logEvent() method to CString::Format()
void CXServerLogFile::logEvent( UINT resID, char *first, ... )
{
CString strEvent;
strEvent.Format( resID, .... ); // what do i put here?
strEvent += "\n";
writeEvent( strEvent );
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|