⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 357-361.html

📁 WindowsCE.[Essential Windows CE Application Programming].Jon Wiley & Son.zip
💻 HTML
📖 第 1 页 / 共 2 页
字号:
			<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="">&nbsp;<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=14//-->
<!--PAGES=357-361//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->

<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch13/353-356.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="361-363.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H2 ALIGN="CENTER"><FONT COLOR="#000077"><I>Part Four<BR>Desktop Connectivity and Memory Issues
</I></FONT></H2>
<P><BIG><BIG>O</BIG></BIG>ne of the most useful features of Windows CE-based products is their ability to share data with a desktop computer. The success of many PC companion products on the market today owes much to this feature.</P>
<P>As the market for Windows CE-based devices continues to grow, the importance of desktop connectivity will grow as well. Doctors might collect patient data in hospital rooms with mobile diagnostic devices. Laboratory researchers will collect experimental data in electronic lab books. And all of this information will end up in large databases where powerful desktop computers perform complex analysis.</P>
<P>Part IV of this book introduces Windows CE desktop connectivity. We cover Microsoft&#146;s ActiveSync technology, and describe how to program the service providers necessary for synchronizing application data between Windows CE devices and desktop computers.</P>
<P>Next we discuss how to write file filters for transferring files and converting data between Windows CE and desktop computing platforms. We also discuss the Remote Application Programming Interface (RAPI), which allows desktop PC applications to access data or execute functions and applications on a Windows CE device.</P>
<P>Finally, we introduce Windows CE memory and power management in Chapter 16.</P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 14<BR>Windows CE Data Synchronization
</FONT></H2>
<P><BIG><BIG>S</BIG></BIG>o far in this book, we have explored many of the features of Windows CE that allow you to create applications for a variety of uses. We have discussed how to design and implement user interfaces for such applications. We have also covered the various persistent storage options provided by Windows CE so that your applications can store information on the device for later use.</P>
<P>You could easily put this book down now and be well equipped to tackle many different Windows CE programming tasks. As long as your software users only needed to access their data on their Windows CE devices, everything would be fine. But this is not a realistic expectation.</P>
<P>The real power and advantage of Windows CE is that it provides ways for users to share data between a mobile device and a desktop computer. A user can enter data on the desktop and then transfer it to a Windows CE-based device. Likewise, data on a mobile device can be transferred to the desktop PC. This allows users to back up Windows CE application data to a PC.</P>
<P>The term <I>PC companion</I> came about because most users treat Windows CE-based devices such as Handheld PCs and Palm-size PCs as tools for carrying small subsets of the vast amounts of data on their desktop computers.</P>
<P>A typical user may maintain all of the contact information for friends and business associates in an application like Microsoft Outlook. The user may access contact information from his desktop computer while he&#146;s sitting right in front of it. But while away from the office, in meetings, or on the road, the user looks up information on the same business contacts on his Handheld PC using Pocket Outlook.</P>
<P>For this to be possible, the desktop computer must be able to transfer data from the contacts database on the desktop to the corresponding database on the Windows CE device. And once our user returns from an important business meeting, he must be able to transfer the contact information added on the Handheld PC to his desktop computer.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>AFTER COMPLETING THIS CHAPTER YOU WILL KNOW HOW TO &#133;</B>
<DL>
<DD><B>Write ActiveSync desktop service providers</B>
<DD><B>Write ActiveSync device service providers</B>
</DL>
<HR></FONT>
</BLOCKQUOTE>
<H3><A NAME="Heading2"></A><FONT COLOR="#000077">The Sample Code</FONT></H3>
<P>For this chapter, probably more than any other chapter in this book, the complete programming example will help solidify the concepts discussed. To illustrate the nuances of ActiveSync programming, we revisit the phone list application introduced back in Chapter 7. This application was first presented to demonstrate Windows CE database programming. It returns in this chapter along with a desktop PC version and complete desktop and device ActiveSync service providers. You can therefore enter, delete, and modify entries on either the PC or a Windows CE device and synchronize the data stores of the two applications.
</P>

<TABLE BORDER="2" BORDERCOLOR="#0000" ALIGN="CENTER">
<TR><TD><FONT SIZE="+1"><B>Some Brief Caveats</B></FONT>
<P>Windows CE data synchronization is a large subject. An entire book could, and probably should, be dedicated to this subject. This chapter will cover the major aspects of writing Windows CE ActiveSync service providers. Covering every detail of data synchronization is impractical for a book of this size. It is expected that the accompanying sample application and service provider code, as well as the Microsoft on-line documentation, will be used to supplement your understanding of the subject.
</P>
</TABLE>

<P>The companion CD contains a directory called \Samples\datasync\ PhoneApp. This directory contains a Microsoft Developer Studio workspace called PHONEAPP.DSW. This workspace contains five projects:
</P>
<DL>
<DD><B>DeskApp.</B> Builds the desktop version of the phone list database application.
<DD><B>DeskSync.</B> Builds the desktop ActiveSync service provider.
<DD><B>DevSetup.</B> Builds a device application for registering the device service provider. Run this application to register the device service provider.
<DD><B>DevApp.</B> Builds the device version of the phone list application.
<DD><B>DevSync.</B> Builds the device ActiveSync service provider.
</DL>
<P>You will also find the registry file PHONEDESK.REG, which creates all of the registry subkeys and sets the necessary values to register the desktop service provider.
</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch13/353-356.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="361-363.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>&nbsp;|&nbsp; <a href="/contactus.html"><font color="#006666">Contact Us</font></a>&nbsp;|&nbsp; <a href="/aboutus.html"><font color="#006666">About Us</font></a>&nbsp;|&nbsp; <a href="http://www.earthweb.com/corporate/privacy.html" target="_blank"><font color="#006666">Privacy</font></a> &nbsp;|&nbsp; <a href="http://www.itmarketer.com/" target="_blank"><font color="#006666">Ad Info</font></a> &nbsp;|&nbsp; <a href="/"><font color="#006666">Home</font></a></b>
		<br><br>
		
		Use of this site is subject to certain <a href="/agreement.html">Terms &amp; Conditions</a>, <a href="/copyright.html">Copyright &copy; 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 + -