Link to home
Start Free TrialLog in
Avatar of jdn
jdn

asked on

MFC C++ file I/O using CStdioFile text file

This should be easy for anyone knowing MFC and C++ (not me)
I've created a dialog box application using MFC which just opens a CStdioFile text file for output, prompts for data and writes the data to the file.

I've created a class based on CStdioFile and open the file in the main module.
When I try to reference that class in my dialogbox module I get an undeclared variable compiler error.
The dialog box code doesn't know about the class that was declared in the main routine.  The sample code Microsoft provides is something short of helpful (along with the 3 C++ books I've bought.)
Esto mi hode.
 
ASKER CERTIFIED SOLUTION
Avatar of gaohong
gaohong

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial