Passing Parameters in Visual C++
Hi I am trying to create a Visual C++ porgram, my first one, just trying to get to know it really, I have a form and on that for is a combo box and an edit control and a browse button, could someone help me as I am asking for a in put file from the combo box and the output file from the browse button, ghow would I get the parameters to the ok button where I will do my final piece of coding?
Don't know if code is necessary but here is some anyway:
Code:
void CVisTestDlg::OnDropdownCombo1()
{
CComboBox* getFile = (CComboBox*)GetDlgItem(IDC_COMBO1);
getFile->ResetContent();
getFile->Dir(DDL_DRIVES | DDL_READONLY | DDL_EXCLUSIVE, "C:\\*.*");
// TODO: Add your control notification handler code here
}
void CVisTestDlg::OnButton1()
{
CString fileName;
CFileDialog saveas(false, ".zip", "Thingy in a file");
saveas.DoModal();
fileName = saveas.GetPathName();
// TODO: Add your control notification handler code here
}
void CVisTestDlg::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
Thanks people.
Ben.