Extend system

Extend system

Postby byte-one » Wed Feb 28, 2007 10:03 pm

Hello all,
I write a interface for use of shape-files. All the sourcecode is in C. My problem are the array-parameters. In the Extended System from Harbour are no functions to send or retrieve arrays to/from a C-function. In some cases the arrays are given by reference. Is there a solution? Thanks.
Guenther
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Postby Antonio Linares » Wed Feb 28, 2007 10:14 pm

Guenther,

Harbour extend system is fully Clipper compatible so you have all the required functions to manage arrays:

To retrieve an array element:

hb_par...( iParamNum, iArrayIndex )

To create an array and return it:

hb_reta( iElements )

To set an array element:

hb_stor...( <uValue>, iParamNum, iArrayIndex )

where iParamNum is -1 if it is a created array using hb_reta()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests