EatScripterRuntime with message 'RUNTIME ERROR method expects argument 1 as variable reference'
Now
I have tried AMachine->SetInputArg(1, &Name1); but that gives
the same error. But i also may not be declaring it as ByRef in the basic
script correctly? Any help would be appreciated. Thanks.
When registering the function using DefineMethod, you must call SetVarArgs([1, 2]) in the created method to specify what parameters will be passed as reference:
Ok, I gave you an example in Delphi. You just need to use the C++ syntax to pass an "array of byte" to the function, which in C++ should be something like this: