On Wed, 2 Apr 2003, Loris Chiocca wrote: > > > Write a C function called OpenFileName(char const *pszFileName), that when > > called with the special file name "com1", it calls the function > > OpenSpecialDevice(char const *pszFileName). Otherwise calls the function > > GenericFileOpen(char const *pszFileName). > > Easy... to the filename add the following: > newFilename = "\\\\??\\" + oldFilename; > > This will open the COMx port if oldFilename="COMx" and open any other file > if a path was added.
Why should an application do this crap to expect a *sane* behaviour from the OS ? Again, failing to create "com1" is fine, but failing to create "com1.bau.meaw" is *definitely* due a brain farting implementation. - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
