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

前端 未结 2 1086
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?

    0 讨论(0)
  • 2020-12-04 03:53

    Does the target device have the MFC runtimes on it? They also have to be the ones your app is built for. Be aware that eVC 4.0 used mfcce400.dll, which did not ship with Platform Builder 6.0 at all (in fact IIRC MFC isn't even in the CE 6.0 OS catalog and Studio '08 used a newer MFC version for devices). You'll have to distribute the mfcce400 binaries (they're in the eVC SDKs) along with your app.

    0 讨论(0)
提交回复
热议问题