changed all the outError params from cstringarray to var cstring