> sprintf(buffer,_format_an_invalid_CL_command);
> rc = system(buffer);
> if(rc != 0)
> {
>   printf("Error is %s\n",_EXCP_MSGID);
>   exit(-1);
> }

system() doesn't work like that.

system() runs a 'self contained' task, the control boundary for it means that 
the any CPF msgs generated by it are 'out of scope' when system() returns 
control to you. If you want to be able to retrieve the CPF msgs, use QCAPCMD 
API instead of the system() runtime function.

--phil


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].