FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour parametrs in dll
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
parametrs in dll
Posted: Sat Jul 05, 2008 11:21 AM

How may I call out function _OWERSJA form WINIP.dll where p1,p2 there are names of files (p1 - file in, p2 - file out)

p1:="OWERSJA.IN"
p2:="OWERSJA.OUT"

err:=_OWersja(p1,p2)

declare DLL_TYPE_BYTE _OWersja(DLL_TYPE_LPTSTR cFile1, DLL_TYPE_LPTSTR cFile2) in winip.dll

best regards

kajot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
parametrs in dll
Posted: Sun Jul 06, 2008 05:40 PM

Try this:

DLL FUNCTION _OWERSJA( cFile1 AS LPSTR, cFile2 AS LPSTR ) AS LONG PASCAL LIB "winip.dll"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 357
Joined: Thu Nov 02, 2006 06:53 PM
parametrs in dll
Posted: Sun Jul 06, 2008 07:21 PM

in C

unsigned char __declspec(dllimport) _cdecl _OWersja(char in, char out);

my source:

include "FiveWin.ch"

//---------------------------------------------------------------------------//

function Main()

p1:="OWERSJA.IN"
p2:="OWERSJA.OUT"
err:=_OWersja( p1, p2 )
msginfo(err)

return nil

//---------------------------------------------------------------------------//
DLL FUNCTION _OWERSJA( cFile1 AS LPSTR, cFile2 AS LPSTR ) AS BYTE PASCAL LIB "WinIP.dll"

/

best regards

kajot

Continue the discussion