Writing Code for Multiple Devices and Versions
Many types device platforms are based on the Windows CE operating system. These range from Windows Mobile–based devices, to factory automation controllers. Using conditional compilation, or runtime platform and version checking, you can write code that targets a broad range of platforms, and it will still be able to take advantage of the particular capabilities and conventions of each platform. These techniques even allow you to share Windows Mobile code with desktop versions of your application.
In this Section
- Conditional Compilation
Describes how you can use conditional compilation to include or exclude certain portions of code, depending on which platform you are targeting at compile time. - How to: Implement Runtime Platform and Version Checking
Details how to use the Windows CE GetVersionEx function and the Windows CE OSVERSIONINFO structure to implement runtime platform version checking. - Runtime Platform and Version Checking
Describes the concepts behind platform and version checking at runtime.
Send Feedback on this topic to the authors