Click here to Skip to main content
15,890,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LNK errors 2019, 2001, 1120 Pin
jhaga5-May-03 23:30
professionaljhaga5-May-03 23:30 
GeneralRe: LNK errors 2019, 2001, 1120 Pin
will13836-May-03 3:40
will13836-May-03 3:40 
GeneralIP Address Control Pin
JensB5-May-03 20:29
JensB5-May-03 20:29 
GeneralRe: IP Address Control Pin
Ryan Binns6-May-03 1:33
Ryan Binns6-May-03 1:33 
GeneralRe: IP Address Control Pin
David Crow6-May-03 4:33
David Crow6-May-03 4:33 
GeneralThe VxD problem Pin
Jeef5-May-03 17:59
Jeef5-May-03 17:59 
Generalredirected streams and stdout Pin
virtual me()5-May-03 16:50
virtual me()5-May-03 16:50 
GeneralRe: redirected streams and stdout Pin
Andrew Walker6-May-03 0:19
Andrew Walker6-May-03 0:19 
The following is an extract from "Conversations: Redirections", by Jim Hyslop and Herb Sutter from CUJ, to see the whole artical goto

http://www.cuj.com/experts/1903/hyslop.htm?topic=experts[^]

#include <iostream>
#include <fstream>
int main()
{
std::ofstream logFile("out.txt");
std::streambuf *outbuf = std::cout.rdbuf(logFile.rdbuf());
std::streambuf *errbuf = std::cerr.rdbuf(logFile.rdbuf());

// do the actual work of the program;

std::cout << "This would normally go to cout but goes to the log file\n";
std::cerr << "This would normally go to cerr but goes to the log file \n";
logFile << "This goes to the log file\n";

// restore the buffers
std::cout.rdbuf(outbuf);
std::cerr.rdbuf(errbuf);
}
GeneralCustom Component Newbie Question Pin
crewchill5-May-03 16:18
crewchill5-May-03 16:18 
GeneralRe: Custom Component Newbie Question Pin
Ryan Binns6-May-03 1:50
Ryan Binns6-May-03 1:50 
GeneralCGI printing under IIS Pin
Anonymous5-May-03 13:49
Anonymous5-May-03 13:49 
GeneralRe: CGI printing under IIS Pin
basementman6-May-03 5:16
basementman6-May-03 5:16 
QuestionCopying form a Window to MS Word? Pin
krle5-May-03 13:49
krle5-May-03 13:49 
QuestionHow do I control what happens on a keypress? Pin
Kaezin5-May-03 13:13
Kaezin5-May-03 13:13 
AnswerRe: How do I control what happens on a keypress? Pin
valikac5-May-03 13:47
valikac5-May-03 13:47 
AnswerRe: How do I control what happens on a keypress? Pin
Michael Dunn5-May-03 17:43
sitebuilderMichael Dunn5-May-03 17:43 
Generalunknown mistake Pin
aguest5-May-03 12:34
aguest5-May-03 12:34 
GeneralRe: unknown mistake Pin
Baris Kurtlutepe5-May-03 12:38
Baris Kurtlutepe5-May-03 12:38 
GeneralRe: unknown mistake Pin
Wes Aday5-May-03 12:39
professionalWes Aday5-May-03 12:39 
GeneralRe: unknown mistake Pin
jhaga5-May-03 12:55
professionaljhaga5-May-03 12:55 
GeneralRe: unknown mistake Pin
aguest5-May-03 13:08
aguest5-May-03 13:08 
GeneralRe: unknown mistake Pin
aguest5-May-03 13:14
aguest5-May-03 13:14 
Generalanother problem Pin
aguest5-May-03 13:28
aguest5-May-03 13:28 
GeneralRe: another problem Pin
Chris Richardson6-May-03 5:16
Chris Richardson6-May-03 5:16 
GeneralLaunch a thread in a dll Pin
peter ho5-May-03 12:29
peter ho5-May-03 12:29 

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.