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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -