FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Invocar un dll desde fivewin
Posts: 225
Joined: Tue Feb 28, 2006 04:25 PM
Invocar un dll desde fivewin
Posted: Wed Nov 16, 2011 03:31 PM

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

ME INTERESA FW Y XHB POR SER OPEN SOURCE
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Invocar un dll desde fivewin
Posted: Wed Nov 16, 2011 10:03 PM
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 (fw): Select all Collapse
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
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 225
Joined: Tue Feb 28, 2006 04:25 PM
Re: Invocar un dll desde fivewin
Posted: Thu Nov 17, 2011 08:39 PM

Gracias por contestar pero sale que no existe la variable INTEGER

Agradecido de antemano

ME INTERESA FW Y XHB POR SER OPEN SOURCE

Continue the discussion