19 Feb 2008

Managed CoreConnectivity Framework in VS2008

Objectif
Créer un lien entre le périphérique et Visual Studio 2008
Connect the device to Visual Studio 2008

Description
  • Basé sur le core connectivity framework natif existant.
  • Build on top of existing core connectivity framework.
  • Utilisé en interne par les outils MS (tels que Unit Testing, remote…)
  • Internally used by MS tools (e.g., unit testing)
  • Facilité accrue pour créer rapidement ses propres remote tools
  • Makes it easy to build your own remote tools

Pour l’utiliser :
To use:
Ajouter une référence à Microsoft.Smartdevice.Connectivity.dll
Add a reference to Microsoft.Smartdevice.Connectivity.dll

Exemple de code :
Code example:

DatastoreManager dsmgrObj = new DatastoreManager(1033);
//Get Collection of platforms entries present in Data store
IEnumerable platformcollection = dsmgrObj.GetPlatforms();
//Iterate through Collection of platforms
foreach (Platform objplatform in platformcollection)
{
System.Console.WriteLine(objplatform.Name);
if (objplatform.Name.Contains("Windows Mobile 6 Professional SDK"))
{
IEnumerable pdeviceCollection = objplatform.GetDevices();
foreach (Device objdevice in pdeviceCollection)
{
System.Console.WriteLine("\t" + objdevice.Name);
//Check if the device is an emulator
if (objdevice.Name.Contains("Windows Mobile 6 Professional Emulator"))
{
m_objDevice = objdevice;
m_objDevice.Connect();
return;
}
}
}


// To get all running processes on the device
m_objDevice.GetRunningProcesses()

// Get the system info
SystemInfo info = m_objDevice.GetSystemInfo();

N'hésitez pas à tester et créer vos propres Remote Tools, c'est super pratique.
Don't hesitate to test it and create your own Remote Tools, it is very usefull.

18 Feb 2008

Compact Framework version redirection

Avec le Compact Framework 2.0, si vous voulez forcer votre application à utiliser une version particulière du Compact Framework, vous pouvez créer un fichier nommé [Nom de mon application].exe.config et de le copier dans le répertoire de l'application. (Article de CodePPC)

In Compact Framework 2.0, if you want to perform runtime version redirection, you can create a file called [Name of the application].exe.config and place it in the application folder.

Une des nouveautés du Compact Framework 3.5 est de pouvoir créer un seul fichier device.config et de le placer dans le répertoire Windows afin d'effectuer une redirection de runtime vers le Compact Framework 3.5 pour toutes les applications du device.
In the Compact Framework 3.5, you can create an only file called device.config and place it in the Windows folder to perform runtime redirection for all applications on the device.

Pour que toutes les applications utilisent le CF 3.5, voici le fichier à créer :
For example, to redirect all applications to run using CF 3.5, here is the file to create:


13 Feb 2008

Bonjour à tous,

Durant ces derniers jours, je n'ai pas été très actif sur mon blog du fait de la préparation des TechDays 2008, je m'y remets dès la semaine prochaine. En tous cas, merci à tous ceux qui sont venus à ma session au TechDays sur Visual Studio 2008 et le Compact Framework 3.5. Et si vous avez des remarques ou des questions à poser, n'hésitez pas à poster des commentaires sur ce post. La session webcastée et les slides seront disponibles sur le site des TechDays d'ici 2 à 3 semaines.
Une petite vidéo de la plènière en attendant :


Video: Extraits de la plénière du mardi 12 février 2008
Hi all,

During these last days, I wasn't very active on my blog because of preparation of TechDays 2008, I'll go back next week. In any case, thank you to all which came to my session in TechDays on Visual Studio 2008 and Compact Framework 3.5. And if you have any remarks or questions to ask, don't hesitate to post comments on this post. The webcasted session and the slides will be available on the TechDays' website in 2 to 3 weeks. (It will be in French only ;-))

25 Jan 2008

Online Webinar - Development of Drivers with Windows Embedded CE 6.0 R2


Le 31 janvier, Anthony Pellerin d'Adeneo nous présentera un webinar sur Development of Drivers withWindows Embedded CE 6.0 R2. La présentation sera faite en anglais uniquement.
January 31 , Anthony Pellerin from Adeneo will present us a webinar on Development of Drivers withWindows Embedded CE 6.0 R2. The presentation will be in English only.

Event Overview
Date and Time: January 31, 2008 @ 10:00 AM - 11:00 AM CET

During this LIVE online 60 minute presentation: you will learn the latest features of Windows Embedded CE 6.0 R2 and how to integrate custom drivers in CE based designs.

Who Should Attend:

This webcast addresses OEM hardware and software engineers willing to start driver development for Windows Embedded CE 6.0 R2 design.Windows Embedded CEThe explosion of devices and systems with small software footprint requirements that integrate a larger set of features has fueled demand for flexible and easily scalable software solutions.Microsoft has met the demands of engineers looking to develop their products in a familiar and feature rich environment. Windows Embedded CE 6.0 provides engineers with an exceptional new tool to develop a broad range of portable and hand-held devices.Join Microsoft for an introduction of Windows Embedded CE development drivers, and develop an in-depth technical knowledge of Windows Embedded CE 6.0 development driver technology. Microsoft will walk you step-by-step through the feature rich development environment of Windows Embedded CE 6.0. Don’t miss this opportunity to learn from the experts at Microsoft.

Discover Windows Embedded CE R2 Features
Windows Embedded CE 6.0 R2 has a diverse set of features to ensure a complete development environment for tomorrows portable and small footprint devices. Gain a complete overview of our Driver Architecture.Discover Microsoft’s stream driver entry points. Review and understand the implementation and integration of a driver in a CE image. And finally, see a live demonstration of driver development and integration using Windows Embedded CE 6.0 R2 emulator.

Demonstration

Microsoft will take you step-by-step through driver development and integration using Windows Embedded CE 6.0 R2. During the presentation you will see code analysis of a simple stream driver, CE driver integration and testing in existing Windows CE images, and review catalog component creation for the driver.

Special NEW ZUNE Drawing

Registration and attendance for this educational event enters you in our special drawing for a NEW ZUNE Digital Media Player at the end of event. The NEW Zune digital media player features wireless sync, extended wireless sharing, new innovative touch controls, a built-in FM tuner, recorded television content to go, and more…Register Today for your chance to win.