Aide Visual Studio 2005

Aide Visual Studio 2005 - Divers - Programmation

Marsh Posté le 18-02-2008 à 00:13:07    

Bonjour,
 
Il y a quelques temps, je cherchais un logiciel permettant de controler deux souris sur un meme ordinateur, et je suis tomber sur un petit log de microsoft, malheureusement pour moi, il y a des manipulations a faire sous visual studio.
 
Etant un gros débutant dans le domaine de la programmation, je viens chercher de l'aide...
 
Alors voici ce que l'aide du logiciel en anglais me demande de faire :
 

Citation :

Microsoft Windows MultiPoint Software Development Kit (SDK)
Creating a Windows MultiPoint Application
The MultiPoint SDK allows developers to create applications that support multiple input devices. The Windows MultiPoint SDK includes support for multiple mice with Microsoft.MultiPoint.MultiPointMousePlugIn.dll and Microsoft.MultiPoint.MultiPointMouseControls.dll.
 
Follow the steps below to get started using the Windows MultiPoint SDK to support multiple mouse devices. You can also refer the provided samples for additional examples.
 
Step 1: Add References to Your Project
 
 
Create a new project in Microsoft Visual Studio and add the following references (located in the MultiPoint SDK Bin folder) to your project:  
• Microsoft.MultiPoint.MultiPointSDK.dll  
• Microsoft.MultiPoint.MultiPointCommonTypes.dll  
• Microsoft.MultiPoint.MultiPointInputFilter.dll  
• Microsoft.MultiPoint.MultiPointMousePlugIn.dll  
Step 2: Add MultiPoint-Enabled Controls
 
 
Add MultiPoint-enabled controls to your project using the following XAML:
<Window x:Class="TestApplication.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mpns="clr-namespace:Microsoft.MultiPoint.MultiPointControls;assembly=Microsoft.MultiPoint.MultiPointControls"
Title="TestApplication" Height="300" Width="300"
WindowState ="Maximized">
<Grid>
<mpns:MultiPointButton Content="Click Me" Height="100" Width="200" Name="MultiPointTestButton" Margin="100,100,0,0" />
<mpns:MultiPointTextBox Margin="104,80,188,0" Name="MultiPointTestTextBox" Height="23" VerticalAlignment="Top" />
</Grid>
</Window>
Step 3: Add MultiPoint Device Support and Customize Cursors
 
 
Create a public static instance of MultiPointSDK class in the App.xaml.cs so that the object instance is created and is available throughout the application.
using Microsoft.MultiPoint.MultiPointSDK;  
static public MultiPointSDK MultiPointObject = MultiPointSDK.GetInstance();
Add the following namespaces in the Window1.xaml.cs file.  
 
using Microsoft.MultiPoint.MultiPointCommonTypes;
using Microsoft.MultiPoint.MultiPointSDK;
using Microsoft.MultiPoint.MultiPointMousePlugIn;
using Microsoft.MultiPoint.MultiPointControls;
 Register the mouse device and draw visual for all mouse devices using the following.  
The RegisterMouseDevice and DrawMouseDevices methods can be called only after the CurrentWindow property is set to the current window. This can be done in the StartupUri window once the Window is loaded (in event handler for this.Loaded event). Alternatively DrawDevices method can be called to draw visuals for all registered devices.
App.MultiPointObject.RegisterMouseDevice();
App.MultiPointObject.CurrentWindow = this;
App.MultiPointObject.DrawMouseDevices();
Set the system cursor to a fixed position and hide it using the following code.
// Move system cursor to a fixed location so it doesn't cause any trouble
MultiPointSDK.SystemCursorPosition = new Point((int)this.Left + 10, (int)this.Top + 10);
 
// Hide the system cursor
MultiPointSDK.HideSystemCursor();
Set properties of the MultiPoint devices.
// Set cursor color to green
((MultiPointMouseDevice)((DeviceInfo)(App.MultiPointObject.MouseDeviceList[0])).DeviceVisual).CursorColor = System.Windows.Media.Colors.Green;
 
// Set cursor speed to 2
((MultiPointMouseDevice)((DeviceInfo)(App.MultiPointObject.MouseDeviceList[0])).DeviceVisual).MouseSpeed = 2;
Associate MultiPoint events with event handlers in the constructor of WPF window using the following:
// Preview events for Button
MultiPointTestButton.MultiPointPreviewMouseLeftButtonDownEvent += new RoutedEventHandler(MultiPointTestButtonPreviewLeftButtonDown);
         MultiPointTestButton.MultiPointPreviewMouseLeftButtonUpEvent+=new RoutedEventHandler(MultiPointTestButtonPreviewLeftButtonUp);
 
// Preview events for TextBox
MultiPointTestTextBox.MultiPointPreviewMouseLeftButtonDownEvent += new RoutedEventHandler(MultiPointTestTextBoxPreviewLeftButtonDown);
         MultiPointTestTextBox.MultiPointPreviewMouseLeftButtonUpEvent+=new RoutedEventHandler(MultiPointTestTextBoxPreviewLeftButtonUp);
