Développement

Les applications natives pour Windows Mobile sont réalisées à partir de la suite Visual Studio auquel on ajoute un Software Developpement Kit (SDK) spécifique à la version de Windows Mobile ciblée.

Les fichiers *.CAB produits peuvent être lus avec WinCE CAB Manager d'OCP Software.

On peut aussi utiliser WinDev Mobile pour développer des applications pour Windows Mobile.

NS Basic et Basic4ppc fournissent un environnement de développement alternatif, permettant le développement sur le bureau, qui est ensuite téléchargé sur l'appareil. NS Basic as well as development on the actual device itself.

Basic4ppc : permet de créer des applications pour les PDA et smartphones. Le programme est en anglais, et permet d'utiliser une base de données SQLite3

Visual Studio 2010

Attention ! Visual Studio 2010 ne gère pas les versions pour antérieures à Windows Mobile à 7.0. Pour développer des applications pour les vieux Windows tels que 6.5, vous devrez garder VS2008 ! Visual Studio 2010 : Smart Device Development

Visual Studio 2010 Beta 1 > Visual Studio > Smart Device Development

Smart Device Development

Visual Studio 2010 Beta 1 does not support Smart Device Development.

Microsoft is committed to making Visual Studio a great development tool for the mobile device developer, and will deliver mobile device tools for Visual Studio 2010, but cannot share details now. For existing Visual Studio 2008 mobile developers, Microsoft will release a new Windows Mobile 6.5 emulator in the upcoming months that works with the Windows Mobile 6 SDK.

Because Visual Studio 2010 Beta 1 does not support Smart Device Development, you cannot use the following features: .NET Compact Framework projects, Visual C++ device projects, smart device CAB projects, Device Emulator and Device Emulator Manager, testing tools for device projects, and Device Security Manager.

Smart device development is still supported in earlier versions of Visual Studio, such as Visual Studio 2008. For the more information about smart device projects, see Windows Mobile Developer Center and Smart Device Development in Visual Studio 2008.

Visual Studio 2008

Visual Studio 2008 > Visual Studio > Smart Device Development

Smart Device Development

Smart device development refers to the development of Windows CE and Windows Mobile-based rich-client applications that run on the device itself. Visual Studio offers rich, integrated support for developing software that runs on Windows CE-based smart devices such as Pocket PCs and Smartphones. You can use Visual C# or Visual Basic to write managed applications that run on the .NET Compact Framework, or you can write native applications by using Visual C++. Whichever language you select, you will use the same code editor, designers, and debugger interface as you would use when you develop desktop applications. Simply select from one of the Smart Device Project templates available for the language of your choice, and begin coding.

Visual Studio provides emulators that enable you to run and debug your code on your development computer. In addition, Visual Studio provides tools that simplify packaging your application and its resources into CAB files for deployment to end-user devices.

For the most up-to-date information about smart device projects, visit the Mobile Developer Center.

Ressources

Windev Mobile

NS Basic

NS Basic is a family of development tools for the BASIC programming language developed and commercially marketed by NS BASIC Corporation in Toronto, Canada for Newton OS, Palm OS, Symbian OS, Windows CE, Windows Mobile and Microsoft Windows.

Basic4ppc

Basic4ppc (pronounced Basic for PPC) is a programming language for Smartphones and Pocket PC handheld computers running Windows Mobile operating system, by Anywhere software. The Language is based on a Basic-like syntax, taking advantage of Microsoft’s .NET technology, to allow additional libraries, graphical user interface design of windows forms, rapid development, and .NET framework compatible compilation. The language implements a unique way of adding objects to a program without being object oriented. Its advantages are simplicity, development pace and the integration with .NET framework. A special version of the IDE allows developing straight onto the mobile device.

Basic4ppc includes a large set of libraries such as: GPS, Network, Database (SQL), Serial ports, FTP, HTTP (web services), Graphics, Pocket Outlook and many more.

Basic4ppc supports Pocket PC 2002, Smartphone 2003, WM2003 WM2003 SE,Smartphone 5.0, WM5.0, WM6 Standard (Smartphone), WM6 Classic and WM6 Professional.

Codez pour windows mobile avec Visual Studio 2008

Pour vous Pocket PC ou Smartphone, visual studio, propose des créer des projets Visual C# avec le Compact Framework .NET 3.5

Visual C# -> Smart Device -> Projet  Smart Device ->

Parmis les choix :

  • Plateforme de destination :
    • Pocket PC 2003
    • Windows CE
    • Windows Mobile 5.0 Pocket PC SDK
    • Windows Mobile 5.0 Smartphone SDK
  • Version du .NET Framework :
    • .NET Compat Framework Version 2.0
    • .NET Compat Framework Version 3.5
-> Application Smart Device

La doc en ligne

Comment partager du code source entre différentes plateformes (Smart Devices)

Vous pouvez partager le code source sur plusieurs plateformes en utilisant des constantes de compilation pour différencier les sections de code qui dépendent de la cible. Les constantes autorisées sont PocketPC, Smartphone et WindowsCE. Les plateformes doivent cibler la même version du .NET Compact Framework.

