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

Managed C++/CLI

 
QuestionHow to customize the fxcop(analysis tool) Pin
bhaskarsri15-Oct-07 20:30
bhaskarsri15-Oct-07 20:30 
AnswerRe: How to customize the fxcop(analysis tool) Pin
led mike16-Oct-07 5:50
led mike16-Oct-07 5:50 
QuestionBase class pointer to derived class object??? Pin
Ash2015-Oct-07 20:18
Ash2015-Oct-07 20:18 
AnswerRe: Base class pointer to derived class object??? Pin
Christian Graus15-Oct-07 23:12
protectorChristian Graus15-Oct-07 23:12 
Answerit's called polymorphism Pin
etkid8417-Oct-07 2:38
etkid8417-Oct-07 2:38 
QuestionStreamReader, StreamWriter and File Position? Pin
BuckBrown15-Oct-07 9:18
BuckBrown15-Oct-07 9:18 
QuestionRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery15-Oct-07 9:44
Mark Salsbery15-Oct-07 9:44 
AnswerRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown15-Oct-07 10:17
BuckBrown15-Oct-07 10:17 
I have a file that I am using unique "Header" lines. In order to determine if all the headers are present I use String^ fileContents = streamReader->ReadToEnd(), then fileContents->Contains(uniqe_search_string). Then I try to reposition the file to the begining in order to read from the begining of the file until the end of the file is reached with...

while(streamReader->Peek() >= 0) { streamReader->ReadLine(); }

It's in the Peek() function. If I don't ReadToEnd(), then ReadLine() three times and then Position = 0, then I can WriteLine at the begining of the file. It would seem that once the Peek() function has reached the end of file that the stream needs to be closed and then reopened for the Peek() function to be cleared. I'll play with this a while to see if I can make it work the way I want.

Buck
GeneralRe: StreamReader, StreamWriter and File Position? [modified] Pin
Mark Salsbery15-Oct-07 11:02
Mark Salsbery15-Oct-07 11:02 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 9:05
BuckBrown16-Oct-07 9:05 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 9:26
Mark Salsbery16-Oct-07 9:26 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 10:11
BuckBrown16-Oct-07 10:11 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 10:29
Mark Salsbery16-Oct-07 10:29 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 11:12
BuckBrown16-Oct-07 11:12 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 11:27
Mark Salsbery16-Oct-07 11:27 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
BuckBrown16-Oct-07 11:30
BuckBrown16-Oct-07 11:30 
GeneralRe: StreamReader, StreamWriter and File Position? Pin
Mark Salsbery16-Oct-07 11:51
Mark Salsbery16-Oct-07 11:51 
QuestionHow to get HWND from System::Windows::Forms::Panel^ panel [modified] Pin
Newbie0014-Oct-07 0:35
Newbie0014-Oct-07 0:35 
AnswerRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 5:53
Mark Salsbery14-Oct-07 5:53 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 7:02
Newbie0014-Oct-07 7:02 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 7:19
Mark Salsbery14-Oct-07 7:19 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 7:29
Newbie0014-Oct-07 7:29 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 8:00
Mark Salsbery14-Oct-07 8:00 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 8:02
Newbie0014-Oct-07 8:02 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 8:22
Mark Salsbery14-Oct-07 8:22 

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.