Additionally the SDK supports Plug-n-Play. The following events are raised when a device whose device-type is already registered has been plugged or un-plugged.
// Device Arrival Event and Device Remove Complete Event
App.MultiPointObject.DeviceArrivalEvent += new EventHandler<DeviceNotifyEventArgs>(MultiPointObject_DeviceArrivalEvent);
 
App.MultiPointObject.DeviceRemoveCompleteEvent += new EventHandler<DeviceNotifyEventArgs>(MultiPointObject_DeviceRemoveCompleteEvent);
Add Microsoft.MultiPoint.MultiPointSDK.dll.config from the MultiPointSDK\Bin directory as an existing item to your project. Change the “Copy to Output Directory” property of this file to “Copy if newer” so that the Windows MultiPoint SDK knows where to find the MultiPoint Mouse Plugin. Additionally the filter and provider dll’s should reside in the same folder as that of Microsoft.MultiPoint.MultiPointSDK.dll.  
Note: Visual Studio Template  
The MultiPoint SDK provides the visual studio template to build MultiPoint application. It provides a starting point for writing MultiPoint applications.
 


 
Comme ce n'est pas très clair, j'ai uploadé le fichier d'aide entier ici :
 
http://www.mediafire.com/?8muz198exmg
 
Donc, je pense avoir passer le premier point, en faisant Projet, Ajouter des références.
 
Mais la je ne sais plus quoi faire, je suis bloqué...
 
Pouvez vous me guider?
 
Merci.


---------------
[LIVRE] Comprendre et Améliorer le nouveau DPE 2021 - Code HFR : forum-hfr
Reply

Marsh Posté le 18-02-2008 à 00:13:07   

Reply

Marsh Posté le 18-02-2008 à 12:27:11    

ben maintenant t'as plus qu'à programmer mon coco [:jagstang]

Reply

Marsh Posté le 18-02-2008 à 14:58:33    

Oui, mais c'est décrit pas a pas, mais je ne comprends pas le second point using "the following XAML", c'est ma première avec visual.. :sweat:


---------------
[LIVRE] Comprendre et Améliorer le nouveau DPE 2021 - Code HFR : forum-hfr
Reply

Marsh Posté le 18-02-2008 à 15:24:52    

Ce que tu as téléchargé, c'est un outil destiné à des développeurs. Ca ne te permet d'utiliser directement deux souris sur ton ordi, avec tes programmes existants, mais de développer des programmes qui fonctionnent avec deux souris !
Après, si tu veux te lancer dans la programmation, ça peut être un bon début :P


---------------
Kao ..98 - Uplay (R6S) : kao98.7.62x39 - Origin (BF4, BF1) : kntkao98
Reply

Marsh Posté le 18-02-2008 à 15:50:58    

Ah d'accord... Euh, non pour commencer, cela risque de m'embéter, je viens juste de débuter le C++, alors...
 
Donc depuis 2006 que microsoft a fait l'annonce de ce programme, ils n'en n'ont rien fait...


---------------
[LIVRE] Comprendre et Améliorer le nouveau DPE 2021 - Code HFR : forum-hfr
Reply

Marsh Posté le 18-02-2008 à 15:55:03    

C'est pas un programme ! C'est un SDK !


---------------
Kao ..98 - Uplay (R6S) : kao98.7.62x39 - Origin (BF4, BF1) : kntkao98
Reply

Marsh Posté le 18-02-2008 à 16:04:58    

Merci, donc cela n'a pas été jusqu'au bout :
 
http://www.pcinpact.com/actu/news/ [...] iPoint.htm
 
A-t-on des chances de le voir un jour?


---------------
[LIVRE] Comprendre et Améliorer le nouveau DPE 2021 - Code HFR : forum-hfr
Reply

Marsh Posté le 18-02-2008 à 16:16:44    

Non, tu comprends pas. C'est un SDK ! Ils sont allé au bout !
Maintenant, aux développeurs de développer des applications qui gèrent ça !


---------------
Kao ..98 - Uplay (R6S) : kao98.7.62x39 - Origin (BF4, BF1) : kntkao98
Reply

Marsh Posté le 18-02-2008 à 16:18:35    

Mais on te dit que c'est un SDK bondieu [:pingouino]
C'est un ensemble de librairies permettant de développer des applications utilisant 2 souris, pas une application toute faite !

 

edit: toasted


Message édité par Harkonnen le 18-02-2008 à 16:18:56
Reply

Marsh Posté le 18-02-2008 à 16:26:03    

En effet, je n'avais pas compris... je m'en vais....
 
Merci.
 
 :hello:


---------------
[LIVRE] Comprendre et Améliorer le nouveau DPE 2021 - Code HFR : forum-hfr
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed