Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #import directive Pin
Michael Dunn6-Dec-02 20:25
sitebuilderMichael Dunn6-Dec-02 20:25 
GeneralCListCtrl: What message to use for an event handler.. Pin
trustno16-Dec-02 17:22
trustno16-Dec-02 17:22 
GeneralRe: CListCtrl: What message to use for an event handler.. Pin
Michael Dunn6-Dec-02 20:32
sitebuilderMichael Dunn6-Dec-02 20:32 
GeneralMoving a single control in on HScroll in a CScrollView class Pin
VanHlebar6-Dec-02 16:10
VanHlebar6-Dec-02 16:10 
Questionhow to read data into an array in visual c++ Pin
KBL6-Dec-02 14:46
KBL6-Dec-02 14:46 
AnswerRe: how to read data into an array in visual c++ Pin
Christian Graus6-Dec-02 14:51
protectorChristian Graus6-Dec-02 14:51 
GeneralRe: how to read data into an array in visual c++ Pin
KBL6-Dec-02 15:16
KBL6-Dec-02 15:16 
GeneralRe: how to read data into an array in visual c++ Pin
Christian Graus6-Dec-02 15:27
protectorChristian Graus6-Dec-02 15:27 
My apologies. There is a search box above, but here are some links:

http://www.codeproject.com/vcpp/stl/index.asp#General[^]

I was wrong, I've not done an article on iostreams. I will rectify that today. I do show how they are used in other articles though. The gist of it is this to read a file:

#include <fstream>

using std::ifstream;

ifstream a("c:\file.txt");

int i;

a >> i;


and this to write one

#include <fstream>

using std::ofstream;

ofstream a("c:\file.txt");

int i = 7;

a << i;


More to come later today, I promise.

Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
GeneralRe: how to read data into an array in visual c++ Pin
KBL6-Dec-02 16:10
KBL6-Dec-02 16:10 
GeneralRe: how to read data into an array in visual c++ Pin
Nitron7-Dec-02 4:50
Nitron7-Dec-02 4:50 
QuestionFiles: What is more efficient? Pin
AlexMarbus6-Dec-02 12:51
AlexMarbus6-Dec-02 12:51 
AnswerRe: Files: What is more efficient? Pin
Nitron6-Dec-02 13:36
Nitron6-Dec-02 13:36 
GeneralRe: Files: What is more efficient? Pin
AlexMarbus6-Dec-02 13:37
AlexMarbus6-Dec-02 13:37 
AnswerRe: Files: What is more efficient? Pin
Michael Dunn6-Dec-02 14:13
sitebuilderMichael Dunn6-Dec-02 14:13 
GeneralRe: Files: What is more efficient? Pin
AlexMarbus6-Dec-02 14:19
AlexMarbus6-Dec-02 14:19 
QuestionHow to tell if a file is opened? Pin
Jonathan Gilligan6-Dec-02 12:34
Jonathan Gilligan6-Dec-02 12:34 
AnswerRe: How to tell if a file is opened? Pin
Ravi Bhavnani6-Dec-02 13:06
professionalRavi Bhavnani6-Dec-02 13:06 
GeneralRe: How to tell if a file is opened? Pin
Jonathan Gilligan6-Dec-02 13:27
Jonathan Gilligan6-Dec-02 13:27 
GeneralMystery Progress Bars in Shell Context Menu Extension DLL Pin
Sheri Steeves6-Dec-02 11:28
Sheri Steeves6-Dec-02 11:28 
GeneralRestore focus to child window in CScrollView Pin
Sara Burns6-Dec-02 10:54
Sara Burns6-Dec-02 10:54 
GeneralWindows 2000 VS. NT Pin
Shay Harel6-Dec-02 10:41
Shay Harel6-Dec-02 10:41 
QuestionWhen do you build a DLL? Pin
Nitron6-Dec-02 10:16
Nitron6-Dec-02 10:16 
AnswerRe: When do you build a DLL? Pin
Paul M Watt6-Dec-02 10:24
mentorPaul M Watt6-Dec-02 10:24 
GeneralRe: When do you build a DLL? Pin
Nitron6-Dec-02 10:40
Nitron6-Dec-02 10:40 
GeneralRe: When do you build a DLL? Pin
Paul M Watt6-Dec-02 10:47
mentorPaul M Watt6-Dec-02 10:47 

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.