c++ - Problem with ifstream::setbuf in VS2008 -


What changes are required to port "setbuf" in VS2005 to VS2008?

For me to be able to create a project for VS 2008 from VS 2005. Below is the line of code that should be compiled in VS2008.

std :: ifstream these; In.setbuf (FileBuffer, BUFFER_REGION_SIZE);

When I compile the above code in VS2008, I see the error below.

  Error C2039: 'setbuf': 'std: : Basic_ifstream & lt; _Elem, _Traits & gt; Is not a member of;  

What should be done to compile it in VS 2008?

Do you In.rdbuf () -> Pubsetbuf (FileBuffer, BUFFER_REGION_SIZE); ?

View


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -