📄 001-005.html
字号:
<option value="/reference/dir.y2k1.html">Y2K
<option value="">-----------
<option value="/reference/whatsnew.html">New Titles
<option value="">-----------
<option value="/reference/dir.archive1.html">Free Archive
</SELECT>
</font></td>
</tr>
</table>
</form>
<!-- LEFT NAV SEARCH END -->
</td>
<!-- PUB PARTNERS END -->
<!-- END LEFT NAV -->
<td rowspan="8" align="right" valign="top"><img src="/images/iswbls.gif" width=1 height=400 alt="" border="0"></td>
<td><img src="/images/white.gif" width="5" height="1" alt="" border="0"></td>
<!-- end of ITK left NAV -->
<!-- begin main content -->
<td width="100%" valign="top" align="left">
<!-- END SUB HEADER -->
<!--Begin Content Column -->
<FONT FACE="Arial,Helvetica" SIZE="-1">
To access the contents, click the chapter and section titles.
</FONT>
<P>
<B>Essential Windows CE Application Programming</B>
<FONT SIZE="-1">
<BR>
<I>(Publisher: John Wiley & Sons, Inc.)</I>
<BR>
Author(s): Robert Burdick
<BR>
ISBN: 0471327476
<BR>
Publication Date: 03/01/99
</FONT>
<P>
<form name="Search" method="GET" action="http://search.earthweb.com/search97/search_redir.cgi">
<INPUT TYPE="hidden" NAME="Action" VALUE="Search">
<INPUT TYPE="hidden" NAME="SearchPage" VALUE="http://search.earthweb.com/search97/samples/forms/srchdemo.htm">
<INPUT TYPE="hidden" NAME="Collection" VALUE="ITK">
<INPUT TYPE="hidden" NAME="ResultTemplate" VALUE="itk-simple-intrabook.hts">
<INPUT TYPE="hidden" NAME="ViewTemplate" VALUE="view.hts">
<font face="arial, helvetica" size=2><b>Search this book:</b></font><br>
<INPUT NAME="queryText" size=50 VALUE=""> <input type="submit" name="submitbutton" value="Go!">
<INPUT type=hidden NAME="section_on" VALUE="on">
<INPUT type=hidden NAME="section" VALUE="http://www.itknowledge.com/reference/standard/0471327476/">
</form>
<!-- Empty Reference Subhead -->
<!--ISBN=0471327476//-->
<!--TITLE=Essential Windows CE Application Programming//-->
<!--AUTHOR=Robert Burdick//-->
<!--PUBLISHER=John Wiley & Sons, Inc.//-->
<!--IMPRINT=Wiley Computer Publishing//-->
<!--CHAPTER=1//-->
<!--PAGES=001-005//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ewtoc.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="005-007.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H2 ALIGN="CENTER"><FONT COLOR="#000077"><I>Part One<BR>Windows CE Application Programming Fundamentals
</I></FONT></H2>
<P><BIG><BIG>A</BIG></BIG> thorough understanding of Windows CE programming requires a firm grasp of the fundamentals. We therefore begin our exploration of Windows CE application programming with a discussion of the core Windows CE topics.</P>
<P>We start with a brief look at the overall architecture of the Windows CE operating system. We continue with the anatomy of a typical Windows CE application. Next, programming application building blocks such as Windows CE controls and dialog boxes are covered.</P>
<P>Part I continues with a look at how menus are included in Windows CE applications. We will see that this is very different from how menus are added to Windows 98 or Windows NT applications. The Windows CE command bar control is presented in this discussion. Part I closes with a description of programming Windows CE common controls.</P>
<P>After completing the chapters in Part I, you will have a solid understanding of the basic principles required to write more complex Windows CE application programming.</P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 1<BR>Getting Started with Windows CE
</FONT></H2>
<P><BIG><BIG>I</BIG></BIG>n this chapter we take a brief look at the architecture of the Windows CE operating system. We also discuss some of the software development tools available to help you write Windows CE applications.</P>
<H3><A NAME="Heading2"></A><FONT COLOR="#000077">What Is Windows CE?</FONT></H3>
<P>Windows CE is a compact, modular 32-bit operating system designed for use on devices with small memory requirements. Windows CE is very similar in design to its larger desktop cousin, Windows NT. Windows CE is a multitasking, multithreaded operating system like Windows NT. It includes most of the user interface features of Windows NT so that software developers can take advantage of most users’ familiarity with Windows applications.
</P>
<P>Storage on Windows CE devices is a combination of random access memory (RAM) and read-only memory (ROM). Devices can also include expansion flash memory storage cards for additional storage space. PCMCIA cards can be added to many devices, and Windows CE provides full support for such cards.</P>
<P>Since storage is all memory based, the contents of the Windows CE file system is stored in RAM. The operating system and all applications which ship with Windows CE devices are in ROM. The ROM software components are run in place, instead of being paged into RAM, so that they run faster.</P>
<P>Windows CE application programmers get a huge productivity boost because Windows CE is based on the Win32 API. This means that programmers who are familiar with programming for traditional Windows platforms like Windows NT can begin programming Windows CE applications with very little additional training. Certainly there are features that are unique to Windows CE. But understanding traditional Windows programming is a big advantage when moving to the Windows CE operating system.</P>
<P><FONT SIZE="+1"><B>Architectural Considerations</B></FONT></P>
<P>Windows CE consists of seven subsystems. Each of these subsystems is further broken down into smaller components. The GWE subsystem, for example, consists of smaller components including the window manager and the dialog manager. The seven Windows CE subsystems are:
</P>
<DL>
<DD><B>•</B> The kernel
<DD><B>•</B> The Graphics, Windowing, and Event Subsystem (GWES)
<DD><B>•</B> The object store (including the file system)
<DD><B>•</B> The OEM Adaptation Layer (OAL)
<DD><B>•</B> The device driver layer
<DD><B>•</B> The communication APIs
<DD><B>•</B> Custom shells and the Internet Explorer
</DL>
<P><FONT SIZE="+1"><B><I>The Kernel</I></B></FONT></P>
<P>The Windows CE kernel is similar to the kernel in Windows NT. It uses the same thread and process model as Windows NT. It supports the same file formats as Windows NT. Additionally, Windows CE uses a virtual memory model similar to Windows NT. You can write Windows CE applications that share memory across multiple processes using memory mapped files.
</P>
<P>The Windows CE kernel also implements the object manager. As is the case with Windows NT, windows, GDI objects such as brushes and bitmaps, files, and all other such objects are manipulated by applications through object handles. The handles, as well as the underlying objects they correspond to, are managed by the object manager.</P>
<P><FONT SIZE="+1"><B><I>The Graphics, Windowing, and Event Subsystem</I></B></FONT></P>
<P>Windows CE has combined the user and GDI components into one subsystem. This subsystem, the Graphics, Windowing, and Event Subsystem, is sometimes abbreviated as GWES, or even GWE.
</P>
<P>Windows CE behavior such as creating a window, painting a window, or loading a string resource is handled somewhere within the code of this subsystem. All of the Windows CE child controls, such as buttons, list boxes, and the like, are implemented in GWES.</P>
<P>GWES also contains the event manager. This is where the Windows CE messaging capabilities are implemented.</P>
<P><FONT SIZE="+1"><B><I>The Object Store</I></B></FONT></P>
<P>Random access memory in a Windows CE device is divided into two sections. The first is program memory. The other part contains the Windows CE object store. The object store contains the Windows CE file system and the registry. The object store also contains Windows CE databases such as the Contacts database and custom databases created by applications.
</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ewtoc.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="005-007.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<!-- all of the reference materials (books) have the footer and subfoot reveresed -->
<!-- reference_subfoot = footer -->
<!-- reference_footer = subfoot -->
<!-- BEGIN SUB FOOTER -->
<br><br>
</TD>
</TR>
</TABLE>
<table width="640" border=0 cellpadding=0 cellspacing=0>
<tr>
<td align="left" width=135><img src="/images/white.gif" width=100 height="1" alt="" border="0"></td>
<!-- END SUB FOOTER -->
<!-- all of the books have the footer and subfoot reveresed -->
<!-- reference_subfoot = footer -->
<!-- reference_footer = subfoot -->
<!-- FOOTER -->
<td width="515" align="left" bgcolor="#FFFFFF">
<font face="arial, helvetica" size="1"><b><a href="/products.html"><font color="#006666">Products</font></a> | <a href="/contactus.html"><font color="#006666">Contact Us</font></a> | <a href="/aboutus.html"><font color="#006666">About Us</font></a> | <a href="http://www.earthweb.com/corporate/privacy.html" target="_blank"><font color="#006666">Privacy</font></a> | <a href="http://www.itmarketer.com/" target="_blank"><font color="#006666">Ad Info</font></a> | <a href="/"><font color="#006666">Home</font></a></b>
<br><br>
Use of this site is subject to certain <a href="/agreement.html">Terms & Conditions</a>, <a href="/copyright.html">Copyright © 1996-1999 EarthWeb Inc.</a><br>
All rights reserved. Reproduction whole or in part in any form or medium without express written permision of EarthWeb is prohibited.</font><p>
</td>
</tr>
</table>
</BODY>
</HTML>
<!-- END FOOTER -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -