Return data to calling application.

BlitzMax Forums/BlitzMax Programming/Return data to calling application.

Trye declaring all strings to Byte ptr, and passing the string.ToCString as parameters, instead of the the strings.
I mean:
Function CreateProcess:Int(AppName:Byte ptr,CommandLine:Byte ptr,Security:Int,Thread:Int,Inherit,Flag:Int,Environ:Int,Dir:Byte ptr,Startup,Process)

and calling:
CreateProcess(AppNameVariable.ToCString(), CommandLineVariable.ToCString(), etc....)