problemas con una librería
Publicado por IPQ (1 intervención) el 03/11/2006 17:43:10
Hola a todos,
Tengo un problema al importar una librería escrita con c++ en vb.net. El problema es que no logro que funcione bien. La función si hace algo pero no lo hace correctamente. El encabeado de la función en c++ es:
LONG C3ISOIN(HANDLE hCommDev, int nCCA, BYTE Cla, BYTE Ins,
BYTE P1, BYTE P2, BYTE P3, LPSTR Data, LPBYTE SW1, LPBYTE SW2, LONG TimeOut)
y mi correspondiente traducción a vb.net es:
Private Declare Function C3ISOIN Lib "LTC2x" (ByVal hComDev As IntPtr, ByVal CCA As Integer, _
ByVal Cla As Byte, ByVal Ins As Byte, ByVal P1 As Byte, ByVal P2 As Byte, ByRef P3 As Byte, _
ByVal Data() As Byte, ByRef SW1 As Byte, ByRef SW2 As Byte, ByVal TimeOut As Integer) As Integer
el problema está en la variable data.
Alguna sugerencia?
Gracias
Tengo un problema al importar una librería escrita con c++ en vb.net. El problema es que no logro que funcione bien. La función si hace algo pero no lo hace correctamente. El encabeado de la función en c++ es:
LONG C3ISOIN(HANDLE hCommDev, int nCCA, BYTE Cla, BYTE Ins,
BYTE P1, BYTE P2, BYTE P3, LPSTR Data, LPBYTE SW1, LPBYTE SW2, LONG TimeOut)
y mi correspondiente traducción a vb.net es:
Private Declare Function C3ISOIN Lib "LTC2x" (ByVal hComDev As IntPtr, ByVal CCA As Integer, _
ByVal Cla As Byte, ByVal Ins As Byte, ByVal P1 As Byte, ByVal P2 As Byte, ByRef P3 As Byte, _
ByVal Data() As Byte, ByRef SW1 As Byte, ByRef SW2 As Byte, ByVal TimeOut As Integer) As Integer
el problema está en la variable data.
Alguna sugerencia?
Gracias
Valora esta pregunta


0