hi all,
I am working in a carbon c++ application using xcode.
I am calling another program in my program.
I used the exec command..
my code is
The prgram going to execute is
/Users/laserwords/Desktop/Message_check/Carbon_ODBC_Example/main.c
int main(int argc, char* argv[])
{
printf("\n I am main \n");
IBNibRef nibRef;
OSStatus err;
}
The program which call another program is
void MainWindow::Starttheprocess()
{
printf("\n Execution starts \n ");
char* param1;
char* argv[1];
exec("/Users/laserwords/Desktop/Message_check/Carbon_ODBC_Example/main.c",param1,argv, NULL);
perror("execl");
printf("\n Execution ends \n"); }
}
I got the error as "permission denied"
What mistake i done here?
Thanks in advance...........
I am working in a carbon c++ application using xcode.
I am calling another program in my program.
I used the exec command..
my code is
The prgram going to execute is
/Users/laserwords/Desktop/Message_check/Carbon_ODBC_Example/main.c
int main(int argc, char* argv[])
{
printf("\n I am main \n");
IBNibRef nibRef;
OSStatus err;
}
The program which call another program is
void MainWindow::Starttheprocess()
{
printf("\n Execution starts \n ");
char* param1;
char* argv[1];
exec("/Users/laserwords/Desktop/Message_check/Carbon_ODBC_Example/main.c",param1,argv, NULL);
perror("execl");
printf("\n Execution ends \n"); }
}
I got the error as "permission denied"
What mistake i done here?
Thanks in advance...........