www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - fstream.h

reply "Steve & Denise De Chellis" <dbouton snet.net> writes:
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
parent Jan Knepper <jan smartsoft.cc> writes:
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