Imagen

DESCARGA SOFTWARE PARA FACTURA ELECTRONICA DE AQUI.
Facturacion, Validacion, Addendas, Librerias de programacion, etc.


CARTA PORTE V3.1

ECODEX TIENE ESTOS NUEVOS DATOS DE CONTACTO :
Comercializacion y Ventas - Evelia Vicke evicke@ecodex.com.mx 33-16-03-03-48
Soporte - Humberto Guerrero soporte@ecodex.com.mx 33-34-90-46-03


.

Primeros pasos con vb.net 2010 express Parte 1

Para quienes programan Visual Basic aqui esta la solucion
[[ FORO CERRADO DEBIDO A QUE YA LA INFORMACION YA NO ES VIGENTE ]]
Cerrado
visitante32
Mensajes: 41
Registrado: Jue Nov 25, 2010 10:23 am

Primeros pasos con vb.net 2010 express Parte 1

Mensaje por visitante32 »

En Visual Basic 2010 Express abres un nuevo proyecto.

Agrega un botón al formulario. Doble click al botón....
Agrega el siguiente código

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
PruebaSimple()
End Sub

Ahora, solo resta declarar la función PruebaSimple. En una sola linea de código se agrega lo siguiente:

Private Declare Function PruebaSimple Lib "CFDLib.dll" () As String

Compilamos..... y obtenemos el mensaje.
Captura1.JPG
Captura1.JPG (27.04 KiB) Visto 4607 veces

Bien, bien, ese mensaje muestra que la CFDLib.dll está trabajando correctamente
Al cerrar esa ventana... si te aparece el siguiente error
Captura2.JPG
Captura2.JPG (39.77 KiB) Visto 4606 veces

deberás hacer lo siguiente.
Localiza
Private Declare Function PruebaSimple Lib "CFDLib.dll" () As String
y Cambialo por

<Runtime.InteropServices.DllImport("CFDLib.dll", Entrypoint:="PruebaSimple")> _
Private Shared Sub PruebaSimple()
End Sub

Es otra forma de invocar la DLL y trabajará correctamente.


Saludos
Fernando
Cerrado