O
Oktom Ben
i have a problem with mfc, after choosing something in the combo box
the edit box should update and show the text corresponding to the
combo box choice, but what happens is when i choose something from the
combo box nothing happens im new to mfc and so i need a little help
please, heres the code:
void CQuakeLaunchDlg::OnCloseupModtorun()
{
UpdateData(TRUE); //im not sure about this
CString modname; //combo box variable
m_strmod = modname;
if (modname == "ORIGINAL QUAKE")
m_cline = "qwcl.exe";
if (modname == "ZQUAKE")
m_cline = "zq-client-gl.exe";
if (modname == "TEAM FORTRESS")
m_cline = "zq-client-gl.exe -game fortress";
}
the edit box should update and show the text corresponding to the
combo box choice, but what happens is when i choose something from the
combo box nothing happens im new to mfc and so i need a little help
please, heres the code:
void CQuakeLaunchDlg::OnCloseupModtorun()
{
UpdateData(TRUE); //im not sure about this
CString modname; //combo box variable
m_strmod = modname;
if (modname == "ORIGINAL QUAKE")
m_cline = "qwcl.exe";
if (modname == "ZQUAKE")
m_cline = "zq-client-gl.exe";
if (modname == "TEAM FORTRESS")
m_cline = "zq-client-gl.exe -game fortress";
}