Originally, you indicated that you wanted to TRAP the dialog from popping up... Try this:
UINT prevErrorMode;
// save off the current error mode
prevErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
// access the media... or not, but the error will come
// in the form of a return code, and...
Here is a quick trick to fix the files for access from a DOS/Windows based system.
Load the File with EDIT.
Save File as the original name.
Exit from EDIT.
All better now. Edit can read UNIX EOL'd files, but only saves DOS/WINDOWS EOL'd files. At least EDIT has one good use!
I have a couple of routines that I use to encrypt/decrypt passwords for many of the programs that I write. It is very simple and, at best, will only keep the honest people honest. You're welcome to it, if it will help:
// encrypt a password from text to add-index
char *EncryptPassword(char...
A couple of ways...<br>
1) With explorer, find command.com (cmd.exe on NT). (Type 'echo %COMSPEC%' at an MSDOS prompt to find the one it will use.) From explorer, right click on it and set the close on exit check box. save and exit.<br>
<br>
2) Launch the batch file with the /C (run command and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.