On y découvre que pour changer la plateforme cible (toujours à destination de la même version du .NET Compact Framework), il suffit de passer par :

menu Projet -> Changer la plateforme cible.

Le plein de tutoriels su developpez.net

Cours

C#
C# Mobile

http://dotnet.developpez.com/faq/csharp/?filtre=OOOOOOOOOOOOOOOOOOOOOOO

Forums :

Autres ressources C#

Pleins d'exemples en C# C sharp

Déployer son application sur le PDA

ActiveSync 4.5 - Français

.NET Compact Framework

En choisissant la bonne version et en la déployant sur le mobile vous éviterez les problèmes du genre :

Une erreur innatendu s'est produite dans ...
Le fichier ou l'assembly nommé 
'System.Windows.Forms,
Version=3.5.0.0, Culutre=neutral,
PublicKeyToken=989DB8053D3322AC'
ou l'une de ses dépendances, est introuvable.

La version du Compact Framework peut être obtenue sous Windows Mobile en exécutant le programme \Windows\cgacutil

.NET Compact Framework
Microsoft (R) .ET
Compact Framework
[2.0.5238.0]
.NET Compact Framework
Microsoft (R) .ET
Compact Framework
[3.5.7283.0, 2.0.5238.0]
Présentation

Microsoft® .NET Compact Framework 3.56 Redistributable contient le Common Language Runtime et les bibliothèques de classes conçus pour le .NET Compact Framework. Il prend en charge la version 3.5, mais aussi les applications développées pour les versions 1.0 et 2.0. .NET Compact Framework 3.5 fournit de nouvelles fonctionnalités telles que Windows Communication Foundation, LINQ, SoundPlayer, la prise en charge de nouveaux outils de runtime, ainsi que de nombreuses autres fonctionnalités.

Important : Pour développer des applications .NET Compact Framework, vous devez utiliser Microsoft Visual Studio 2008.

Ce package utilise ActiveSync 4.0 pour mettre à jour l'appareil. Avant d'exécuter NETCFSetupv35.msi, connectez votre appareil à votre PC. Si votre appareil n'est pas connecté, ActiveSync stocke le fichier CAB et n'installe le package qu'une fois que vous êtes connecté. Si vous n'utilisez pas ActiveSync, exécutez sur l'appareil les fichiers CAB correspondant aux fichiers CAB spécifiques à l'appareil qui se trouvent dans le dossier d'installation.

Installer le .NET Frameworks 3.5 à la place du .NET Frameworks 2.0

" Cette application (xyz.exe) requiert une version plus récente du .NET Compact Framework de Microsoft que celle installée sur ce périphérique. " Ce message d’erreur apparaît lorsque les .NET Frameworks de Microsoft (modules complémentaires nécessaires pour beaucoup de logiciels) ne sont pas à jour. L’application nécessite la version 3.5 de ces .NET Frameworks



Dans le dossier d’installation du programme («\Program Files\wyz »), le fichier NETCFv35.wm.armv4i.cab et NETCFv35.Messages.FR.wm.cab contienent l’installation des .NET Frameworks. Voir How to: Install Prerequisite Software on Mobile Devices Before Deploying Applicationment et .NET Compact Framework 3.5 Redistributable



Pour les installer, il suffit donc de cliquer sur ce fichier pour lancer l'installation. Lors du choix de l’emplacement, choisir " Appareil " puis cliquer sur " Installer ".



Les .NET Frameworks 3.5 vont donc s’installer normalement, et vous pourrez ensuite exécuter le programme.

Installer les hot fix

Attention, il existe un hot fix .NET Compact Framework 3.5 pour corriger un beug de browser dans les Windows Mobile 6.x.

Si vous utilisez .NETCF 3.5 et aussi son control navigateur intégré, Microsoft a posté un hotfix (KB975281). Vous pouvez télécharger le hotfix KB975281.

Configuration minimale
  • Systèmes d'exploitation pris en charge : Windows 2000 Service Pack 4; Windows CE .NET; Windows Mobile 2003 SE software for Pocket PC; Windows Mobile 5.0; Windows Mobile 6; Windows Vista; Windows XP
  • Systèmes d'exploitation de l'appareil pris en charge : logiciel Windows Mobile pour Pocket PC 2003, Windows Mobile 5.0 pour Pocket PC et Smartphone, Windows CE .NET 5.0 et version ultérieure.
Microsoft .NET Framework 3.5 : Types et Namespaces couramment utilisés

Le poster ou feuille mémoire Types et Namespaces couramment utilisés du Microsoft .NET Framework 3.5 est disponible au format PDF ou XPS.

Mettre a jour son appareil mobile

Comment déployer des programmes, installation sur Windows Mobile : installer des fichiers .CAB, .EXE à installer et .EXE basiques, pour par exemple mettre a jour le .NET Compact Framework 3.5 Redistributable et le SQL Server Compact CE

Programmes

Gratuits

Sources

Ressources

Inclure des images ou autres fichiers

Après avoir importer votre image, configurer la en ‘Ressource incorporée’ (‘Embed ressource’ dans la version américaine) dans la zone ‘Action de génération’.

