Hi, I'm trying to create a little program, wich basicaly reads a file. I already have written some code in the serializing-fuction, wich reads the data. I now would like to add a progress bar and some info-text in my window (CFormView). I don't know how to get data from the doc class to the view class. Has it something to do with messages? I'm new at all of this stuff, so its very confusing... Thank's in advance!
Plons
Posts
-
doc/view ??? -
Open Dialog problemThx a lot! I did indeed forgot to declare it, stupid me :-O
-
Open Dialog problemHi, I'm having a problem opening a file. GetFileName() doesn't seem to give me a name. If I open a file, the dialog appears, I select a file and my code returns a blank message box and then a messagebox with no error happened. I'm kinda new to all this MFC stuff (and my C++ skill isn't that good) so I really don't know what's wrong. :confused: if( FileDlg().DoModal() == IDOK ) { CFileException ex; if( f.Open(FileDlg().GetFileName(), CFile::modeRead) == FALSE ) { AfxMessageBox(FileDlg().GetFileName()); TCHAR szError[1024]; ex.GetErrorMessage(szError, 1024); AfxMessageBox(szError); return; } AfxMessageBox("OK"); CArchive test(&f, CArchive::load); CLoader2Doc::Serialize(test); } else return; f.Close();