Passing strings from lcs to C function

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
bodah
Posts: 4
Joined: Wed Dec 16, 2020 7:42 am

Passing strings from lcs to C function

Post by bodah » Mon Dec 28, 2020 10:41 pm

Hi stuck trying to pass a string from lcs to a char * c function. Have tried passing a pointer to the function but livecode just crashes. Any guidance / code snippets would be appreciated

PaulDaMacMan
Posts: 616
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Passing strings from lcs to C function

Post by PaulDaMacMan » Fri Jan 08, 2021 1:22 am

I posted how to do this in this tip here:
http://forums.livecode.com/viewtopic.ph ... 15#p199368

Please let me know if that information is clear enough to understand or not.
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

Post Reply

Return to “LiveCode Builder”