Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaliostream problems Pin
Christian Graus15-May-02 18:20
protectorChristian Graus15-May-02 18:20 
GeneralRe: iostream problems Pin
Maxwell Chen15-May-02 18:59
Maxwell Chen15-May-02 18:59 
GeneralRe: iostream problems Pin
Christian Graus15-May-02 19:16
protectorChristian Graus15-May-02 19:16 
GeneralRe: iostream problems Pin
Maxwell Chen15-May-02 20:03
Maxwell Chen15-May-02 20:03 
GeneralRe: iostream problems Pin
Christian Graus15-May-02 20:32
protectorChristian Graus15-May-02 20:32 
GeneralRe: iostream problems Pin
Joaquín M López Muñoz15-May-02 20:47
Joaquín M López Muñoz15-May-02 20:47 
GeneralRe: iostream problems Pin
Christian Graus15-May-02 21:02
protectorChristian Graus15-May-02 21:02 
GeneralRe: iostream problems [edited] Pin
Joaquín M López Muñoz15-May-02 21:08
Joaquín M López Muñoz15-May-02 21:08 
Hmmm... this little pesky compiler isn't behaving, I guess. My suggestion comes from a very similar problem I had in the past. My final solution was like this:
namespace sockiostr{

class socketstream: public std::iostream, noncopyable
{
  private:
    typedef std::iostream super;

  public:
    socketstream():
      super(&sockbuf),
      sockbuf()
    {}
...
and it indeed works.

PS. Of course, in your case the compliant syntax would be
class osLogFile : public std::ostream 
{ 
    public: 
        osLogFile() : std::ostream(&msb),std::ios(0) {}
...
but this won't work in VC++ 5.0 --have you given it a try in VC++ 6.0?


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: iostream problems Pin
Christian Graus15-May-02 21:11
protectorChristian Graus15-May-02 21:11 
GeneralRe: iostream problems Pin
Joaquín M López Muñoz15-May-02 21:17
Joaquín M López Muñoz15-May-02 21:17 
GeneralRe: iostream problems Pin
Joaquín M López Muñoz15-May-02 21:19
Joaquín M López Muñoz15-May-02 21:19 
GeneralRe: iostream problems Pin
Christian Graus15-May-02 22:49
protectorChristian Graus15-May-02 22:49 
GeneralC++ Components Question Pin
Nick Parker15-May-02 17:40
protectorNick Parker15-May-02 17:40 
GeneralRe: C++ Components Question Pin
Christian Graus15-May-02 18:17
protectorChristian Graus15-May-02 18:17 
GeneralRe: C++ Components Question Pin
Nick Parker15-May-02 18:46
protectorNick Parker15-May-02 18:46 
GeneralRe: C++ Components Question Pin
Nish Nishant15-May-02 18:55
sitebuilderNish Nishant15-May-02 18:55 
GeneralRe: C++ Components Question Pin
Nick Parker16-May-02 1:14
protectorNick Parker16-May-02 1:14 
GeneralRe: C++ Components Question Pin
Nish Nishant16-May-02 1:34
sitebuilderNish Nishant16-May-02 1:34 
GeneralRe: C++ Components Question Pin
Nick Parker16-May-02 8:28
protectorNick Parker16-May-02 8:28 
QuestionThe clause of IDispatch #3105 error? Pin
sages15-May-02 17:32
sages15-May-02 17:32 
AnswerRe: The clause of IDispatch #3105 error? Pin
Roger Wright15-May-02 21:23
professionalRoger Wright15-May-02 21:23 
GeneralLetters Instead of Numbers Pin
nywebhead15-May-02 17:25
nywebhead15-May-02 17:25 
GeneralRe: Letters Instead of Numbers Pin
Christian Graus15-May-02 17:35
protectorChristian Graus15-May-02 17:35 
GeneralRe: Letters Instead of Numbers Pin
nywebhead15-May-02 17:40
nywebhead15-May-02 17:40 
GeneralRe: Letters Instead of Numbers Pin
Christian Graus15-May-02 18:16
protectorChristian Graus15-May-02 18:16 

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.