Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDatabase loading errors Pin
Chris Klecker1-Jul-01 5:25
Chris Klecker1-Jul-01 5:25 
GeneralRe: Database loading errors Pin
Anders Molin1-Jul-01 7:27
professionalAnders Molin1-Jul-01 7:27 
GeneralRe: Database loading errors Pin
Chris Klecker1-Jul-01 9:38
Chris Klecker1-Jul-01 9:38 
GeneralRe: Database loading errors Pin
Anders Molin1-Jul-01 10:07
professionalAnders Molin1-Jul-01 10:07 
GeneralRe: Database loading errors Pin
Chris Klecker1-Jul-01 10:48
Chris Klecker1-Jul-01 10:48 
GeneralRe: Database loading errors Pin
Anders Molin1-Jul-01 11:58
professionalAnders Molin1-Jul-01 11:58 
GeneralNew Stream Types Pin
NullStream30-Jun-01 21:43
NullStream30-Jun-01 21:43 
GeneralRe: New Stream Types Pin
1-Jul-01 20:03
suss1-Jul-01 20:03 
Let me save you a lot of time. Go out and buy yourself a copy of

"Standard C++ Iostreams and Locales"

By Langer and Kreft.

It discusses in the most minute possible detail how to create your own streambuffer class and use it in a stream.

Basically what you do when you create a streambuffer class is first decide

1. Will it handle input?
2. Will it handle output?
3. Will it handle both simultaneously?

The answer to these questions determines the level of complexity involved in coding it.

Once you have determines that, you then know which functions you need to implement. The functions you implement are PRIVATE VIRTUAL functions. For example, you should not implement 'pubsync' because that it a public, non-virtual function. But you would implement 'sync' because that is a private, virtual function (and generally is what 'pubsync' calls anyway).

The topic is a big one. At the moment, I'm trying to write my own streambuffer for Winsock. I've seen a couple of implementations of this on the web, but I'm doing my own mainly as a learning experience.

Joe O'Leary
Generalstupid (template related?) linkage puzzle Pin
Alex Griffing30-Jun-01 20:28
Alex Griffing30-Jun-01 20:28 
GeneralRe: stupid (template related?) linkage puzzle Pin
Michael Dunn30-Jun-01 21:29
sitebuilderMichael Dunn30-Jun-01 21:29 
GeneralRe: stupid (template related?) linkage puzzle Pin
Erik Funkenbusch1-Jul-01 1:22
Erik Funkenbusch1-Jul-01 1:22 
GeneralRe: stupid (template related?) linkage puzzle Pin
NullStream1-Jul-01 8:34
NullStream1-Jul-01 8:34 
GeneralRe: stupid (template related?) linkage puzzle Pin
Alex Griffing1-Jul-01 13:30
Alex Griffing1-Jul-01 13:30 
GeneralSliding message window Pin
30-Jun-01 13:58
suss30-Jun-01 13:58 
GeneralTo all readers - I'm collecting FAQs from this forum Pin
Michael Dunn30-Jun-01 13:44
sitebuilderMichael Dunn30-Jun-01 13:44 
Generalmemset with 32 bit values Pin
Alex Griffing30-Jun-01 11:09
Alex Griffing30-Jun-01 11:09 
GeneralRe: memset with 32 bit values Pin
Mike Nordell30-Jun-01 11:35
Mike Nordell30-Jun-01 11:35 
GeneralRe: memset with 32 bit values Pin
Ben Burnett30-Jun-01 13:17
Ben Burnett30-Jun-01 13:17 
GeneralRe: memset with 32 bit values Pin
Alex Griffing30-Jun-01 14:07
Alex Griffing30-Jun-01 14:07 
GeneralSDI question ... Pin
Hadi Rezaee30-Jun-01 8:17
Hadi Rezaee30-Jun-01 8:17 
GeneralRe: SDI question ... Pin
Hadi Rezaee30-Jun-01 17:23
Hadi Rezaee30-Jun-01 17:23 
GeneralHelp - CString::LoadString(nID) is using the wrong resource handle! Pin
James Millson30-Jun-01 8:07
James Millson30-Jun-01 8:07 
GeneralRe: Help - CString::LoadString(nID) is using the wrong resource handle! Pin
Chris Losinger30-Jun-01 8:19
professionalChris Losinger30-Jun-01 8:19 
GeneralRe: Help - CString::LoadString(nID) is using the wrong resource handle! Pin
James Millson30-Jun-01 14:53
James Millson30-Jun-01 14:53 
GeneralSimple ActiveX question ... Pin
Hadi Rezaee30-Jun-01 7:03
Hadi Rezaee30-Jun-01 7:03 

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.