Click here to Skip to main content
15,911,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThread Client\Serveur Pin
4-Aug-01 4:16
suss4-Aug-01 4:16 
GeneralRe: Thread Client\Serveur Pin
4-Aug-01 4:19
suss4-Aug-01 4:19 
GeneralRe: Thread Client\Serveur Pin
Baafie4-Aug-01 14:29
Baafie4-Aug-01 14:29 
GeneralAutomating Project Creation Pin
Steve Thresher4-Aug-01 1:52
Steve Thresher4-Aug-01 1:52 
GeneralRe: Automating Project Creation Pin
Steve Thresher4-Aug-01 2:45
Steve Thresher4-Aug-01 2:45 
GeneralRe: Automating Project Creation Pin
Steve Thresher4-Aug-01 2:48
Steve Thresher4-Aug-01 2:48 
GeneralScrolling a Bitmap in a CScrollView Pin
baywa4-Aug-01 1:13
baywa4-Aug-01 1:13 
GeneralCRichEditView::Stream() Pin
Frank Deo4-Aug-01 0:20
Frank Deo4-Aug-01 0:20 
Hello,

I need to open / save a txt file into a RichEditView at runtime without using the File -> Open / Save menu selections. ie. no user intervention.

I'd like to use the Stream functions of the RichEditView, but I can't figure out how to call the function. Looking at the code in ViewRich.cpp I can see how its supposed to work, but it always fails.

Can anyone give me any ideas? I'm not necessarily looking for the code, but rather some direction so that I can figure it out myself. Wink | ;)

I've already got the filename, stored in a CFile. And, a pointer to a CArchive object. I have called:

Stream(arLoad, FALSE);

However, the function needs to know what the value of IsStoring() is. How do I set that?

I've looked at the WordPad sample...it uses custom streamin / streamout functions.

Thanks for any ideas you can give me! Confused | :confused:

Frank
GeneralRe: CRichEditView::Stream() Pin
Baafie4-Aug-01 2:59
Baafie4-Aug-01 2:59 
GeneralRe: CRichEditView::Stream() Pin
Frank Deo4-Aug-01 9:55
Frank Deo4-Aug-01 9:55 
GeneralRe: CRichEditView::Stream() Pin
4-Aug-01 12:46
suss4-Aug-01 12:46 
GeneralRe: CRichEditView::Stream() Pin
Frank Deo5-Aug-01 4:20
Frank Deo5-Aug-01 4:20 
Questionhow to Delete a class in visual c++? Pin
nemati3-Aug-01 21:28
nemati3-Aug-01 21:28 
AnswerRe: how to Delete a class in visual c++? Pin
Christian Graus4-Aug-01 2:40
protectorChristian Graus4-Aug-01 2:40 
GeneralRe: how to Delete a class in visual c++? Pin
Reno Tiko4-Aug-01 15:50
Reno Tiko4-Aug-01 15:50 
GeneralRe: how to Delete a class in visual c++? Pin
Christian Graus4-Aug-01 17:33
protectorChristian Graus4-Aug-01 17:33 
GeneralRe: how to Delete a class in visual c++? Pin
Reno Tiko6-Aug-01 19:36
Reno Tiko6-Aug-01 19:36 
AnswerRe: how to Delete a class in visual c++? Pin
4-Aug-01 21:15
suss4-Aug-01 21:15 
QuestionHow To Use Progress in visual c++? Pin
nemati3-Aug-01 21:26
nemati3-Aug-01 21:26 
AnswerRe: How To Use Progress in visual c++? Pin
Christian Graus4-Aug-01 2:41
protectorChristian Graus4-Aug-01 2:41 
GeneralHelp: CWindowDC and CBitmap Pin
Craig Miller3-Aug-01 20:55
Craig Miller3-Aug-01 20:55 
GeneralRe: Help: CWindowDC and CBitmap Pin
Paolo Messina5-Aug-01 6:15
professionalPaolo Messina5-Aug-01 6:15 
GeneralRe: Help: CWindowDC and CBitmap Pin
Craig Miller5-Aug-01 8:13
Craig Miller5-Aug-01 8:13 
GeneralRe: Help: CWindowDC and CBitmap Pin
Paolo Messina5-Aug-01 10:59
professionalPaolo Messina5-Aug-01 10:59 
GeneralRe: Help: CWindowDC and CBitmap Pin
Craig Miller5-Aug-01 11:06
Craig Miller5-Aug-01 11:06 

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.