Click here to Skip to main content
15,928,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Generating Setup file for MFC application Pin
Hamid_RT16-Aug-07 2:18
Hamid_RT16-Aug-07 2:18 
Questionproblem with ifstream--please help Pin
SnaKeBeD15-Aug-07 23:20
SnaKeBeD15-Aug-07 23:20 
AnswerRe: problem with ifstream--please help Pin
jhwurmbach15-Aug-07 23:30
jhwurmbach15-Aug-07 23:30 
GeneralRe: problem with ifstream--please help Pin
SnaKeBeD15-Aug-07 23:50
SnaKeBeD15-Aug-07 23:50 
GeneralRe: problem with ifstream--please help Pin
jhwurmbach15-Aug-07 23:59
jhwurmbach15-Aug-07 23:59 
GeneralRe: problem with ifstream--please help Pin
SnaKeBeD16-Aug-07 0:15
SnaKeBeD16-Aug-07 0:15 
GeneralRe: problem with ifstream--please help Pin
jhwurmbach16-Aug-07 0:42
jhwurmbach16-Aug-07 0:42 
GeneralRe: problem with ifstream--please help Pin
Maxwell Chen16-Aug-07 0:52
Maxwell Chen16-Aug-07 0:52 
swaroopkb wrote:
the buff value, its not getting cleared


To clear the buffer of istream, use std::basic_istream::ignore.

std::fstream f("a.txt", std::ios::in);
std::cout << f.rdbuf();   // Display content: "ABCDEFG"
std::cout << "\n---\n";
std::streamsize n;
f.seekg(0, std::ios::end);
n = f.tellg();  // Get the file size.
f.seekg(0, std::ios::beg);
f.ignore(n);    // Flush buffer.
std::cout << f.rdbuf();   // Displays nothing.



Maxwell Chen

QuestionRe: problem with ifstream--please help Pin
David Crow16-Aug-07 3:04
David Crow16-Aug-07 3:04 
QuestionIs there any way to call non static method in static method of a class? Pin
Mushtaque Nizamani15-Aug-07 23:11
Mushtaque Nizamani15-Aug-07 23:11 
AnswerRe: Is there any way to call non static method in static method of a class? Pin
Paresh Chitte15-Aug-07 23:19
Paresh Chitte15-Aug-07 23:19 
AnswerRe: Is there any way to call non static method in static method of a class? Pin
Chris Losinger16-Aug-07 3:21
professionalChris Losinger16-Aug-07 3:21 
QuestionDoes anybody know how to change menu's background color? Pin
Peter, Chan15-Aug-07 23:03
Peter, Chan15-Aug-07 23:03 
AnswerRe: Does anybody know how to change menu's background color? Pin
Iain Clarke, Warrior Programmer16-Aug-07 1:30
Iain Clarke, Warrior Programmer16-Aug-07 1:30 
AnswerRe: Does anybody know how to change menu's background color? Pin
Hamid_RT16-Aug-07 2:29
Hamid_RT16-Aug-07 2:29 
GeneralRe: Does anybody know how to change menu's background color? Pin
Peter, Chan16-Aug-07 15:54
Peter, Chan16-Aug-07 15:54 
GeneralRe: Does anybody know how to change menu's background color? Pin
Hamid_RT18-Aug-07 19:34
Hamid_RT18-Aug-07 19:34 
QuestionDetect the existing web browsers in a system Pin
kiranin15-Aug-07 22:07
kiranin15-Aug-07 22:07 
AnswerRe: Detect the existing web browsers in a system Pin
David Crow16-Aug-07 3:06
David Crow16-Aug-07 3:06 
QuestionActive window holding problem Pin
john563215-Aug-07 22:00
john563215-Aug-07 22:00 
AnswerRe: Active window holding problem Pin
sw@thi15-Aug-07 22:30
sw@thi15-Aug-07 22:30 
GeneralRe: Active window holding problem Pin
john563215-Aug-07 23:17
john563215-Aug-07 23:17 
GeneralRe: Active window holding problem Pin
sw@thi16-Aug-07 0:30
sw@thi16-Aug-07 0:30 
QuestionRe: Active window holding problem Pin
David Crow16-Aug-07 3:10
David Crow16-Aug-07 3:10 
Questionwhat does the non-maskable interrupt do? Pin
zon_cpp15-Aug-07 21:31
zon_cpp15-Aug-07 21:31 

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.