(09-07-2023, 10:42 AM)BSpinoza Wrote: I want to use a C-Library together with QB64.
This works fine with number types as parameters.
But is this possible with strings (in C I have to use an array, I know!) and if yes, how ?
In the Help or Wiki of QB64 there is written (chapter "DECLARE LIBRARY"):
"Parameters used by the Library procedure must be passed by value (BYVAL) except for STRING characters."
You can have a look into my RegEx example or the QB-StdLibs folder in my Libraries collection to analyze how to pass strings and how to get back a string from the C function.
Simply follow the Library link in my signature.
GuiTools, Blankers & other Projects:
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23