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

Managed C++/CLI

 
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 
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 
Are both the streamreader and streamwriter using the same stream?  Or a separate stream to/from the same file?

If so...

Results are going to be really unpredictable. 

You may be getting lucky because the reader has buffered the entire file before you do any writing.

You can't expect to read and write to the same file at the same time, at least not at overlapping locations.

Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 10:04
Newbie0014-Oct-07 10:04 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Mark Salsbery14-Oct-07 10:24
Mark Salsbery14-Oct-07 10:24 
GeneralRe: How to get HWND from System::Windows::Forms::Panel^ panel Pin
Newbie0014-Oct-07 10:32
Newbie0014-Oct-07 10:32 

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.