Help,
Also ich habe eine Projektmappe mit einem Forms-Projekt und einer Klassenbibliothek, die u.a. RAPI enthält.
So hoffe ich über activesync auf mein usb verbundgerät zuzugreifen (CE5.0).
Hat jemand informationen wie ich das angehen soll/kann?
Ich finde im Internet irgendwie keine richtigen Tutorials zur RAPI.cs
Meine Klassenbibliothek heißt OpenNETCF.Desktop.Communication.
In meinem Forms Projekt habe ich über
using OpenNETCF.Desktop.Communication;
Meine MainForm.cs sieht bis jetzt so aus: (macht aber bis jetzt noch keinen Sinn, da der richtige Ansatz fehlt)
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56:
| using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Communication = OpenNETCF.Desktop.Communication; using OpenNETCF.Desktop.Communication;
namespace Logistic_Client_Installer { public partial class MainForm : Form { public MainForm() { InitializeComponent(); }
public event RAPIConnectedHandler RAPIConnected;
public event RAPIConnectedHandler RAPIDisconnected;
Communication.RAPI ra = new Communication.RAPI();
void RAPIUsage(object sender, Communication.RAPI e) { }
private void _button_connect_Click(object sender, EventArgs e) { ra.ActiveSync.ConnectNow(); if (ra.Connected == true) { Console.WriteLine("RAPI Status: active"); Console.ReadLine(); } }
private void _button_disconnect_Click(object sender, EventArgs e) { ra.ActiveSync.DisconnectNow(); if (ra.Connected == false) { Console.WriteLine("RAPI Status: inactive"); Console.ReadLine(); } } } } |
Für ein wenig unterstützung wäre ich sehr dankbar.