Hi Iam am new too vc++ .net and would like to click a dialog button
and grab the contents of an edit box and put them in a text file.
the edit box name is IDC_Edit1
Here is some example code
void Capp1Dlg::OnBnClickedButton1()
{
ofstream examplefile ("example.txt",ios::app);
if (examplefile.is_open())
{
examplefile <<contents of edit box here
examplefile.close();
}
and grab the contents of an edit box and put them in a text file.
the edit box name is IDC_Edit1
Here is some example code
void Capp1Dlg::OnBnClickedButton1()
{
ofstream examplefile ("example.txt",ios::app);
if (examplefile.is_open())
{
examplefile <<contents of edit box here
examplefile.close();
}