Re: new people, new problems
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jan 29, 2004
- 511 views
>From: Derek Parnell <ddparnell at bigpond.com> >Subject: Re: new people, new problems > >----- Original Message ----- >From: "Guest" <guest at RapidEuphoria.com> >To: <EUforum at topica.com> >Subject: new people, new problems > <snip> > > 3. I met a problem with the db_open(), that is: > > after having performed a Win32lib getOpenFileName(), db_open() doesn't >work anymore. It becomes impossible to open any File.EDB, which before that >instruction was opened, read, written and then closed. > > Is there any medicine for? > >If you are opening a .EDB file using open(), you must use the "rb" (read >binary) method and you really should NEVER write to it. That would most >likely break the internal structure of the database file. > The problem is that the Open File Dialog changes the current directory of the program, so it can't find the files. The fix is to add this to the flags, the last parameter: {"Dialog Flags", OFN_NOCHANGEDIR}.