File Not found when file is there 
Author Message
 File Not found when file is there

Hi ... I am having this wierd problem in that .... when someone
installs my EXE on their machine, a file not found is appearing even
though the file is there.

I am using a data control which contains the database name only (no
path)... and it seems to work fine when I install under Windows 3.1,
but not in 95.

I am using Wise installation system..  I am using Visual Basic 16 bit
edition.  Also, I am using Windows 95B and am running fat32 on my
system.

Has this happened to anyone?  Any suggestions?  This is really
baffling me...

Thanks,

Kevin



Thu, 27 Jul 2000 03:00:00 GMT  
 File Not found when file is there

A little more information.... the exact error message I'm getting is:

Couldn't Find File 'GSCOUT.MDB'

It is error 3024.

Once again, it works fine on Win3.1, however it's not working on Win95
systems .. which is baffling the heck out of me.

Thanks,

Kevin

Quote:

>Hi ... I am having this wierd problem in that .... when someone
>installs my EXE on their machine, a file not found is appearing even
>though the file is there.

>I am using a data control which contains the database name only (no
>path)... and it seems to work fine when I install under Windows 3.1,
>but not in 95.

>I am using Wise installation system..  I am using Visual Basic 16 bit
>edition.  Also, I am using Windows 95B and am running fat32 on my
>system.

>Has this happened to anyone?  Any suggestions?  This is really
>baffling me...

>Thanks,

>Kevin



Thu, 27 Jul 2000 03:00:00 GMT  
 File Not found when file is there

Quote:

> A little more information.... the exact error message I'm getting is:

> Couldn't Find File 'GSCOUT.MDB'

> It is error 3024.

> Once again, it works fine on Win3.1, however it's not working on Win95
> systems .. which is baffling the heck out of me.

> Thanks,

> Kevin

3024 is not the standard VB file not found error ( 53 ). Are you calling
another app or dll to access the MDB file? maybe it got it's path
confused. if your MDB is located in your apps directory try prefixing
the path property App.Path to the file name.


Thu, 27 Jul 2000 03:00:00 GMT  
 File Not found when file is there

a) WIN 95: Are you trying to access your app outside of VB or inside VB?b)
WIN 3.1: Did you open your app in VB or out of VB?

If your code was like:
gsConnect = "GSCOUT.MDB" try gsConnect = App.Title & "\GSCOUT.MDB".
And try having the other database forms' Database Names as that, also:
Data1.DatabaseName = App.Title & "\GSCOUT.MDB"

Hope this helps. They are just suggestions

Computer Central

Quote:
> A little more information.... the exact error message I'm getting is:

> Couldn't Find File 'GSCOUT.MDB'

> It is error 3024.

> Once again, it works fine on Win3.1, however it's not working on Win95
> systems .. which is baffling the heck out of me.



Thu, 27 Jul 2000 03:00:00 GMT  
 File Not found when file is there

Well, I don't want to admit this... but I figured out the problem, and
it had to do with my installation set up... it wasn't keeping the
working directory -- <sigh> 4 days of scratching my had over that....
thanks for the help, though... Kevin

Quote:

>a) WIN 95: Are you trying to access your app outside of VB or inside VB?b)
>WIN 3.1: Did you open your app in VB or out of VB?

>If your code was like:
>gsConnect = "GSCOUT.MDB" try gsConnect = App.Title & "\GSCOUT.MDB".
>And try having the other database forms' Database Names as that, also:
>Data1.DatabaseName = App.Title & "\GSCOUT.MDB"

>Hope this helps. They are just suggestions

>Computer Central

>> A little more information.... the exact error message I'm getting is:

>> Couldn't Find File 'GSCOUT.MDB'

>> It is error 3024.

>> Once again, it works fine on Win3.1, however it's not working on Win95
>> systems .. which is baffling the heck out of me.



Sat, 29 Jul 2000 03:00:00 GMT  
 File Not found when file is there

Try specifying the startup directory in the startmenu short-cut.

If it works, you can specify the startup directory is Wise for when you
distribute the app.

Dm


Quote:

>Hi ... I am having this wierd problem in that .... when someone
>installs my EXE on their machine, a file not found is appearing even
>though the file is there.

>I am using a data control which contains the database name only (no
>path)... and it seems to work fine when I install under Windows 3.1,
>but not in 95.

>I am using Wise installation system..  I am using Visual Basic 16 bit
>edition.  Also, I am using Windows 95B and am running fat32 on my
>system.

>Has this happened to anyone?  Any suggestions?  This is really
>baffling me...

>Thanks,

>Kevin

--
Sincerely
Danger Mouse

Drop the X_ from my name.


Tue, 01 Aug 2000 03:00:00 GMT  
 File Not found when file is there

Good advise.  I use the App.path to determine where the program was launched.  

pre = app.path

I don't know what method you are using, but let us say it is the DataControl

DataControl.DataBaseName =  app.path & "\database.mdb"

I tested this it works perfectly.

    Try specifying the startup directory in the startmenu short-cut.

    If it works, you can specify the startup directory is Wise for when you
    distribute the app.

    Dm


    >
    >Hi ... I am having this wierd problem in that .... when someone
    >installs my EXE on their machine, a file not found is appearing even
    >though the file is there.
    >
    >I am using a data control which contains the database name only (no
    >path)... and it seems to work fine when I install under Windows 3.1,
    >but not in 95.
    >
    >I am using Wise installation system..  I am using Visual Basic 16 bit
    >edition.  Also, I am using Windows 95B and am running fat32 on my
    >system.
    >
    >Has this happened to anyone?  Any suggestions?  This is really
    >baffling me...
    >
    >Thanks,
    >
    >Kevin

    --
    Sincerely
    Danger Mouse

    Drop the X_ from my name.



Tue, 01 Aug 2000 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. File not Found / File already open

2. File not Found Error - DLL File

3. File not found using an external DLL file

4. Opening a dBase file : file not found but it exists really

5. Calling a DLL gives "File Not Found", but File Exists

6. ITS NOT A VIRUS, ITS A 404 ERROR, FILE NOT FOUND

7. msftqws.pdw - File could not be registered because it was not found

8. VB 4 Setup Wizard - trouble with files not being found after setup "Run-time error 53: file not found

9. error 3170 , ISAM file can not be found

10. File not found: VBA6.dll

11. File not found: vba5.dll error in distributed app

12. At wits end - File not found: VBA6.DLL

 

 
Powered by phpBB® Forum Software