pb with replacing <fstream.h> by <fstream> 
Author Message
 pb with replacing <fstream.h> by <fstream>

I get the following error when replacing
#include <fstream.h> by <fstream> in my MFC application (VC++ 6.0).
I added the "using namespace std".

error C2678 : binary '<<' : no operator defined which takes a left-hand
operand of type 'class fstream' (or there is no acceptable conversion)

  Anybody has a clue?
I cannot reproduce the problem starting from a new application,
everything goes as well with <fstream.h> as with <fstream>, but I'm
trying to get my application ANSI compliant.



Sent via Deja.com http://www.*-*-*.com/
Before you buy.

Sat, 23 Nov 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. <<<<<<<Parsing help, please>>>>>>>>

2. File Format conversion, ascii freeform -->.csv <-->.wk1<-->dbf<-->?HELP

3. <<<>>>Need C code advice with functions and sorting.<<<>>>

4. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

5. <fstream.h> and <fstream> chaos

6. <fstream.h> or <fstream>

7. #include <fstream> or <fstream.h>?

8. <fstream> vs <fstream.h>

9. <<Replace View from CDialog>>

10. >>>Windows Service<<<

11. <fstream>

12. <fstream> and file sharing


Powered by phpBB® Forum Software