Using MSVC++ 6.0
I created a class and populated it. Let's call it myclass. Once it gets populated I want to write this class to a file. I opened the file using CFile and the type of file that I want to send it to is binary. Lets call the opened file infile. I used the following command to write the class to the file:
I get the following error when I try to compile the program:
C:\ARDSAVEN\ARDSAVENDlg.cpp(348) : error C2440: 'type cast' : cannot convert from 'class adrasaven' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
ARDSAVEN.exe - 1 error(s), 0 warning(s)
What is the proper command that I may use to write the class to a file????