Why "Callback ProTkdllFunction" returns no output ProArgument to Web.Link caller
1. I have a toolkit "Callback ProTkdllFunction" named io() as listed below.
2. Call io() from Web.Link OK but count of the output ProArguments from io() is always 0 while it should be 1.
3. Problem must be somewhere in the function io() <-- I need help to find it.
The way to call io() from Web.Link :
sess.GetProToolkitDll("115937605053").ExecuteFunction("io",iArg)
"FunctionReturn": 32, <--- echo the iArg.value.v.i correctly
"OutputArguments": {}
}
{
"Count": 0 <==== should be 1, what's wrong in the function io() ????
}
#define DllExport __declspec( dllexport )
DllExport int io(ProArgument * inputs, ProArgument ** outputs){
ProArgument *args;
// compose the output ProArgument array , refer to protkdoc/api/provalue_h.html
ProArrayAlloc(1,sizeof(ProArgument),1,(ProArray*) &args);
ProValuedataStringSet( &(args[0].value), "hello world!");
outputs = &args;
return inputs->value.v.i; // echo the input ProArgument
}
