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

Managed C++/CLI

 
AnswerRe: I am new to programming Pin
Paul Conrad16-Jul-07 10:07
professionalPaul Conrad16-Jul-07 10:07 
GeneralRe: I am new to programming Pin
Red Lake16-Jul-07 10:22
Red Lake16-Jul-07 10:22 
GeneralRe: I am new to programming Pin
Paul Conrad16-Jul-07 10:52
professionalPaul Conrad16-Jul-07 10:52 
QuestionRegistering Window Class Pin
john john mackey16-Jul-07 8:38
john john mackey16-Jul-07 8:38 
AnswerRe: Registering Window Class Pin
Mark Salsbery16-Jul-07 9:51
Mark Salsbery16-Jul-07 9:51 
GeneralRe: Registering Window Class Pin
john john mackey16-Jul-07 11:52
john john mackey16-Jul-07 11:52 
GeneralRe: Registering Window Class Pin
Mark Salsbery16-Jul-07 12:28
Mark Salsbery16-Jul-07 12:28 
QuestionEmbedded null characters in record Pin
BuckBrown16-Jul-07 8:36
BuckBrown16-Jul-07 8:36 
Hi, I'm using Visual Studio 2005 C++/CLI. I have a file with the following format:

DEVICE : TK65603
WAFER : 08
LOT : 006X
52 NULL 20 NULL 31 NULL <carriage return="">
52 NULL 18 NULL 26 NULL <carriage return="">...for 1000 records.

I am trying to set up a FileStream to read the data from this file for processing.

FileStream^ fileStream = gcnew FileStream(strFilePath, FileMode::Open);
StreamReader^ streamReader = gcnew StreamReader(fileStream);

The following reads the first threee lines just fine.
strDeviceName = streamReader->ReadLine();
strWaferNumber = streamReader->ReadLine();
strLotNumber = streamReader->ReadLine();

But then if I try to read the next line the command terminates at the NULL character and all I have in my variable is the first of the three fields (52). I have tried some variations of BiaryReader also. What approach would anyone recommend to work around this issue?


Buck
AnswerRe: Embedded null characters in record Pin
Paul Conrad21-Jul-07 18:53
professionalPaul Conrad21-Jul-07 18:53 
GeneralRe: Embedded null characters in record Pin
BuckBrown23-Jul-07 12:09
BuckBrown23-Jul-07 12:09 
GeneralRe: Embedded null characters in record Pin
Paul Conrad23-Jul-07 12:13
professionalPaul Conrad23-Jul-07 12:13 
Questionglobale vairable for two diffrente methode Pin
abbd16-Jul-07 5:54
abbd16-Jul-07 5:54 
AnswerRe: globale vairable for two diffrente methode Pin
Mark Salsbery16-Jul-07 7:02
Mark Salsbery16-Jul-07 7:02 
QuestionHow to overload "=" operator in a class? Pin
ShadowBoi15-Jul-07 17:59
ShadowBoi15-Jul-07 17:59 
AnswerRe: How to overload &quot;=&quot; operator in a class? Pin
Mark Salsbery16-Jul-07 7:16
Mark Salsbery16-Jul-07 7:16 
QuestionlistView c++ cli Pin
abbd15-Jul-07 8:42
abbd15-Jul-07 8:42 
AnswerRe: listView c++ cli [modified] Pin
Mark Salsbery15-Jul-07 10:01
Mark Salsbery15-Jul-07 10:01 
AnswerRe: listView c++ cli Pin
George L. Jackson15-Jul-07 15:46
George L. Jackson15-Jul-07 15:46 
GeneralRe: listView c++ cli Pin
Mark Salsbery16-Jul-07 7:18
Mark Salsbery16-Jul-07 7:18 
GeneralRe: listView c++ cli Pin
George L. Jackson17-Jul-07 11:44
George L. Jackson17-Jul-07 11:44 
GeneralRe: listView c++ cli Pin
Mark Salsbery17-Jul-07 13:12
Mark Salsbery17-Jul-07 13:12 
QuestionDeclaration of global variables Pin
abbd14-Jul-07 14:02
abbd14-Jul-07 14:02 
AnswerRe: Declaration of global variables Pin
Mark Salsbery14-Jul-07 16:52
Mark Salsbery14-Jul-07 16:52 
QuestionRe: Declaration of global variables Pin
abbd15-Jul-07 1:10
abbd15-Jul-07 1:10 
AnswerRe: Declaration of global variables Pin
Mark Salsbery15-Jul-07 6:26
Mark Salsbery15-Jul-07 6:26 

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.