Re: Livecode Builder - passing lcs string to C functions

2020-12-31 Thread Dan Brown via use-livecode
Thanks so much for this Trevor, I can now retrieve requests from and respond to a virtual threaded http server which is nice. Now trying to work out how not to block the engine when the function that calls the server waits for a new request to come in i..e callback functions purely within lcb Dan

Re: Livecode Builder - passing lcs string to C functions

2020-12-28 Thread Trevor DeVore via use-livecode
On Mon, Dec 28, 2020 at 7:02 AM Dan Brown via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi I'm stuck trying to find examples of passing lcs strings to a C function > via pointer and it's driving me mad! I can retrieve char * pointers from C > functions, convert to string and pass back

Re: Livecode Builder - passing lcs string to C functions

2020-12-28 Thread John Balgenorth via use-livecode
Basically you just use a shell command to execute the c code and pass arguments to the c program right after you call the code in the shell command. I wrote and example and posted it a few years ago but I do not have access to my old email files at the moment but you might still be able to