DLL convertation ...

DLL convertation ...

Postby Rimantas » Mon Apr 11, 2011 5: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: Select all  Expand view

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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: DLL convertation ...

Postby Enrico Maria Giordano » Mon Apr 11, 2011 5:43 pm

Rimantas wrote:
Code: Select all  Expand view
byref Parm1 as Long,


Code: Select all  Expand view
@Parm1 AS PTR


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: DLL convertation ...

Postby Rimantas » Mon Apr 11, 2011 5:51 pm

Enrico Maria Giordano wrote:
Rimantas wrote:
Code: Select all  Expand view
byref Parm1 as Long,


Code: Select all  Expand view
@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 ... :cry:

With best regards !
Rimantas U.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: DLL convertation ...

Postby Enrico Maria Giordano » Mon Apr 11, 2011 6:00 pm

Code: Select all  Expand view
ProcName AS LONG
Parm4 AS DWORD


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: DLL convertation ...

Postby Rimantas » Mon Apr 11, 2011 6:02 pm

Enrico Maria Giordano wrote:
Code: Select all  Expand view
ProcName AS LONG
Parm4 AS DWORD


EMG


Many thanks you , Enrico ! :)
Rimantas U.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 108 guests