|
Hi,
I'm trying to disable/ignore the ctrl+c in a c++ program.
I did it alot on UNIX but somehow it doens't work on WindowsXP,
I'm using the right function and typedefs but still....nothing.
I'm doing something like:
void someFunction(int sigNum){
signal (SIGINT,somefunction);
cout<<"eh eh, you can't use ctrl+c"<<endl;
}
main(){
signal(SIGINT,somefunction);
/*
Shell program
*/
}
I debuged the code and it looks like it's doesn't get into the someFunction at all and terminates and program as if I didn't use the signal function.
Any ideas?
thanks a lot.
|