passing memory pointers across programs
passing memory pointers across programs
anyone has a successful example of passing memory pointers across programs in purebasic (like runprogram X and the output of X is a memory pointer which the parent can access??)
well there are 2 things here
1. i generate the source of the child file from the parent file
2. the array is defined along with its values which i dump into the child filed
3. similar to your esgrid, i simply write back the values/formulas given in a grid back to the child file (so X43 is already given a formula back in the child file as X43=X41+X32)
4. I then run the child file and it dumps back the actual values in the grid
5. i print the grid in the parent file
6. for every sheet/grid i make, i generate a new child file and wait for it's output which update's back the parent
so for example in a cell I should be able to type a purebasic formula/code snippet and the child file should throw back the values and the parent should print it back.
One option is back to back unix sockets. but i need it to "actually run those formulas", so rather than write my own interpreter i decided to poach back on PB itself
So I have
Parent-->has a Dim(x,y), inputs at parent-->generate child code-->child code executes and throws back values to parent-->parent simply displays the grid...
hope that helps clarify my point
1. i generate the source of the child file from the parent file
2. the array is defined along with its values which i dump into the child filed
3. similar to your esgrid, i simply write back the values/formulas given in a grid back to the child file (so X43 is already given a formula back in the child file as X43=X41+X32)
4. I then run the child file and it dumps back the actual values in the grid
5. i print the grid in the parent file
6. for every sheet/grid i make, i generate a new child file and wait for it's output which update's back the parent
so for example in a cell I should be able to type a purebasic formula/code snippet and the child file should throw back the values and the parent should print it back.
One option is back to back unix sockets. but i need it to "actually run those formulas", so rather than write my own interpreter i decided to poach back on PB itself
So I have
Parent-->has a Dim(x,y), inputs at parent-->generate child code-->child code executes and throws back values to parent-->parent simply displays the grid...
hope that helps clarify my point