Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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 :-)