Buenas:
Quiero pasar este pedazo de código de C# a C++ 2010. ¿Cómo es?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices; // No olvidar aquí.
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);
}
}
Saludo.