Click here to Skip to main content
15,909,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 3:54
David Crow19-Sep-03 3:54 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 4:03
b_girl19-Sep-03 4:03 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 4:07
David Crow19-Sep-03 4:07 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 4:11
b_girl19-Sep-03 4:11 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 4:26
David Crow19-Sep-03 4:26 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 4:35
b_girl19-Sep-03 4:35 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 5:52
David Crow19-Sep-03 5:52 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 5:17
b_girl19-Sep-03 5:17 
The file still doesn't contain any data after it's been written to. This is what I have:

class CMyDialog : public CDialog
{
private:
CStdioFile file;
};

BOOL CSetupModeless::OnInitDialog()
{
CDialog::OnInitDialog();

paramFileName = "inputParams.txt";
if((paramFile.Open(paramFileName, CFile::modeCreate | CFile::modeNoTruncate | CFile::modeReadWrite)) == 0)
AfxMessageBox("error opening paramFile");
}

void CSetupModeless::OnOK()
{
CString setupInput;
setupInput = setup->constructSetupInput();
AfxMessageBox(setupInput); //check to make sure string comes back with proper info
paramFile.WriteString(setupInput);
paramFile.Close();
}

Is there anything wrong with that??? constructSetupInput is just a function that returns the string that needs to be written to the file. The value of setupInput does come back correctly.
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 6:02
David Crow19-Sep-03 6:02 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 7:38
b_girl19-Sep-03 7:38 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 7:43
David Crow19-Sep-03 7:43 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl19-Sep-03 8:35
b_girl19-Sep-03 8:35 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow19-Sep-03 8:39
David Crow19-Sep-03 8:39 
GeneralRe: Multiple files used for input to SDI Application Pin
b_girl18-Sep-03 10:22
b_girl18-Sep-03 10:22 
GeneralRe: Multiple files used for input to SDI Application Pin
David Crow18-Sep-03 9:44
David Crow18-Sep-03 9:44 
GeneralOpenGL in a portion of a dialog box Pin
ComboController18-Sep-03 8:12
ComboController18-Sep-03 8:12 
GeneralRe: OpenGL in a portion of a dialog box Pin
Bugra Barin18-Sep-03 8:32
Bugra Barin18-Sep-03 8:32 
GeneralRe: OpenGL in a portion of a dialog box Pin
ComboController18-Sep-03 9:00
ComboController18-Sep-03 9:00 
GeneralRe: OpenGL in a portion of a dialog box Pin
Bugra Barin18-Sep-03 13:09
Bugra Barin18-Sep-03 13:09 
GeneralRe: OpenGL in a portion of a dialog box Pin
Roger Allen19-Sep-03 2:02
Roger Allen19-Sep-03 2:02 
GeneralRe: OpenGL in a portion of a dialog box Pin
MemLeak19-Sep-03 7:08
MemLeak19-Sep-03 7:08 
Questionwhere is main defined? Pin
Anonymous18-Sep-03 8:00
Anonymous18-Sep-03 8:00 
AnswerRe: where is main defined? Pin
Alvaro Mendez18-Sep-03 8:21
Alvaro Mendez18-Sep-03 8:21 
AnswerRe: where is main defined? Pin
John M. Drescher18-Sep-03 9:05
John M. Drescher18-Sep-03 9:05 
GeneralRe: where is main defined? Pin
Anonymous18-Sep-03 11:05
Anonymous18-Sep-03 11:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.