473,795 Members | 3,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vc++ 7.1 #include problems

I recently started using vs2003 from vc++ 6.0. I am
having the starngest of problems. I cannot include any
files into my code (string.h or iostream.h). I installed
vs '03 after a clean install of windows (no problems with
prior versions of vs). I have checked to make sure all
the include directories are correct. It just doesn't
make sense to me. ANY help would be well appreciated.
Nov 16 '05 #1
1 1071
www.espiredreams.net wrote:
I recently started using vs2003 from vc++ 6.0. I am
having the starngest of problems. I cannot include any
files into my code (string.h or iostream.h). I installed
vs '03 after a clean install of windows (no problems with
prior versions of vs). I have checked to make sure all
the include directories are correct. It just doesn't
make sense to me. ANY help would be well appreciated.


Are you sure string.h doesn't work? <iostream.h> not working makes sense,
as the pre-standard IOStreams are no longer supported by VC7.1 (you have to
convert to the C++ Standard IOStreams - <iostream>, <fstream>, etc - no .h).

By contrast, <string.h> is an ISO-C standard header file, and is definitely
supported by VC7.1.

-cd
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8617
by: Medi Montaseri | last post by:
Hope this is a right forum, else route me... I'm using map STL in Microsoft Visual C++ 6.0 and am getting warning C4786 which seems to have to do with truncating symbols as VC++ is building a browser file (unix folks think ctags file). Is there anyway to tell this compiler to increase your symbol entry buffer size from 255 to 1000 (or something). The warning message looks like this
1
3281
by: Kelvin | last post by:
To all, I've tried to use the data structures in STL of standard C++ lib, but compile errors such as "vector is an undefined variable/type" here's the snippet #include <vector.h> .... other include file(s)
3
4439
by: Binary | last post by:
VC++ .NET 2003: Access violation with /O2 compiler switch; no AV with /O Hi I'm in the process of narrowing down a problem, and I have reduced the code involved to the following If someone could do the following and verify what I am seeing (and offer any insight!), I would appreciate it Simply create a new "Win32 Console Project" in VC++ .NET 2003. On the "Application Settings" page, check the "Empty project" box. Click "Finish" Add a...
2
1971
by: Michael Braitmaier | last post by:
I have a quite severe problem. I am trying to compile a C++ library initially written for VC++ 6. To make the library available for .NET languages I want to compile the library as managed C++ library. As the library is utilizing DirectX 9 it bases on COM. This causes me quite some troubles as I get compile errors caused by the include files included through the DirectX 9 header file. The errors occur in unknwn.h, objbase.h and ObjIdl.h. ...
3
1706
by: RYoung | last post by:
Hi all, Using VC Express Beta 2, Just a simple class so far cause I can't get past this error: error C3861: 'CoInitialize': identifier not found public ref class Class1 {
4
1712
by: Agos | last post by:
I'm trying to learn VC++.NET. I used till now Borland C++ Builder 6. I had a program starting like this: #include <fstream.h> #define TEMP_FILES 200 ...... ....... fstream chunk_file; With Borland and g++ I had no problems with these lines instead VC++.NET
17
7258
by: Fabry | last post by:
Hi All, I'm new of this group and I do not know if this is the correct group for my question. I have a DLL with its export library (.lib) wrote in Borland C++ 6. In borland everything is OK and I am able to include the lib and use the class that i have exported creating an instance with new etc... I would like to export this class in microsoft VC++ using the same .lib file. Obviously it doesn' t work.
4
12871
by: marathoner | last post by:
I tried your advice, and replaced "ifstream" with "std::ifstream". I also replaced instances of "ofstream" with "std::ofstream". Those syntax errors were resolved. When I added "std" to the following statement: m_InFile.open(m_sFileName, ios::in | ios::binary); which became m_InFile.open(m_sFileName, std::ios::in | std::ios::binary); I get the following errors:
0
1422
by: chandan agarwal | last post by:
hi I have been given the task of building vc++ programs at the command line using make software. i have installed gnu make-3.81 version. i was able to build and run makefiles for turbo c++. but when i tried it for vc++ i faced a lot of problems. i found that vc++ has its own linker link and compiler cl. i am giving u a makefile tht was made for turbo c++. can u tell me what changes to i need to do make in it to make it run at the...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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
10214
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
10164
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
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
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
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.