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

📄 gpstracerappwmce5.aspx.htm

📁 This is a simple GPS tracer developed for Window Mobile 2005/2003 on Compact Framework 2.0 SDK. So f
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chapterId=10" onclick="return ToggleMenu('Chapter10');">Graphics / Design</a></div>
<div class="MenuSectionBlock" id="Chapter10" style="display: none;">
<div class="MI" id="Section40"><a href="http://www.codeproject.com/KB/expression/">Expression</a></div>
<div class="MI" id="Section114"><a href="http://www.codeproject.com/KB/usability/">Usability</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chapterId=11" onclick="return ToggleMenu('Chapter11');">Development Lifecycle</a></div>
<div class="MenuSectionBlock" id="Chapter11" style="display: none;">
<div class="MI" id="Section51"><a href="http://www.codeproject.com/KB/debug/">Debug Tips</a></div>
<div class="MI" id="Section39"><a href="http://www.codeproject.com/KB/architecture/">Design and Architecture</a></div>
<div class="MI" id="Section112"><a href="http://www.codeproject.com/KB/install/">Installation</a></div>
<div class="MI" id="Section41"><a href="http://www.codeproject.com/KB/work/">Work Issues</a></div>
</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/script/Content/Chapter.aspx?chapterId=7" onclick="return ToggleMenu('Chapter7');">General Reading</a></div>
<div class="MenuSectionBlock" id="Chapter7" style="display: none;">
<div class="MI" id="Section60"><a href="http://www.codeproject.com/KB/books/">Book Chapters</a></div>
<div class="MI" id="Section61"><a href="http://www.codeproject.com/KB/book-reviews/">Book Reviews</a></div>
<div class="MI" id="Section109"><a href="http://www.codeproject.com/KB/hardware-review/">Hardware Reviews</a></div>
<div class="MI" id="Section63"><a href="http://www.codeproject.com/KB/interviews/">Interviews</a></div>
<div class="MI" id="Section65"><a href="http://www.codeproject.com/KB/showcase/">Product Showcase</a></div>
<div class="MI" id="Section62"><a href="http://www.codeproject.com/KB/scrapbook/">Scrapbook</a></div>
</div>
</div>
<br>
<div class="MenuCat">Feature Zones</div>
<div class="MenuChapter"><a href="http://www.codeproject.com/kb/showcase/">Product Showcase</a></div>
<div class="MenuChapter"><a href="http://www.codeproject.com/Zones/Install">Install</a></div>
<br>

			
			<script language="javascript">document.write("<a href=\"http://www.codeproject.com/Redir.aspx?adid=4285&way=ban\" target=\"_blank\"><img src=\"http://www.codeproject.com/script/Ann/ServeImg.aspx?File=%2fscript%2fadmentor%2fimages%2fCWS_charting2_160x600.jpg&C=False&id=4285\" alt=\"\" border=\"0\" width=\"160\" height=\"600\"></a>");</script><a href="http://www.codeproject.com/Redir.aspx?adid=4285&amp;way=ban" target="_blank"><img src="GpsTracerAppWMCE5.aspx_files/ServeImg.htm" alt="" border="0" height="600" width="160"></a>		
			<img src="GpsTracerAppWMCE5.aspx_files/t.gif" alt="" height="1" width="160">
		</td>
		<td class="ArticlePane" valign="top">

			
<table class="SearchHeaderBar" cellspacing="0" width="100%">
<tbody><tr>
<td style="white-space: nowrap; width: 60%;" align="right" valign="middle">
<form method="get" action="/info/search.aspx" name="Search" style="margin: 0pt;">
<b>Search &nbsp;</b>
<input class="SmallText" name="artkw" style="width: 200px;">
<select class="SmallText" style="font-weight: bold;" name="sbo">
<option value="kw">Articles</option>
<!--<option value="au">Authors</option>-->
<option value="fm">Messages</option>
</select>
<input class="SmallText" style="font-weight: bold;" value=" Go! " type="submit"> &nbsp;
</form>
</td>

<td class="TinyText" style="white-space: nowrap;">
<a href="http://www.codeproject.com/info/search.aspx">Advanced Search</a><br>
<a href="http://www.codeproject.com/script/Content/SiteMap.aspx">Sitemap</a>

</td>
</tr>
</tbody></table>

			<span id="ctl00_ResultMessage"></span>
			
			<div id="ctl00_ArtDiv">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">	
			<tbody><tr valign="top">
				<td valign="top">
					
<table border="0" cellpadding="3" cellspacing="1" width="1">
<tbody><tr class="smalltext" valign="middle">
<td style="white-space: nowrap;">
	<img src="GpsTracerAppWMCE5.aspx_files/print.gif" style="border: 0px none ; vertical-align: middle;" alt="print" height="16" width="16">
	<a id="ctl00_ArticleHeaderLinks_PrintLnk" href="http://www.codeproject.com/KB/mobile/GpsTracerAppWMCE5.aspx?display=Print">Print</a>
</td>
<td style="white-space: nowrap;">
	<img src="GpsTracerAppWMCE5.aspx_files/broken.gif" style="border: 0px none ; vertical-align: middle;" alt="Broken Article?" height="16" width="16">
	<a id="ctl00_ArticleHeaderLinks_BrokenLnk" href="http://www.codeproject.com/script/Articles/Report.aspx?aid=15108">Broken Article?</a>
</td>
<td style="white-space: nowrap;">
	<img id="ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkImg" src="GpsTracerAppWMCE5.aspx_files/link.png" style="border: 0px none ; height: 16px; width: 16px; vertical-align: middle;">
