I would appreciate if anyone here can give me ideas on how to resolve following problem:
I have an MFC based tester app that runs from a SD Card. This was created using WinCE MFC exe wizard. I override the WindowProc of CMainFrame class and in it I listen to SD removal message (message = WM_DEVICECHANGE, wParam = DBT_DEVICEREMOVECOMPLETE). When I get this message I simply call PostQuitMessage(0). This is where the app hangs.
When I do the same in non MFC based application. In other words a regular WinMain type app, I can successfully exit the app.
Thank you very much for your time :-)