Windows CE Development

Source: Internet
Author: User

There are some Windows CE development portals on the InternetArticleBut I am dizzy, so I decided to write my own learning process ~

1. A brief introduction to Windows CE: (from Baidu encyclopedia)
WindowsCE is the foundation of Microsoft's embedded and mobile computing platforms. It is an open and upgradeable 32-bit embedded operating system, and is an electronic device operating system based on a head-mounted computer, it is a streamlined Windows 95, and the Windows CE graphic user interface is excellent.
C In Ce represents compact, consumer, connectivit, companion, and electronics ). Unlike Windows 95/98 and Windows NT, Windows CE isSource codeAll of the new embedded operating systems developed by Microsoft, whose operating interface comes from Windows 95/98, Windows CE is a platform for redevelopment and new information devices based on Win32 APIs. Windows CE is modular, structured, and Win32-based.ProgramInterfaces and features unrelated to processors. Windows CE not only inherits the traditional Windows graphical interface, but also can use programming tools (such as Visual Basic and Visual C ++) on Windows CE platform on Windows 95/98) using the same functions and interface style, the vast majority of applications can be used on the Windows CE platform simply by modifying and porting them. Windows CE is not designed for a single device. Therefore, Microsoft has roughly divided its products using Windows CE into three product lines: Pocket PC (handheld computer) and handheld PC (handheld device) and auto PC.

2. Now the question is how to start developing a Windows CE Application -- Building a Development Environment
2.1 select development tools
I chose evc4 (Embedded Visual C ++ 4.0) as a development tool, because evc4 is very similar to VC 6.0, easy to use, and very small compared with VS 2005.

Software Download:
Evc4: http://www.microsoft.com/downloa... & displaylang = en
Evc4 SP4: http://www.microsoft.com/downloa... & displaylang = en
Windows Mobile 5.0 Pocket pc sdk: http://www.microsoft.com/downloa... & displaylang = en
Localized Windows Mobile 5.0 Pocket PC emulator images: http://www.microsoft.com/downloa... & displaylang = en

After the download is complete, install the four software in this order, and the development environment will be OK. You can write a hello World test.

3. The first test procedure
3.1 create a project
Open evc4, file --> New, create a "wce application" project, fill in the project name and location, and select the CPU type.
I only run this program in the simulator, so I only select Win32 (wce x86)
Note: No matter which CPU is selected, Win32 (wce emulator) is required.

Click OK to go to the next step, and select "An Empty Project" to create an empty project (no additionalCode)
How is it like creating a project in VC 6.0 ~

3.2 program writing
File --> New: Create a new C/C ++ source file (that is, C/C ++ source file), and enter the file name hello, then the hello. enter the following code in the CPP file:
// Hello. cpp-a sample "Hello World" program.

# Include <windows. h>

// Program entry point

Int winapi winmain (hinstance, hinstance hprevinstance, lpwstr lpcmdline, int nshowcmd)
{
MessageBox (null, text ("Hello world! "), Text (" hello "), mb_ OK );

Return 0;
}

Press F7 to compile the program. If there is no error, press Ctrl + F5 to execute the program. The program execution result is displayed in the simulator. For example:

4. Summary
This article briefly introduces Windows CE, teaches you how to build a development environment, and finally writes a hello World Program. With these foundations, we can start to learn about Windows CE program development.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.