C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 22nd, 2003, 05:12 PM
7stud 7stud is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2001
Posts: 1,327 7stud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 44 m 50 sec
Reputation Power: 9
fixing corrupted <iostream> header file?

I was using the debugger in VC6 and I stepped into the <iostream> header file and somehow the header file must have gotten corrupted, because now when I try to compile a simple Hello World program, I get 102 errors.

When I click on the first error to take me to the line of code where it's occuring, a new file opens up called

c:\...\Vc98\Include\Ostream

and in that file are a few lines of code that I was working on, not what should be in there.

Can anyone paste the contents of the Ostream file in a reply, so I can copy and paste it back into that file. I noticed that in the Include folder there are two files called Ostream and Ostream.h. Apparently, my problem is in the Ostream file. If it helps you find the file on your computer, the full path on my computer is:

C:\Program Files\C++Microsoft Visual Studio\Vc98\Include\Ostream

Or, should I just reinstall everything?

Thanks.

Last edited by 7stud : April 22nd, 2003 at 05:50 PM.

Reply With Quote
  #2  
Old April 22nd, 2003, 06:33 PM
tOeJaM tOeJaM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: United States
Posts: 46 tOeJaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 55 sec
Reputation Power: 6
Post

hope this helps!
Attached Files
File Type: zip ostream.zip (2.3 KB, 243 views)

Reply With Quote
  #3  
Old April 22nd, 2003, 08:37 PM
7stud 7stud is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2001
Posts: 1,327 7stud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 44 m 50 sec
Reputation Power: 9
tOeJaM,

Thanks a lot. It works on a Hello World program. I hope it works on others! What version of VC6 do you have? I have the Professional Edition, and I'm wondering if I'm going to encounter any future problems.

Reply With Quote
  #4  
Old April 23rd, 2003, 09:30 AM
tOeJaM tOeJaM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: United States
Posts: 46 tOeJaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 55 sec
Reputation Power: 6
7stud,

I have Professional. Let me know if you run into any problems with it. Glad it's working for you.

I sent this to you in exchange for a lifetime supply of Q&A. I'll start sending my Q's soon. Hopefully you'll honor your end of the deal. j/k

Reply With Quote
  #5  
Old April 23rd, 2003, 01:24 PM
7stud 7stud is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2001
Posts: 1,327 7stud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 44 m 50 sec
Reputation Power: 9
Thanks for the help. Everything seems fine. All questions need to be from the first 4 chapters of a beginning C++ book.

Reply With Quote
  #6  
Old April 23rd, 2003, 01:51 PM
tOeJaM tOeJaM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: United States
Posts: 46 tOeJaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 55 sec
Reputation Power: 6
Which one? I'm reading the TY C++ in 21 Days by Jessie Liberty. Currently on day 2, I hope to cover 2 days 2nite. It's a little hard though w/ my current project schedule to find time.

Reply With Quote
  #7  
Old April 23rd, 2003, 08:39 PM
7stud 7stud is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2001
Posts: 1,327 7stud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 44 m 50 sec
Reputation Power: 9
Well, that's the book I first tried to learn C++ with, but when I got to around chapter 8, I threw it in the trash. In my opinion, Jesse Liberty is incompetent. However, with access to a good forum like this, I'm sure you'll be able to work your way through any questions you have. I don't think these types of forums existed when I was trying to learn C++, or maybe I just didn't know about them.

Good luck.

Reply With Quote
  #8  
Old April 23rd, 2003, 09:41 PM
tOeJaM tOeJaM is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: United States
Posts: 46 tOeJaM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 55 sec
Reputation Power: 6
Interesting. sorry to hear that, I was hoping this would be a good cheap refresher book. Oh well, it's been good to me so far but chapters/days 2-4 are pretty unnecessary for my needs. Looks like 5 might not be necessary either but I'll give it a quick read tomorrow. It is good to have a health forum you can count on when you need queries answered.

L8r man

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > fixing corrupted <iostream> header file?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT