March 16, 2002 fstream.h | ||||
---|---|---|---|---|
| ||||
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 Re: fstream.h | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve & Denise De Chellis | 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
|
Copyright © 1999-2021 by the D Language Foundation