<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=WinCE%3A_Application_Development</id>
	<title>WinCE: Application Development - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=WinCE%3A_Application_Development"/>
	<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=WinCE:_Application_Development&amp;action=history"/>
	<updated>2026-05-03T10:20:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://www.mediawiki.compulab.com/w/index.php?title=WinCE:_Application_Development&amp;diff=645&amp;oldid=prev</id>
		<title>Nadav at 09:03, 23 December 2009</title>
		<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=WinCE:_Application_Development&amp;diff=645&amp;oldid=prev"/>
		<updated>2009-12-23T09:03:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Installing CompuLab's SDK ==&lt;br /&gt;
In order to develop applications for Compulab's modules, using Visual Studio 2005 (VS2005), Compulab's SDK must be installed.&amp;lt;br&amp;gt;&lt;br /&gt;
The SDK installation file is located in the Software Package.&lt;br /&gt;
To install the SDK, follow these steps:&lt;br /&gt;
* Run the {{filename|&amp;lt;Platform name&amp;gt;_SDK.msi}} file – this will install the SDK into the Add/Remove programs within control panel and also make the platform available to Visual Studio 2005. &lt;br /&gt;
&lt;br /&gt;
{{Note|The SDK installer is a wizard based installer, you can click through the default settings to install the SDK}}&lt;br /&gt;
* On the first page of the SDK installer – Click Next &lt;br /&gt;
* On the second page of the SDK installer – Accept the EULA and Click Next &lt;br /&gt;
* On the third page (customer information) of the SDK Installer – Click Next &lt;br /&gt;
* On the fourth page (setup type) of the SDK Installer – Click Complete &lt;br /&gt;
* On the fifth page (destination folders) of the SDK Installer – Click Next &lt;br /&gt;
* On the Final page of the SDK installer – Click Install &lt;br /&gt;
* To complete the installation of the SDK – Click Finish&lt;br /&gt;
&lt;br /&gt;
== Creating an Application ==&lt;br /&gt;
To Deploy an application to the device an ActiveSync connection is necessary between the device and the desktop machine.&lt;br /&gt;
&lt;br /&gt;
=== C# Application (VS2005) ===&lt;br /&gt;
* Start a new instance of Visual Studio 2005 &lt;br /&gt;
:– you will use the new instance of Visual Studio 2005 to write and deploy your application. &lt;br /&gt;
* Within Visual Studio 2005 select {{Filename|File-&amp;gt;New-&amp;gt;Project}}&lt;br /&gt;
: [[image:OpenNewProjectScreen.jpg]]&lt;br /&gt;
* Select Project type: Other Languages | Visual C# | Smart Device | Windows CE 5.0&lt;br /&gt;
* To develop an application choose Device Application&lt;br /&gt;
* Click OK to create the Smart Device application&lt;br /&gt;
: [[image:NewCSharpProject.jpg]]&lt;br /&gt;
* You are now ready to add controls and functionality to your form.&lt;br /&gt;
&lt;br /&gt;
{{Note|Applications developed using VS2005 target the .Net Compact-Framework 2.0&lt;br /&gt;
To target .Net Compact-Framework 3.5 develop the application using VS2008}}&lt;br /&gt;
&lt;br /&gt;
==== Deploy a C# Application to your device ====&lt;br /&gt;
* Press the Green play button to deploy and run the program&lt;br /&gt;
: [[image:deplyButton.jpg]]&lt;br /&gt;
* From the list of available devices choose either Windows CE 5.0 device or the SDK of the device you work with&lt;br /&gt;
: [[image:DeployDeviceList.jpg]]&lt;br /&gt;
* Press Deploy&lt;br /&gt;
&lt;br /&gt;
==== VS2005 .Net CF 2.0 Update ====&lt;br /&gt;
When deploying a C# application your breakpoints may not be hit.&amp;lt;br&amp;gt;&lt;br /&gt;
To fix this, install the [http://www.microsoft.com/downloads/details.aspx?FamilyID=aea55f2f-07b5-4a8c-8a44-b4e1b196d5c0&amp;amp;displaylang=en .Net CF 2.0 SP2] on your desktop machine&lt;br /&gt;
&lt;br /&gt;
=== Embedded Silverlight Application (VS2005) ===&lt;br /&gt;
With the new Windows CE 6.0 R3 release, it is now possible to develop Silverlight applications for Windows CE. &lt;br /&gt;
&amp;lt;br&amp;gt;Silverlight for embedded devices is based on Silverlight 2 core engine, only ported to native code. &lt;br /&gt;
To read more on Silverlight for Windows CE please refer to:&lt;br /&gt;
* [http://www.microsoft.com/windowsembedded/en-us/products/windowsce/default.mspx Silverlight for Windows CE]&lt;br /&gt;
* [http://msdn.microsoft.com/en-us/library/ee502198.aspx Embedded Silverlight Documentation]&lt;br /&gt;
* [http://geekswithblogs.net/WindowsEmbeddedCookbook/archive/2009/10/01/silverlight-for-embedded-tutorial.aspx Silverlight Tutorial]&lt;br /&gt;
&lt;br /&gt;
With Compulab’s SDK, it is possible to develop Silverlight application without the use of Platform Builder. &lt;br /&gt;
&amp;lt;br&amp;gt;To build a Silverlight applications follow the steps described in [[#MFC_Application_.28VS2005.29|MFC Application VS2005]], and make sure you add the library “xamlruntime.lib” to the project’s input property under linker&lt;br /&gt;
: [[image:AddingXamlLibToProject.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== MFC Application (VS2005) ===&lt;br /&gt;
After installing the SDK, you can write and deploy an MFC {{Cmd|Smart Device}} application. &lt;br /&gt;
 &lt;br /&gt;
* Minimize the current instance of Visual Studio/Platform Builder &lt;br /&gt;
* Start a new instance of Visual Studio 2005 &lt;br /&gt;
:– you will use the new instance of Visual Studio 2005 to write and deploy your application. &lt;br /&gt;
* Within Visual Studio 2005 select {{filename|File-&amp;gt;New-&amp;gt;Project}}&lt;br /&gt;
:[[image:OpenNewProjectScreen.jpg]]&lt;br /&gt;
* Select Project type: Visual C++ | Smart Device &lt;br /&gt;
:[[image:NewProjectMFCVS2005.jpg]]&lt;br /&gt;
* Change the Project name to MFCApp&lt;br /&gt;
* Click OK to create the Smart Device application. &lt;br /&gt;
&lt;br /&gt;
The MFC application wizard requires that you provide information about the application you want to build, this includes the platform you want to build for, whether the application is Doc/View based etc…&lt;br /&gt;
:[[image:prjectWizardVS20051.jpg]]&lt;br /&gt;
{{Note|The default settings are to build an application for Pocket PC 2003 as a single document interface (SDI) application}}&lt;br /&gt;
* Select the Platforms option on the left side of the wizard or press {{filename|Next}}&lt;br /&gt;
:- The {{Filename|Platforms}} page of the wizard allows you to select which platform (SDK) the application will be built against &lt;br /&gt;
:– The default option is to build for Pocket PC 2003, you will need to remove Pocket PC 2003 and add the SDK you installed in the first step&lt;br /&gt;
: [[image:ProjectWizardPlatform.jpg]]&lt;br /&gt;
* Select Pocket PC 2003 in the list of Selected SDKs  &lt;br /&gt;
* Click the  [[image:WizardRemoveArrow.jpg]] button to move Pocket PC 2003 out of the Selected SDKs list&lt;br /&gt;
* Select the desired SDK from the list of Installed SDKs  &lt;br /&gt;
* Click the [[image:WizardAddArrow.jpg]] button to move the CM_X300_SDK into the selected SDKs list&lt;br /&gt;
: [[image:ProjectWizardPlatformWithSelectedSDK.jpg]]&lt;br /&gt;
&lt;br /&gt;
Now that the Platform has been configured you can review/set some of the application specific options:&lt;br /&gt;
 &lt;br /&gt;
* Click on Application Type on the left side of the dialog. &lt;br /&gt;
 &lt;br /&gt;
The default option for an MFC application is to build a single document interface (Multiple Document Interface applications [MDI] are not supported on CE based devices) and to have MFC statically linked to your application. This is fine if you only have one MFC application running on a device. For this example you will change the default option to use MFC dynamically linked (ideal for supporting multiple MFC applications on the same device). &lt;br /&gt;
 &lt;br /&gt;
* Change use of MFC from {{Filename|Use MFC in a Static Library}} to {{Filename|Use MFC in a Shared DLL}}&lt;br /&gt;
&lt;br /&gt;
Feel free to explore some of the other wizard settings for the MFC application, at this point you have configured the basic options for the application. &lt;br /&gt;
 &lt;br /&gt;
* Click Finish to allow the MFC application source to be generated&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Windows CE|Application Development]]&lt;/div&gt;</summary>
		<author><name>Nadav</name></author>
		
	</entry>
</feed>