Dans le fichier AssemblyInfo.cs de votre projet, récupérez le "AssemblyTitle" ou le "AssemblyProduct", par exemple : "MonProjet"

Et pour accèder à votre ressource "image.png" dans le dossier "Images"

// get a reference to the current assembly
Assembly assembly = Assembly.GetExecutingAssembly();
 
string uriImage = "MonProjet.Images.image.png";
 
Bitmap bmp = new Bitmap( assembly.GetManifestResourceStream(uriImage) );

Windows Mobile SDK

Les SDK Windows Mobile sont des téléchargements gratuits qui fonctionnent en conjonction avec Visual Studio 2005 Standard Edition et supérieur, et fournissent les compilateurs, émulateurs, des outils et la documentation nécessaires pour développer des applications.

Résultats pour - "Windows Mobile SDK"

Windows Mobile 5.0 SDK for Pocket PC

The Windows Mobile 5.0 SDK for Pocket PC extends Visual Studio 2005 so that you can write managed and native application software targeting Windows Mobile 5.0 based Pocket PC devices.

This includes:

  • Windows Mobile 5.0 based Pocket PC Device Emulator images & skin files
  • Headers, Libraries, IDL files, and Managed reference assemblies
  • Sample Code
  • Documentation in CHM Format
  • Tools, Sample Configuration files, and Test Authenticode Certificates
Windows Mobile 5.0 SDK for Smartphone

The Windows Mobile 5.0 SDK for Smartphone extends Visual Studio 2005 so that you can write managed and native application software targeting Windows Mobile 5.0 based Smartphone devices.

This includes:

  • Windows Mobile 5.0 based Smartphone Device Emulator images & skin files
  • Headers, Libraries, IDL files, and Managed reference assemblies
  • Sample Code
  • Documentation in CHM Format
  • Tools, Sample Configuration files, and Test Authenticode Certificates
Windows Mobile 6.5 Developer Tool Kit

The Windows Mobile 6.5 Developer Tool Kit adds documentation, sample code, header and library files, emulator images and tools to Visual Studio that let you build applications for Windows Mobile 6.5. This document contains important information about this package. For general information about writing software for Windows Mobile, please see the Windows Mobile Developer Center. The Windows Mobile 6 SDK must also be installed in order to use any of the Windows Mobile 6.5 Gesture API or samples. Windows Mobile 6.5 Developer Tool Kit comes with the following Emulator Images: Windows Mobile 6.5 Professional Square Emulator Windows Mobile 6.5 Professional QVGA Emulator Windows Mobile 6.5 Professional WQVGA Emulator Windows Mobile 6.5 Professional VGA Emulator Windows Mobile 6.5 Professional WVGA Emulator Windows Mobile 6.5 Standard Square Emulator Windows Mobile 6.5 Standard QVGA Emulator

Windows Mobile 6 Professional and Standard Software Development Kits Refresh
  • Windows Mobile 6 SDK Refresh The Windows Mobile 6 SDK Refresh adds documentation, sample code, header and library files, emulator images and tools to Visual Studio that let you build applications for Windows Mobile 6.

The Windows Mobile 6 SDKs add documentation, sample code, header and library files, emulator images and tools to Visual Studio that let you build applications for Windows Mobile 6.

With Windows Mobile 6, we are revising our SKU taxonomy and naming to better align our brand and products with the realities of today’s mobile device marketplace. The historical form-factor based distinction between Windows Mobile powered Smartphone and Windows Mobile powered Pocket PC Phone Edition is blurring dramatically. We want our taxonomies and terminology to evolve to better reflect the evolution of the mobile device industry.

The list below summarizes the changes and the SDK that must be used when targeting the platforms (Previous Categories = New Categories):

  • Windows Mobile for Smartphone = Windows Mobile Standard (download the Windows Mobile 6 Standard SDK)
  • Windows Mobile for Pocket PC = Windows Mobile Classic (download the Windows Mobile 6 Professional SDK)
  • Windows Mobile for Pocket PC Phone Edition = Windows Mobile Professional (download the Windows Mobile 6 Professional SDK)

The Windows Mobile 6 SDKs reflect these changes in the naming of "Project Templates" and "Emulator Images".

The following emulator images are included in the SDKs:

  • Windows Mobile 6 Standard SDK
    • Windows Mobile 6 Standard (176x220 pixels - 96 dpi)
    • Windows Mobile 6 Standard Landscape QVGA (240x320 pixels - 131 dpi)
    • Windows Mobile 6 Standard QVGA (320x240 pixels - 131 dpi)
  • Windows Mobile 6 Professional SDK
    • Windows Mobile 6 Classic (240x320 pixels - 96 dpi)
    • Windows Mobile 6 Professional (240x320 pixels - 96 dpi)
    • Windows Mobile 6 Professional Square (240x240 pixels - 96 dpi)
    • Windows Mobile 6 Professional Square QVGA (320x320 pixels - 128 dpi)
    • Windows Mobile 6 Professional Square VGA (480x480 pixels - 192 dpi)
    • Windows Mobile 6 Professional VGA (480x640 pixels - 192 dpi)

Notes

Le .NET Compact Framework ( version 2.0 à au moins 3.5 )