// cstm1dlg.cpp : implementation file // #include "stdafx.h" #include "OmnetppWizard.h" #include "cstm1dlg.h" #include "OmnetppWizardaw.h" #include "EditComp.h" #ifdef _PSEUDO_DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CCustom1Dlg dialog CCustom1Dlg::CCustom1Dlg() : CAppWizStepDlg(CCustom1Dlg::IDD) { //{{AFX_DATA_INIT(CCustom1Dlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CCustom1Dlg::DoDataExchange(CDataExchange* pDX) { CAppWizStepDlg::DoDataExchange(pDX); //{{AFX_DATA_MAP(CCustom1Dlg) DDX_Control(pDX, IDC_DESCRIPTION, m_Description); DDX_Control(pDX, IDC_COMP_LIST, m_CompList); //}}AFX_DATA_MAP // m_Description.SetWindowText(projectDescription); m_Description.SetLimitText(PROJ_DESC_L); } // This is called whenever the user presses Next, Back, or Finish with this step // present. Do all validation & data exchange from the dialog in this function. BOOL CCustom1Dlg::OnDismiss() { if (!UpdateData(TRUE)) return FALSE; // TODO: Set template variables based on the dialog's data. int i,j,k; char nameStr[COMP_NAME_L+4]; char tmp[PROJ_DESC_L+1]; /* Get project descriotion */ m_Description.GetWindowText(tmp, PROJ_DESC_L); for(i=0,j=0; j