Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/06/2010, 09:01
REHome
 
Fecha de Ingreso: mayo-2007
Ubicación: PIC-16F84A
Mensajes: 729
Antigüedad: 17 años, 3 meses
Puntos: 8
Código a C++

Buenas:

Quiero pasar este pedazo de código de C# a C++ 2010. ¿Cómo es?

Código:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Runtime.InteropServices; // No olvidar aqui.

namespace Puerto_paralelo
{
    class PortInterop
    {
        [DllImport("inpout32.dll", EntryPoint = "Out32")]
        public static extern void Output(int adress, int value);
        [DllImport("inpout32.dll", EntryPoint = "Inp32")]
        public static extern int Input(int adress);
    }
}
He creado una clase como indica abajo.







A partir de aquí se me crearon el .h y el .cpp. Por aquí estoy perdido y no se como pasarlo de C# a C++ con Visual C++ 2010.





Saludo.
__________________
Meta Shell, VERSIÓN 1.2.2
Descargar