-
Avoiding the sys dlg
Bonjour!
I'm using the code .....
Code:
if(FindFirstFile("a:\\*.*", &fd)!=INVALID_HANDLE_VALUE){
....
....
}else{
cout<<"Please insert disk-1"<<endl;
}
.... to check whether the floppy disk is inserted into the drive. But when a disk is not available, system’s "Insert disk" dialog box also executes with my error message. Is there a way to prevent the system's dialog being displayed?
Merci.
-
-
Another problem with your code is that you don't store the handle returned by FindFirstFile which you should call FindClose on.