473,748 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

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

& I am getting errors like :
error C2039: 'openprot' : is not a member of 'std::basic_fil ebuf<_Elem,_Tra its>'
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 4172
weaknessforcats
9,208 Recognized Expert Moderator Expert
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
281
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 the end of the day and take it out next day for working on it ( is the soursesafe is just a safe storage for the code ? ). Will other developer will able to see my aspx file . What is the perpose of having sourcesafe . My Second question is...
2
1415
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 then installed basically all the options for the program. The program installed with out any errors, and I can launch the program as well with no problem. When I go to start a new ASP.NET web application project, name it and then hit the OK...
1
5559
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 the runtime system during the execution of an image. The profiler receives notifications each time a function is entered or exited, as well as when other events occur that are of interest to the
0
1168
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 assistance. I have tried http://support.microsoft.com/kb/306165/ and it did no solve my issue. Sean
16
27904
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 server reported the following error when attempting to create or open the Web Project located at the Following URL:http://localhost/Webapplication1’.HTTP/1.1 500 Internal Server Error’. This error tends to rear it's ugly head when you're creating...
0
3533
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 (KB926601) Hotfix for Microsoft Visual Studio 2005 Professional Edition - ENU (KB933608) Windows XP, SP2.
1
6095
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, 289, 303 STYLE DS_MODALFRAME | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "ChatMate"
3
1966
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 one. I've googled this error but not found anything useful at my newbie level. I understand the issue may be one of including the right files. I therefore went to Additional Include Directories on the Property Pages but I would need help...
1
2534
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 datasource.. "Data Source=C:\Users\Adam\Documents\Visual Studio 2008\Projects\inventoryProgram\inventoryProgram\invDB.sdf" Dim conn = New SqlCeConnection("Data Source = invDB.sdf") Try conn.Open() Catch ex As...
2
2200
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 files\VSS\VS-Ent98\analyser.exe.......... plz...help me
0
8822
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9309
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9234
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4591
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2205
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.