Question for LCB FFI workshop attendees at upcoming conference

Mark Wieder ahsoftware at sonic.net
Tue May 7 12:36:33 EDT 2019


On 5/7/19 6:35 AM, Trevor DeVore via use-livecode wrote:
> This is for anyone who plans on attending my workshop on using FFI in LCB
> at the conference. Is there any code (a macOS Framework, Windows API, DLL,
> dylib, etc.) that is written in Objective-C or that has a C wrapper that
> you are interested in wrapping with LCB in order to make it available to
> LiveCode?
> 
> If so, let me know in a response to this thread and I can take a look at it
> before the workshop to see if I can include it.

Are you going to be covering foreign aggregate types? For me that's the 
brick wall I run into when attempting to use LCB to access APIs. I have 
yet to run into a case where I don't need to access an embedded buffer 
in a C struct. If it's an 8-byte buffer, I can use

public foreign type tType binds to "CType:xxxxhhhhhhhhxxxx"

but when I need a 1024-byte buffer,

"CType:xxxxhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhxxxx"

is just too unreadable, unmaintainable, and error-prone to deal with.

-- 
  Mark Wieder
  ahsoftware at gmail.com


More information about the use-livecode mailing list