Archive for the ‘WindowsCE’ Category
WindowsCE - [OpenNETCF] Createfile failed : 55
Written by lopezatienza on 13 Enero 2009 – 9:29 -Me he encontrado con este error al realizar una aplicación que se conecta a una Impresora por Bluetooth, con la dll OpenNETCF.IO.Serial en un PPC con Windows Mobile 5.0:
Createfile failed : 55
Esto es debido o bien, que el numero de puerto es incorrecto, que no existe, y muy probablemente (que es lo que me ha pasado a mi), que el puerto está ya abierto.
Aquí os paso la función de AbrirPuerto() que tengo implementada.
Read more »Tags: WindowsCE
Posted in WindowsCE | No Comments »
CSharp - Conexion Dial-up en C#
Written by lopezatienza on 12 Noviembre 2008 – 11:30 -Primeramente crearemos una clase llamada RAS con el siguiente código:
using System.Runtime.InteropServices;
/// Descripción breve de RAS.
///
// Clase comunicaciones REMOTAS
public class RAS
{
[DllImport("coredll.dll", CharSet = CharSet.Unicode)]
private static extern int RasDial(int dialExtensions, int phoneBookPath, IntPtr rasDialParam, int NotifierType, int notifier, ref int hRasConn);
[DllImport("coredll.dll", CharSet = CharSet.Unicode)]
private static extern int RasHangUp(int hRasConn);
Tags: C#, CSharp, WindowsCE
Posted in CSharp, WindowsCE | 2 Comments »
