Click here to Skip to main content
15,902,938 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Error Message Pin
Luc Pattyn2-Mar-09 3:50
sitebuilderLuc Pattyn2-Mar-09 3:50 
GeneralRe: Error Message Pin
N a v a n e e t h2-Mar-09 15:15
N a v a n e e t h2-Mar-09 15:15 
AnswerRe: Error Message Pin
N a v a n e e t h2-Mar-09 15:11
N a v a n e e t h2-Mar-09 15:11 
QuestionStreamWriter - How can I write as a .CSV file ? Pin
J_E_D_I28-Feb-09 9:49
J_E_D_I28-Feb-09 9:49 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
bfoo7528-Feb-09 11:07
bfoo7528-Feb-09 11:07 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
Mark Salsbery28-Feb-09 11:12
Mark Salsbery28-Feb-09 11:12 
QuestionRe: StreamWriter - How can I write as a .CSV file ? Pin
J_E_D_I28-Feb-09 18:32
J_E_D_I28-Feb-09 18:32 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
Mark Salsbery1-Mar-09 12:56
Mark Salsbery1-Mar-09 12:56 
The problem then is with Excel, either its settings or the version
you're using.

I tested the file produced by your code on Office Excel 2007.
The file opens fine and puts the A in one cell (column A) and the B
in another cell (column B), but only after answering the prompts to
tell excel what the delimiter is.

Then I added the code to write a newline and tested it again. Excel
opened it and placed the items in separate cells on the same row with no
prompting.

I'm not sure how you expect to fix it by writing the file differently, unless
there's some proprietary Excel CSV format.

(Note that a valid newline (either a CR or CR/LF pair) is generally required at the
end of rows in a generic CSV file)

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

General[Message Deleted] Pin
J_E_D_I2-Mar-09 2:43
J_E_D_I2-Mar-09 2:43 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
Luc Pattyn2-Mar-09 3:55
sitebuilderLuc Pattyn2-Mar-09 3:55 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
Luc Pattyn2-Mar-09 4:33
sitebuilderLuc Pattyn2-Mar-09 4:33 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
J_E_D_I2-Mar-09 5:10
J_E_D_I2-Mar-09 5:10 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
J_E_D_I2-Mar-09 5:16
J_E_D_I2-Mar-09 5:16 
GeneralRe: StreamWriter - How can I write as a .CSV file ? Pin
Luc Pattyn2-Mar-09 5:19
sitebuilderLuc Pattyn2-Mar-09 5:19 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
N a v a n e e t h1-Mar-09 14:03
N a v a n e e t h1-Mar-09 14:03 
GeneralNewLine Pin
J_E_D_I2-Mar-09 5:26
J_E_D_I2-Mar-09 5:26 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
Jens.Bonnermann6-Mar-09 7:01
Jens.Bonnermann6-Mar-09 7:01 
AnswerRe: StreamWriter - How can I write as a .CSV file ? Pin
Jens.Bonnermann6-Mar-09 7:02
Jens.Bonnermann6-Mar-09 7:02 
QuestionConverting System.Drawing.Image to a DirectDrawSurface Pin
bfoo7527-Feb-09 13:04
bfoo7527-Feb-09 13:04 
AnswerRe: Converting System.Drawing.Image to a DirectDrawSurface Pin
bfoo7528-Feb-09 13:57
bfoo7528-Feb-09 13:57 
QuestionReading the registry once and storing the values Pin
naveen_bij27-Feb-09 10:04
naveen_bij27-Feb-09 10:04 
QuestionRe: Reading the registry once and storing the values Pin
Mark Salsbery28-Feb-09 7:45
Mark Salsbery28-Feb-09 7:45 
AnswerRe: Reading the registry once and storing the values Pin
naveen_bij28-Feb-09 22:57
naveen_bij28-Feb-09 22:57 
GeneralRe: Reading the registry once and storing the values Pin
N a v a n e e t h1-Mar-09 13:27
N a v a n e e t h1-Mar-09 13:27 
GeneralRe: Reading the registry once and storing the values Pin
naveen_bij1-Mar-09 17:40
naveen_bij1-Mar-09 17:40 

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.