I've got a C function in a Max module that requires a callback that I would like to write in Max. The trouble is that it uses an argc/argv sort of thing, where argv is an array of incoming c strings and argc is the number of strings.
In C it's this:
I've tried many things in Max with no success:
Either these don't compile or I can't seem to access the C strings.
Does anyone know the correct way to do this?
In C it's this:
int callback(int argc, char **argv);
I've tried many things in Max with no success:
Function callback:Int(argc:Int, argv:Byte Ptr[]) Function callback:Int(argc:Int, argv:Byte[][]) Function callback:Int(argc:Int, argv$z[]) Function callback:Int(argc:Int, argv$z Ptr)
Either these don't compile or I can't seem to access the C strings.
Does anyone know the correct way to do this?