Page 1 of 1

Invocar un dll desde fivewin

PostPosted: Wed Nov 16, 2011 3:31 pm
by Vladimir Zorrilla
Amigos

Como se invoca a un dll desde fivewin

Me han dado unas indicaciones de como declarar la funcion pero en Visual Basic
Si alguien me puedo dar una mano le estaria eternamente agradecido.

Aqui esta segun las indicaciones la forma de usarlo en Visual Basic


Declare Function recivMSG2 Lib "Correo.dll" (ByVal c_pathMBOX As String, ByVal c_pathREC As String, ByVal n_CRITER As Integer, ByVal c_KEY As String) As Integer



Cual seria su equivalente en FiveWin

Mil Gracias

Vladimir Zorrilla Llerena

Re: Invocar un dll desde fivewin

PostPosted: Wed Nov 16, 2011 10:03 pm
by carlos vargas
bueno aca lo ideal es hacer un
impdef correo.def correo.dll
y ver en el def creado el nombre de la funcion con su dentificado.

Code: Select all  Expand view

DLL32 FUNCTION FUN_RECIVMSG2( cPathMBox AS LPSTR, cPathRec AS LPSTR, n_CRITER AS INTEGER, c_KEY AS LPSTR) AS INTEGER ;
   PASCAL FROM  "recivMSG2" LIB "Correo.dll"

or

DLL32 FUNCTION FUN_RECIVMSG2( cPathMBox AS LPSTR, cPathRec AS LPSTR, n_CRITER AS INTEGER, c_KEY AS LPSTR) AS INTEGER ;
   PASCAL FROM  "recivMSG2@9999" LIB "Correo.dll"

 

donde 9999 es el identificador de la funcion en def creado.

salu2

Re: Invocar un dll desde fivewin

PostPosted: Thu Nov 17, 2011 8:39 pm
by Vladimir Zorrilla
Gracias por contestar pero sale que no existe la variable INTEGER


Agradecido de antemano