472,802 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

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 4124
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

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...
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...
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...
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...
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...
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...
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,...
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...
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...
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...
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: Mushico | last post by:
How to calculate date of retirement from date of birth
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.