Click here to Skip to main content
15,917,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem using RegEx (boost) Pin
Stephen Hewitt18-Jul-06 16:39
Stephen Hewitt18-Jul-06 16:39 
GeneralRe: Problem using RegEx (boost) Pin
led mike18-Jul-06 17:49
led mike18-Jul-06 17:49 
Questionerror LNK2019 Pin
LCI18-Jul-06 11:08
LCI18-Jul-06 11:08 
AnswerRe: error LNK2019 Pin
NrmMyth18-Jul-06 11:17
NrmMyth18-Jul-06 11:17 
GeneralRe: error LNK2019 Pin
LCI18-Jul-06 11:25
LCI18-Jul-06 11:25 
GeneralRe: error LNK2019 Pin
LCI18-Jul-06 12:00
LCI18-Jul-06 12:00 
GeneralRe: error LNK2019 Pin
NrmMyth18-Jul-06 15:01
NrmMyth18-Jul-06 15:01 
Questionoverloading a variable argument list function Pin
psasidisrcum18-Jul-06 10:40
psasidisrcum18-Jul-06 10:40 
Newbie question here. I have a bunch of text that I want to write both to the stdout and to a logfile using fprintf. Currently, I'm using the primitive method of just printing out everything twice, once to the stdout and once to the logfile. I thought about an elegant way of doing this, and the best I could come up with is to overload fprintf so it'll take two FILE* arguments, like fprintf(stdout, logfile "text %d", x, ...) etc. While trying to overload fprintf, however, I ran into difficulties since it takes a variable argument list and the overloading seems to be a lot more complicated. I played around with va_list, va_arg and such but ended up getting nowhere.
Is there an easy way of doing this, or can anyone offer some assistance in coding this up?

Thanks a lot in advance.
AnswerRe: overloading a variable argument list function Pin
led mike18-Jul-06 11:05
led mike18-Jul-06 11:05 
AnswerRe: overloading a variable argument list function Pin
David Crow18-Jul-06 11:05
David Crow18-Jul-06 11:05 
QuestionHow to get a signal when a USB device is added or removed Pin
Luckymmkay18-Jul-06 10:23
Luckymmkay18-Jul-06 10:23 
AnswerRe: How to get a signal when a USB device is added or removed Pin
earl18-Jul-06 11:41
earl18-Jul-06 11:41 
GeneralRe: How to get a signal when a USB device is added or removed Pin
Luckymmkay19-Jul-06 8:24
Luckymmkay19-Jul-06 8:24 
QuestionNode selection problem Pin
Alex Cutovoi18-Jul-06 9:46
Alex Cutovoi18-Jul-06 9:46 
AnswerRe: Node selection problem Pin
Ali Rafiee18-Jul-06 10:25
Ali Rafiee18-Jul-06 10:25 
Questionillegal characters in xml files Pin
eusto18-Jul-06 9:42
eusto18-Jul-06 9:42 
AnswerRe: illegal characters in xml files Pin
toxcct18-Jul-06 21:33
toxcct18-Jul-06 21:33 
QuestionPlaySound Pin
MrEman18-Jul-06 9:26
MrEman18-Jul-06 9:26 
AnswerRe: PlaySound Pin
Ali Rafiee18-Jul-06 9:43
Ali Rafiee18-Jul-06 9:43 
AnswerRe: PlaySound Pin
Hamid_RT18-Jul-06 18:55
Hamid_RT18-Jul-06 18:55 
QuestionIntercepting mouse clicks or keystrokes Pin
Igor Vigdorchik18-Jul-06 9:20
Igor Vigdorchik18-Jul-06 9:20 
AnswerRe: Intercepting mouse clicks or keystrokes Pin
Blake Miller20-Jul-06 7:12
Blake Miller20-Jul-06 7:12 
GeneralRe: Intercepting mouse clicks or keystrokes Pin
Igor Vigdorchik20-Jul-06 7:27
Igor Vigdorchik20-Jul-06 7:27 
Questionmany projects -> solution Pin
jimNLX18-Jul-06 8:45
jimNLX18-Jul-06 8:45 
AnswerRe: many projects -> solution Pin
Ali Rafiee18-Jul-06 9:16
Ali Rafiee18-Jul-06 9:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.