473,698 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COMPILER ERROR VC++ 2003.net

I am working with a program which was developed using VC++ 6.0 few years ago.
Now I am modifying par of the code and compile it using VC++ 2003 .net. In
the beginning I had a lot of problems with the fstream file reading, which I
solved by inserting the old fstream.h file in the project. However, when I
tried to compile the program it gave me an error "fatal error C1001: INTERNAL
COMPILER ERROR". When I checked Microsoft website they state that this is an
error and the have a hotfix for it but this should be for the standard
version, and I am using professional version!! Any advice on how to solve
this problem and get rid if this error? Also, any advise on how to fix the
fstream problem in a professionally way than adding the .h file to the
project?

Thanks,
Dec 14 '05 #1
2 1251

"mohmo" <mo***@discussi ons.microsoft.c om> wrote in message
news:80******** *************** ***********@mic rosoft.com...
I am working with a program which was developed using VC++ 6.0 few years
ago.
Now I am modifying par of the code and compile it using VC++ 2003 .net.
In
the beginning I had a lot of problems with the fstream file reading, which
I
solved by inserting the old fstream.h file in the project. However, when
I
tried to compile the program it gave me an error "fatal error C1001:
INTERNAL
COMPILER ERROR". When I checked Microsoft website they state that this is
an
error and the have a hotfix for it but this should be for the standard
version, and I am using professional version!! Any advice on how to solve
this problem and get rid if this error? Also, any advise on how to fix the
fstream problem in a professionally way than adding the .h file to the
project?

Thanks,


Have you tried using #include <fstream> ?
That's the standard version that comes with VC++ 7.1.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Dec 15 '05 #2
I did try to use the #include <fstream> however, that did not work well for
me as it would require to update a lot of files definitions.

"pvdg42" wrote:

"mohmo" <mo***@discussi ons.microsoft.c om> wrote in message
news:80******** *************** ***********@mic rosoft.com...
I am working with a program which was developed using VC++ 6.0 few years
ago.
Now I am modifying par of the code and compile it using VC++ 2003 .net.
In
the beginning I had a lot of problems with the fstream file reading, which
I
solved by inserting the old fstream.h file in the project. However, when
I
tried to compile the program it gave me an error "fatal error C1001:
INTERNAL
COMPILER ERROR". When I checked Microsoft website they state that this is
an
error and the have a hotfix for it but this should be for the standard
version, and I am using professional version!! Any advice on how to solve
this problem and get rid if this error? Also, any advise on how to fix the
fstream problem in a professionally way than adding the .h file to the
project?

Thanks,


Have you tried using #include <fstream> ?
That's the standard version that comes with VC++ 7.1.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.

Dec 20 '05 #3

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

Similar topics

2
8246
by: | last post by:
I first thought I had some compiler setting wrong in VC# 2003 but it turns out that it has something to do with .NET framework v1.1 itself. If I understand correctly, .NET installer also installs a csc.exe C# compiler. And VC# 2003 is using this csc.exe compiler. Uninstalled an reinstalled both the .NET v1.0 and v1.1 framework multiple times now. I also repaired, uninstalled and installed VC# 2002 and 2003 and the full trial version, no...
5
3834
by: Mark | last post by:
The following code works with gnu compilers (ISO compliant declaration of the variable "i") void foo() { for (int i = 0; i < length; i++) { loop code.... } for (int i = 0; i < length; i++) {
0
3141
by: Vijay Chegu | last post by:
Hi All, I am trying to port a perfectly working 32bit COM module developed in VC++ from 64bit. I am not able to generate .tlb file through midl compiler. I set the property thru the following. Property Pages->midl->output->Generate Type Library : Yes
1
1774
by: John Madsen | last post by:
This bug is easier to just show than to explain I think... namespace M { template <class T> struct A { void f(int a = T::foo()) { } // line 5 }; } namespace N { struct B {
1
4059
by: Irakli Lomidze | last post by:
Internal Compiler Error VS.NET 2003 Enterprise Architect Windowx XP SP1 RAM 1GB Free DiskSpacs 20GB
0
1981
by: Ganapathy | last post by:
I have COM dll code written in VC 6.0. When i tried compiling this code in VC 7, The MIDL cmpiler gets called twice. i.e. it initially compiles fully & immediately a line - 64 bit processing' comes, followed by the 64 bit compilation of the IDl file. The comlpilation goes thro' the full stage and then the StdAfx.cpp is compiled. I have another similar VC 6 COM dll code that gets compiled without invoking the 64 bit processing of the...
9
4649
by: Stuart Carnie | last post by:
Due to the tightening of the VC++ compiler in 2005, I have run into a compiler error (from code that previously worked in 2003) using a CComPtr<ITypeLib> as an element of a std::list, as follows std::list<CComPtr<ITypeLib> >. I understand the problem, so am looking for the correct solution to my problem. On the line that attempts to call push_back, I receive "error C2664: 'std::allocator<_Ty>::construct' : cannot convert parameter 1...
8
1639
by: STG | last post by:
Greetings, My group has an SDK that was developed 5 years ago with VC++ 6. Over the last years, the requests for a VS.NET SDK has reached critical mass and I am now in the process of doing that. Actually, the first release of this 'port' is be a simple rebuild of the unmanaged C++ SDK in VS.NET. I have done this part already, using VS.NET 2003.
0
1261
by: bijtaj | last post by:
Hi, Is there a log file generated when there are VC# 2003 compiler errors? I see that VC++ 2003 generates a BuildLog.htm and the old VC6.0 used to generate a .plg file. Does VC# 2003 projects generate an equivalent compiler error log file? I can't seem to find it. Thanks, - bt
0
8673
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
8601
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
9021
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
8892
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
8860
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
6518
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
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.