![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
#1
|
|||
|
|||
|
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);
}
}
http://r.i.elhacker.net/cache?url=ht...images/130.png http://r.i.elhacker.net/cache?url=ht...images/131.png http://r.i.elhacker.net/cache?url=ht...ges/132sys.png 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. http://r.i.elhacker.net/cache?url=ht...images/133.png http://r.i.elhacker.net/cache?url=ht...ges/134eoe.png Saludo.
__________________
http://electronica-pic.blogspot.com....n-arduino.html Manuales de electrónica general, PIC y Arduino. |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Porque este código me da error (adjunto código) | David | JAVA | 1 | 12-03-2009 20:07:27 |
| contraer por codigo, cxGrid (+) los nodos abiertos cerrarlos por codigo | sakuragi | OOP | 6 | 27-07-2005 18:23:07 |
| ¿Codigo mal? | istradlin | Firebird e Interbase | 5 | 17-03-2005 23:19:33 |
| de codigo VB a codigo Delphi | ingel | Impresión | 2 | 20-07-2004 14:15:44 |
| DB por Codigo | P@kito | Conexión con bases de datos | 1 | 20-08-2003 01:04:19 |
|