FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DLL convertation ...
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
DLL convertation ...
Posted: Mon Apr 11, 2011 05:10 PM
Hi ,

I'm converting wrapper of SqLite database : http://www.sqlitening.com/support/index.php . Very interesting solution to work with SqLite in network enviroment and as with server/client .

It's my first time with DLL management . Please , help me to convert this function . Originally it was created with PowerBasic and I want to adopt that for FWH + Harbour . My problem is that I don't know how to interpretate "byref" .

Code (fw): Select all Collapse
Declare Function sluRunProc lib "SQLiteningU.Dll" alias "sluRunProc" ( _
                                 byval ProcName as Long, _
                                 byref Parm1 as Long, _
                                 byref Parm2 as Long, _
                                 byval Parm3 as Long, _
                                 byval LengthOfParm3 as Long, _
                                 byref SizeOfParm3 as Long, _
                                 byval Parm4 as Dword, _
                                 byval LengthOfParm4 as Long, _
                                 byref SizeOfParm4 as Long, _
                                 byval ModChars as Long) as Long


Many thanks in advance !
Rimantas U.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: DLL convertation ...
Posted: Mon Apr 11, 2011 05:43 PM
Rimantas wrote:
Code (fw): Select all Collapse
byref Parm1 as Long,


Code (fw): Select all Collapse
@Parm1 AS PTR


EMG
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: DLL convertation ...
Posted: Mon Apr 11, 2011 05:51 PM
Enrico Maria Giordano wrote:
Rimantas wrote:
Code (fw): Select all Collapse
byref Parm1 as Long,


Code (fw): Select all Collapse
@Parm1 AS PTR


EMG


Thanks Enrico ! Now it will be easy to adopt . Maybe you can also explain about types ? PTR , LPSTR ? What types also I can to meet ? Sorry , I don't know C ... :-)

With best regards !
Rimantas U.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: DLL convertation ...
Posted: Mon Apr 11, 2011 06:00 PM
Code (fw): Select all Collapse
ProcName AS LONG
Parm4 AS DWORD


EMG
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: DLL convertation ...
Posted: Mon Apr 11, 2011 06:02 PM
Enrico Maria Giordano wrote:
Code (fw): Select all Collapse
ProcName AS LONG
Parm4 AS DWORD


EMG


Many thanks you , Enrico ! :-)
Rimantas U.

Continue the discussion