Click here to Skip to main content
16,005,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The one and only instance Pin
Todd Smith26-Oct-01 14:20
Todd Smith26-Oct-01 14:20 
GeneralMultiple SDI Pin
26-Oct-01 13:57
suss26-Oct-01 13:57 
GeneralRe: Multiple SDI Pin
29-Oct-01 4:35
suss29-Oct-01 4:35 
GeneralDisplaying and Saving Images at different resolutions. Pin
26-Oct-01 13:06
suss26-Oct-01 13:06 
GeneralRe: Displaying and Saving Images at different resolutions. Pin
Bill Wilson26-Oct-01 14:15
Bill Wilson26-Oct-01 14:15 
Generalfstream question Pin
davidko26-Oct-01 11:34
davidko26-Oct-01 11:34 
GeneralRe: fstream question Pin
Michael Dunn26-Oct-01 15:01
sitebuilderMichael Dunn26-Oct-01 15:01 
GeneralRe: fstream question Pin
Joaquín M López Muñoz27-Oct-01 3:17
Joaquín M López Muñoz27-Oct-01 3:17 
The usual way to have user defined streams is not by deriving from ofstream or any other standard stream, but rather by deriving from streambuf, which is the holder of the virtual functions you're after. Only after this you can define your ozfstream as a derivation of ostream having a zstreambuf (or whaterever you decide to call it) as a member and attaching the base class to it. The details are a little convoluted, but the task if way simpler than your intended approach of overriding each and every ofstream method. Plus, you got some extra bonuses, like the possibility of having zipped streams of any kind, not just coming from files but from memory buffers or other sources.

Good luck with your project.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
QuestionHow do I make a macro for this? Pin
Darren Schroeder26-Oct-01 10:04
Darren Schroeder26-Oct-01 10:04 
AnswerRe: How do I make a macro for this? Pin
Chris Losinger26-Oct-01 10:14
professionalChris Losinger26-Oct-01 10:14 
GeneralGDI Question Pin
26-Oct-01 10:02
suss26-Oct-01 10:02 
GeneralRe: GDI Question Pin
Christian Graus26-Oct-01 10:53
protectorChristian Graus26-Oct-01 10:53 
GeneralResizing a view Pin
26-Oct-01 9:36
suss26-Oct-01 9:36 
GeneralRe: Resizing a view Pin
Navin26-Oct-01 9:45
Navin26-Oct-01 9:45 
GeneralRe: Resizing a view Pin
26-Oct-01 10:07
suss26-Oct-01 10:07 
GeneralChinese (.. or any DBCS) font problems Pin
Navin26-Oct-01 8:56
Navin26-Oct-01 8:56 
GeneralRe: Chinese (.. or any DBCS) font problems Pin
Carlos Antollini26-Oct-01 9:03
Carlos Antollini26-Oct-01 9:03 
GeneralRe: Chinese (.. or any DBCS) font problems Pin
Navin26-Oct-01 9:43
Navin26-Oct-01 9:43 
Generalcalling applications in VC++ etc, Pin
JCY26-Oct-01 8:27
JCY26-Oct-01 8:27 
GeneralRe: calling applications in VC++ etc, Pin
Chris Losinger26-Oct-01 8:34
professionalChris Losinger26-Oct-01 8:34 
GeneralRe: calling applications in VC++ etc, Pin
Carlos Antollini26-Oct-01 8:56
Carlos Antollini26-Oct-01 8:56 
GeneralRe: calling applications in VC++ etc, Pin
Navin26-Oct-01 8:59
Navin26-Oct-01 8:59 
General(mfc) Checking a checkbox during CPropertyPage constructor Pin
Simon Walton26-Oct-01 6:27
Simon Walton26-Oct-01 6:27 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Chris Losinger26-Oct-01 6:42
professionalChris Losinger26-Oct-01 6:42 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Simon Walton26-Oct-01 7:13
Simon Walton26-Oct-01 7:13 

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.