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
Extend system
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
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()
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()