473,383 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Error While building application on Visual Studio 2005(64-bit).

Hi,
I am building a application on Visual studio 2005.

I have included file #include<fstream> with using namespace std.

& I am getting errors like :
error C2039: 'openprot' : is not a member of 'std::basic_filebuf<_Elem,_Traits>'
error C2039: 'nocreate' : is not a member of 'std::basic_ios<_Elem,_Traits>'

The same application is building on 32 bit windows(where I have included fstream.h)

Please Help
Jan 11 '08 #1
1 4152
weaknessforcats
9,208 Expert Mod 8TB
fstream.h is pre-ANSI C++ from before 1998.

Change your code to include <fstream> and see if ti still compiles.

fstream.h is not compatible with fstream.

You have to use consistent headers. Either use the archeological relics or use the ANSI headers and the std namespace.
Jan 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: . . | last post by:
Hi I am developing a web system using Visual studio.net 2005. I would like to know how Visual sourcesafe works with Visual Studio 2005 . Do I have to add my aspx file to the visual sourcesafe at...
2
by: Michelle A. | last post by:
On a spare machine at work I have installed W2k3 server standard edition and Visual Studio 2003.NET to do some developing on. When I installed Visual Studio I ran through the prerequisite cd and...
1
by: Chris Morse | last post by:
Does anyone know how to profile a VB.NET application? In the VS.NET 2003 docs, I found this: (BEGIN DOC COPY) "A code profiler is a software tool, implemented as a DLL, which is called by...
0
by: Sean | last post by:
When trying to debug using Visual Studio 2005 I get Unable to start debugging on the web server. An authentication error occurred while communicating with the web server. Please see Help for...
16
Frinavale
by: Frinavale | last post by:
The following article is directed at people who are experiencing an HTTP/1.1 500 Internal Server Error while using Visual Studio 2003. The error message typically sounds something like: The web...
0
by: fischermx | last post by:
Environment: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack...
1
by: gnanapoongothai | last post by:
hi, i am getting the error displayed below Chat1.rc(4) : error RC2135 : file not found: 6 gone through the MSDN couldnt find any help. just help me with this code: DLG_MAIN DIALOG 6, 18,...
3
by: pauldepstein | last post by:
I am using the latest version of Visual c++ on windows XP. I am trying to build a project and get a lnk1104 error regarding a file of the form .../../ ProjectName.lib No other errors, just this...
1
innesaji
by: innesaji | last post by:
I'm trying to connect to a database and am using the emulator (windows mobile 5 r2) could someone tell me what i'm doing wrong? I've also tried using the connection string in the properties of the...
2
by: subhala | last post by:
im getting an error when installing visual studio 6 in window xp.here is the error "set up is updating the system".then DCOM user account cannot register c:\program...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.