c++.windows.32-bits - fstream.h
- Steve & Denise De Chellis (5/5) Mar 15 2002 I have a problem...
- Jan Knepper (5/10) Mar 15 2002 1. Use source files with the .cpp extension so the compiler treats th...
I have a problem... If I use fstream.h I have to compile the code with the 'treat source code as C++' switch on. This then causes the compiler to consider all my Dialogbox functions to be incorrect. How do I do file i/o ???? Steve De Chellis
Mar 15 2002
1. Use source files with the .cpp extension so the compiler treats them as C++. 2. Declare your DialogBox functions as extern "C" so they are actually C-style functions in a C++ file. Steve & Denise De Chellis wrote:I have a problem... If I use fstream.h I have to compile the code with the 'treat source code as C++' switch on. This then causes the compiler to consider all my Dialogbox functions to be incorrect. How do I do file i/o ???? Steve De Chellis
Mar 15 2002