March 16, 2002
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


March 16, 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