Why simple console app runs but dialog based does not run in WIN CE 6.0?
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.
VS2005 and Windows CE 6.0 Debugging
Have you installed a CE 6.0 SDK? I think that's your missing piece. You can circumvent the error you're seeing with a 5.0 target by manually copying the indicated resource CAB to the device and running it before deploying your app.
EDIT
The SDK, generally speaking, would come from the device OEM. If, for some reason, you can't get an SDK from the OEM then you can install any SDK targeting the same processor and it will work. Bear in mind that the SDK can "filter" out libs and headers, so if you have a trimmed-down SDK, then you may not have some of the headers and libs you want (though you can always dynamically load the functions you need). Likewise, if the target device doesn't have a feature that's in your SDK, you may be able to build and link and app that won't run on the device. If the device has custom API (for I/O or whatever) that typically comes with their SDK, then those would also be missing if you use a different SDK. Still, it's better than nothing.
Myself, I have a couple SDKs that I build for x86 and ARM that just have pretty much the kitchen sink thrown in. I just install and use those SDKs for most device development.
After hiding dialog based app on windows mobile platform, user cannot activate it anymore
Well, I finally figured it out. I had turned off Title bar
, therefore task manager didnt show my app, because it didnt have any window.
But after launching app, it has title at taskbar and titlebar. To remove title bar & border, I left these options:
- [OK] Title Bar
- Border - thin
In code I did this:
BOOL MyDlg::OnInitDialog()
{
...
ModifyStyle(WS_BORDER, 0, SWP_FRAMECHANGED);
MoveWindow(...);
}
Now my application has window - it is visible in task manager, and also I am using as much space as possible.
How to create a Minimize button in WinCE dialog based application
This is becasue WIndows Mobile doesn't really have the concept of minimizing and app to the task bar (as there is no task bar).
WinMo has "smart minimize" meaning which means that the Windows doesn't close, but instead moves back in the Z-Order, yes is still subject to closing by the OS if memory pressure gets high.
If you set the WS_MINIMIZEBOX style bit, you will get an (X) in the upper right, which is the smart-minimize button. If that bit is not set you will get an (ok) button, which fully closes the window.
Related Topics
Std::Filesystem' Has Not Been Declared After Including <Experimental/Filesystem>
Boost::Spirit::Qi Parser: Index of Parsed Element
Inheriting and Overriding Functions of a Std::String
Error: 'I' Does Not Name a Type with Auto
Vector.Erase(Iterator) Causes Bad Memory Access
How to Create a Http Mjpeg Streaming Server with Qtcp-Server Sockets
Simple String Parsing with C++
Delete Pointer to Multidimensional Array in Class Through Another Pointer - How
Is There Any Danger in Calling Free() or Delete Instead of Delete[]
Generate a Plane with Triangle Strips
How to Test Whether Class B Is Derived from Template Family of Classes
Boost C++ Regex - How to Get Multiple Matches
Regarding C++ Include Another Class