Why simple console app runs but dialog based does not run in WIN CE 6.0?

前端 未结 2 1100
Happy的楠姐
Happy的楠姐 2020-12-04 03:48

I am developing an application for Windows CE 6.0 in embedded Visual C++ 4.

I created a simple console application (WCE Application) with platform \"Pocket PC 2003\"

2条回答
  •  广开言路
    2020-12-04 03:52

    My C++ is very rusty, but you still have to initialize your controls.

    CFffffDlg dlg = new CFffffDlg(); // << Initialize the dlg
    m_pMainWnd = &dlg;
    int nResponse = dlg.DoModal();
    if (nResponse == IDOK)
    

    Right? Is that all you need?

提交回复
热议问题