difference in STREANBUF in VS 6.0 and VS 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yosh
    New Member
    • Nov 2006
    • 4

    difference in STREANBUF in VS 6.0 and VS 2005

    Hi!
    In my application I used blen(), ebuf() & allocate() mem-functions of class 'streambuf'',
    In new include file <streambuf> these functiona were removed from the cloass.
    HWat can be done?
    Thanks in advance
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Presumably, you are using iostream.h ??

    If so, that is is pre-ANSI C++ prior to 1998. It is dead and does not ship with Visual Sudio.NET. Plus it's buggy.

    Change your code to use ANSI C++ and go from there.

    Comment

    • yosh
      New Member
      • Nov 2006
      • 4

      #3
      [No, I use <iostream> tha's why old mem-functions are not exist any more and I want to understand how to substitute them

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        You will need to find the ANSI equivalents.

        blen() used to return the the size of the reserve area. Today, that is capacity().

        Comment

        Working...