Click here to Skip to main content
16,005,236 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionstatic and the public keyword Pin
S. Senthil Kumar18-Nov-05 3:56
S. Senthil Kumar18-Nov-05 3:56 
AnswerRe: static and the public keyword Pin
toxcct18-Nov-05 7:08
toxcct18-Nov-05 7:08 
GeneralRe: static and the public keyword Pin
S. Senthil Kumar20-Nov-05 19:21
S. Senthil Kumar20-Nov-05 19:21 
Questiongathering drive contents with standard C functions Pin
computerwhiz197015-Nov-05 6:22
computerwhiz197015-Nov-05 6:22 
AnswerRe: gathering drive contents with standard C functions Pin
Nish Nishant17-Nov-05 3:45
sitebuilderNish Nishant17-Nov-05 3:45 
AnswerRe: gathering drive contents with standard C functions Pin
mikanu19-Nov-05 20:40
mikanu19-Nov-05 20:40 
QuestionCreating a CSV file using C++ Pin
Georgie Hughes15-Nov-05 1:55
Georgie Hughes15-Nov-05 1:55 
AnswerRe: Creating a CSV file using C++ Pin
Christian Graus15-Nov-05 11:00
protectorChristian Graus15-Nov-05 11:00 
If you're using managed C++, then yes, the StreamWriter is what you want. However, I'd recommend using ofstream instead/.

#include <fstream>


using std::ofstream;

ofstream str(filePath);

str << ID << ", " << age << ", "

etc.

Now, if these things are stored in a struct, you could look at my <a href="http://www.codeproject.com/vcpp/stl/iostreaminserters.asp" rel="nofollow">article</a>[<a href="http://www.codeproject.com/vcpp/stl/iostreaminserters.asp" target="_blank" rel="nofollow" title="New Window">^</a>] on how to stream custom types, then you could do it all in one line and code the commans into the inserter.



Christian Graus - Microsoft MVP - C++

-- modified at 17:00 Tuesday 15th November, 2005
GeneralRe: Creating a CSV file using C++ Pin
Georgie Hughes15-Nov-05 23:07
Georgie Hughes15-Nov-05 23:07 
QuestionAccessing file from different threads Pin
9ine14-Nov-05 22:56
9ine14-Nov-05 22:56 
QuestionConsole C++ app drawing to a Window Pin
Big_Goose14-Nov-05 16:15
Big_Goose14-Nov-05 16:15 
AnswerRe: Console C++ app drawing to a Window Pin
Christian Graus14-Nov-05 16:30
protectorChristian Graus14-Nov-05 16:30 
GeneralRe: Console C++ app drawing to a Window Pin
Big_Goose15-Nov-05 3:18
Big_Goose15-Nov-05 3:18 
GeneralRe: Console C++ app drawing to a Window Pin
Big_Goose15-Nov-05 3:20
Big_Goose15-Nov-05 3:20 
GeneralRe: Console C++ app drawing to a Window Pin
Christian Graus15-Nov-05 10:56
protectorChristian Graus15-Nov-05 10:56 
GeneralRe: Console C++ app drawing to a Window Pin
Christian Graus15-Nov-05 11:03
protectorChristian Graus15-Nov-05 11:03 
QuestionHow do you know the duplicate key insertion in STL map Pin
sarath_babu13-Nov-05 20:18
sarath_babu13-Nov-05 20:18 
AnswerRe: How do you know the duplicate key insertion in STL map Pin
Nish Nishant14-Nov-05 4:08
sitebuilderNish Nishant14-Nov-05 4:08 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Christian Graus14-Nov-05 14:09
protectorChristian Graus14-Nov-05 14:09 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Nish Nishant15-Nov-05 6:51
sitebuilderNish Nishant15-Nov-05 6:51 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Christian Graus15-Nov-05 10:57
protectorChristian Graus15-Nov-05 10:57 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Jeremy Thornton24-Nov-05 2:24
Jeremy Thornton24-Nov-05 2:24 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
toxcct24-Nov-05 2:47
toxcct24-Nov-05 2:47 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Christian Graus24-Nov-05 9:06
protectorChristian Graus24-Nov-05 9:06 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Jeremy Thornton24-Nov-05 23:00
Jeremy Thornton24-Nov-05 23:00 

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.