<a id="ctl00_ArticleHeaderLinks_ArticleBmk_BookmarkLnk" href="http://www.codeproject.com/script/Bookmarks/Add.aspx?&amp;obid=15108&amp;obtid=2">Add Bookmark</a>
<span id="ctl00_ArticleHeaderLinks_ArticleBmk_Message"></span>

</td>
<td style="white-space: nowrap;">
	<img src="GpsTracerAppWMCE5.aspx_files/discuss.gif" style="border: 0px none ; vertical-align: middle;" alt="Discuss" height="16" width="15">
	<a href="#_comments">Discuss</a>
</td>
<td style="white-space: nowrap;">
<img src="GpsTracerAppWMCE5.aspx_files/mail.gif" style="border: 0px none ; vertical-align: middle;" alt="Recommend Article" height="16" width="16">
	<a id="ctl00_ArticleHeaderLinks_Recommend" href="http://www.codeproject.com/script/common/TellFriend.aspx?obtid=2&amp;obid=15108">Send to a friend</a>	
</td>
</tr>
</tbody></table>

				</td>
				<td align="right">
					
<table>
<tbody><tr>
	<td style="white-space: nowrap;" class="SmallText" align="right"> 
		<span id="ctl00_ArticleRating_VoteLabel">22 votes for this Article.</span>
	</td>
	<td>
		<table border="1" cellpadding="0" cellspacing="0">
			<tbody><tr>
				<td bgcolor="White" height="5" width="20"><img src="GpsTracerAppWMCE5.aspx_files/red.gif" border="0" height="5" width="20"></td>
				<td bgcolor="White" height="5" width="20"><img src="GpsTracerAppWMCE5.aspx_files/red.gif" border="0" height="5" width="20"></td>
				<td bgcolor="White" height="5" width="20"><img src="GpsTracerAppWMCE5.aspx_files/red.gif" border="0" height="5" width="20"></td>
				<td bgcolor="White" height="5" width="20"><img src="GpsTracerAppWMCE5.aspx_files/red.gif" border="0" height="5" width="20"></td>
				<td bgcolor="White" height="5" nowrap="nowrap" width="20"><img src="GpsTracerAppWMCE5.aspx_files/red.gif" border="0" height="5" width="15"></td>
			</tr>
		</tbody></table>
		
	</td>
</tr>
<tr id="ctl00_ArticleRating_PopularityRow">
			<td colspan="2" class="SmallText" align="right">
		<a id="ctl00_ArticleRating_PopularityLnk" title="Calculated as rating x Log10(# votes)" href="http://www.codeproject.com/script/Articles/TopArticles.aspx?ta_so=1">Popularity: 6.41</a><span id="ctl00_ArticleRating_PopularityLbl"></span>
		Rating: <b>4.77</b> out of 5
	</td>
		</tr>
		
</tbody></table>


				</td>
			</tr>
			</tbody></table>
			
			
			
			
			
			
			
			<span id="intelliTXT">
			<div id="contentdiv">
			
			<!-- Main Page Contents Start -->
			

<!-- Article Starts -->


<ul class="download">
<li><a href="http://www.codeproject.com/KB/mobile/GpsTracerAppWMCE5/GpsTracer_demo.zip">Download demo project - 7.1 Kb </a></li>

<li><a href="http://www.codeproject.com/KB/mobile/GpsTracerAppWMCE5/GpsTracer_src.zip">Download source - 89.3 Kb</a> </li>
</ul>

<p><img alt="Screenshot" src="GpsTracerAppWMCE5.aspx_files/GpsTracer1.gif" height="320" width="240"></p>

<h2>Introduction</h2>

<p>This is a simple GPS tracer developed for Window Mobile 2005/2003 on Compact Framework 2.0 SDK. So first of all, you need <a href="http://msdn.microsoft.com/vstudio/express/visualcsharp/download/">VisualStudio 2005</a> and <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=fa1a3d66-3f61-4ddc-9510-ae450e2318c3&amp;DisplayLang=en">Windows Mobile CE 5 SDK</a>.
You can develop it on emulator devices or on a real device. As you can
see in that photo, I developed that application on a read device: the
great Asus MyPal 636N. </p>

<p><img alt="Screenshot" src="GpsTracerAppWMCE5.aspx_files/GpsTracer2.gif" height="150" width="200"></p>

<h2>How it works: background</h2>

<p>The screenshot above shows that the map generated by this
application is very simple. It's only your path, and the application is
able to: </p>

<ul>
<li>Read data from any NMEA GPS device </li>

<li>Read your position and print it to the screen </li>

<li>Load and save your path </li>

<li>Zoom in/out </li>

<li>Pan on your path </li>

<li>Center on the map </li>

<li>Run in demo mode with randomly generated data </li>
</ul>

<p>You can save and load it, but for now you can't edit or add other
text. About application setup, it's very simple: you have only to setup
your COM port. This port must be that same port where your NMEA device
is attached via Bluetooth, IrDA or Integrate. Personally, I have an
Asus MyPal 636N device, so I have the GPS device built-in on COM5.</p>

<h2>Using the code</h2>

<p>It's basically composed of three main actors, similar to a simple MVC pattern:</p>

<p><code>Form</code> (Control): It's the main form of the application, so it contains the Windows UI (menu, controls...) </p>

<p><code>Reader</code> (Model): It's the class that works with the GPS device, so it allows reading from serial with a threaded method </p>

<p><code>Mapper</code> (View): It's the actor that parses the GPS NMEA
phrases and draws them on-screen; it also allows the user to zoom and
pan the map that contains the path </p>

<h3>Form</h3>

<p>It initializes the application; as you can see it's able to run on 240px X 320px devices. </p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -