Hi all!
I'm trying to recreate an existing file (copy old file to a new file). I'm using CFileDialog class to do this. I'm stuck as I get an error.
nameoffile = NewFile.GetFileTitle ();
The line above gives me the error:
error C2440: '=' : cannot convert from 'class CString' to 'char [260]'
Does anyone know what I'm doing wrong. I would be most grateful for any tip, that puts me in the right direction. Thanks, from a beginner.
I'm trying to recreate an existing file (copy old file to a new file). I'm using CFileDialog class to do this. I'm stuck as I get an error.
nameoffile = NewFile.GetFileTitle ();
The line above gives me the error:
error C2440: '=' : cannot convert from 'class CString' to 'char [260]'
Does anyone know what I'm doing wrong. I would be most grateful for any tip, that puts me in the right direction. Thanks, from a beginner.