[futurebasic] code resources

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: support <support@...>
Date: Wed, 2 Jun 1999 13:33:18 -0500
Hello futurebasic people,

I have a c-code resource that I pass the address of a variable and an
array like this:

CALL "DCOD", 1935,(@Val&,@arrayval&(0))

In the c-code I have set up the main like this:

void main(long *arrayAddress,long *valAddress)

Then I use a for loop to store the array variables locally:

    mylocalarray[x] = arrayAddress[x];

This works fine while running from the development environment, but as
soon as I compile it, it causes a Type 1 error as soon as the first
iteration of the for loop assigns the array value. Does anyone have
any ideas or thoughts that might keep me in hair for a little while

Best wishes,
Robert Price
Programmer/Technical Support