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

📄 409-412.html

📁 WindowsCE.[Essential Windows CE Application Programming].Jon Wiley & Son.zip
💻 HTML
📖 第 1 页 / 共 2 页
字号:
			<option value="/reference/dir.productivityapplications1.html">Prod Apps
			<option value="/reference/dir.programminglanguages.html">Programming
			<option value="/reference/dir.security1.html">Security	
			<!-- <option value="/reference/dir.ewtraining1.html">Training Guides -->
			<option value="/reference/dir.userinterfaces.html">UI
			<option value="/reference/dir.webservices.html">Web Services
			<option value="/reference/dir.webmasterskills1.html">Webmaster
			<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="">&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=15//-->
<!--PAGES=409-412//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->

<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="405-409.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="412-415.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P>DLLSAMP.DLL can be built from the project files included on the companion CD under \Samples\dllsamp. The Invoke Function option of the application&#146;s Remote menu invokes this feature.
</P>
<H3><A NAME="Heading5"></A><FONT COLOR="#000077">Windows CE File Filters</FONT></H3>
<P>With ActiveSync technology, programmers can transfer data between the Window CE device and desktop PC versions of their applications. In the previous chapter, for example, we wrote ActiveSync service providers enabling the phone list database applications on the desktop and Windows CE device to share phone list entries.
</P>
<P>There are often times when you want to transfer entire files between a PC and a Windows CE device. For instance, you will want to transfer applications or dynamic link libraries that you have built on the desktop to the devices on which they are meant to run. Or you may want to copy data files used by an application from one platform for use by the counterpart application on the other platform.</P>
<P><I>File filters</I>, or <I>file converters</I>, are desktop COM components that convert files from one platform format to another. Whenever you drag a file from Windows NT Explorer to a Mobile Devices folder, Windows CE applies the filter registered for converting the file from the desktop to the device file format. Similarly, transferring files from a connected Windows CE device to a desktop computer invokes the appropriate filters for converting the device format files to the format used on the desktop PC. Figure 15.2 shows the file transfer dialog, invoked when files are copied between a desktop computer and a connected Windows CE device.</P>
<P><A NAME="Fig2"></A><A HREF="javascript:displayWindow('images/15-02.jpg',412,293 )"><IMG SRC="images/15-02t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/15-02.jpg',412,293)"><FONT COLOR="#000077"><B>Figure 15.2</B></FONT></A>&nbsp;&nbsp;The file transfer dialog.</P>
<P>Programmers can implement two types of Windows CE file filters. An <I>import file filter</I> performs file conversion on a file copied from a desktop computer to a Windows CE device. An <I>export file filter</I> converts a file copied from the device to the desktop computer.</P>
<P>One more definition is in order. A file being copied is sometimes called a <I>source file</I>. A filtered version of a source file that is created on the destination platform is called a <I>destination file</I>.</P>
<H3><A NAME="Heading6"></A><FONT COLOR="#000077">The Sample File Filters</FONT></H3>
<P>The companion CD includes a project for building two sample Windows CE file filters. The files can be found in the directory \Samples\filter.
</P>
<P>This project implements a COM in-process server DLL called FILTER.DLL. It implements two COM objects, CImportFilter and CExportFilter, both of which are derived from ICeFileFilter. CImportFilter transfers files with the .flt extension to an attached Windows CE device, where they are given the .pft extension. CExportFilter transfers .pft files from the device to the desktop, where they are given the .flt extension.</P>
<P>Although the import and export functionality could be implemented with one filter object, I chose to implement separate COM objects for each.</P>
<P>Both the .flt and .pft file types are simply text files. You can create any text file on the desktop, give it the .flt extension, and drag it to an attached Windows CE device to invoke CImportFilter. Similarly, you can create any text file on the device and give it the .pft extension. Copying it to the desktop by dragging it from the Mobile Device folder into Windows NT Explorer will invoke CExportFilter.</P>
<P>The file filters implemented by this sample are pretty boring. They simply copy a file from one platform to the other. But you can use the code as a starting point for any other file filter. All that needs to be changed is the file conversion method <I>NextConvertFile</I>.</P>
<P>The \Samples\filter directory also include two registry files, IMFILTER.REG, which will register the import file filter, and EXFILTER .REG, which registers the export filter.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B><B><SMALL>CHANGE THE</SMALL> P<SMALL>ARTNER</SMALL> I<SMALL>DENTIFIER IN</SMALL> FILTER.REG</B>
<P><B>The FILTER.REG file registers the sample file filters quite well on my computer. You must change the partner ID in the registry keys to your own Windows CE device partnership ID.</B><HR></FONT>
</BLOCKQUOTE>
</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="405-409.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="412-415.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 + -