For the first time I have used the appwizard in MFC to create a Dialog based app. Now I'm trying to do some ifstream stuff... as follows:
test >> name;
And I get the error:
error C2678: binary '>>' : no operator defined which takes a left-hand operand of type 'class ifstream' (or there is no acceptable conversion)
I have added the #include <fstream.h> and/or #include <fstream> statements but always get some sort of error. Could someone help me? I have done this in other projects and they usually work. I have done so much with this project to have something like this keep me back!
Try to avoid mixing object libraries.......use a CFile in substitute for the ifstream