Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Invalide filename pased to FileOpen" message trying to browse for FDB file [ODBC18] #20

Closed
firebird-automations opened this issue Jul 26, 2006 · 6 comments

Comments

@firebird-automations
Copy link

Submitted by: Jorge Andres Brugger (jbrugger)

Assigned to: Vladimir Tsvigun (praktik)

Configure a DSN to use a remote server alias. Now try to change Database
parameter clicking "Browse" button. You will get a "Invalide filename
pased to FileOpen" error and therefore cannot browse for fdb file. Maybe
that validation should be done at "OK Button" event, but only when not
using aliases. Error is also not descriptive (end user maybe don't know
about what?s happening ... internal function names shouldn't be used in
message boxes).

Default folder for looking for Firebird client should be system, isn't
right? (I don't know how driver chooses the folder to browse). In this
case (Firebird Client), if the "Invalide filename pased to FileOpen"
error occurs, open file dialog should be opened without notice, because
there is not thing such aliases involved.

@firebird-automations
Copy link
Author

Modified by: Vladimir Tsvigun (praktik)

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Commented by: Vladimir Tsvigun (praktik)

Hi Jorge,

I have only one the simple decision:
- to take into account a code of a mistake FNERR _ INVALIDFILENAME ("Invalide filename pased to
FileOpen") and to execute repeatedly inquiry by specifying a folder "My Documents"

from help the OPENFILENAME structure :

lpstrInitialDir
Pointer to a string that specifies the initial file directory.
Windows NT 5.0 and later; Windows 98 and later:

If lpstrInitalDir is NULL and the current directory contains any files of the specified filter types, the initial directory is the current directory.

If lpstrInitalDir is NULL and the current directory does not contain any files of the specified filter types, the initial directory is the personal files directory of the current user. To specify the current user's personal files directory as the initial directory, set lpstrInitialDir to the path returned by calling theSHGetSpecialFolderLocation function with the CSIDL_PERSONAL flag.

Earlier versions of Windows and Windows NT:

If lpstrInitalDir is NULL, the initial directory is the current directory.

It is good variant?

@firebird-automations
Copy link
Author

Commented by: Vladimir Tsvigun (praktik)

Hi Jorge,

if the file path example: COMPUTER:dummy
the it's error "Invalide filename pased to FileOpen"

In this case OdbcFb ignores a mistake
also carries out FileOpen Dialog with current folder
"My Documents"

@firebird-automations
Copy link
Author

Modified by: Vladimir Tsvigun (praktik)

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Commented by: Vladimir Tsvigun (praktik)

CVS changed

@firebird-automations
Copy link
Author

Modified by: Vladimir Tsvigun (praktik)

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant