Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Resource File Again
Message
From
14/10/2017 11:40:17
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
13/10/2017 15:54:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Novell 6.x
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01654972
Message ID:
01654993
Views:
61
Likes (1)
>This is so annoying... I am getting the invalid resource file Do you want to replace thing again...
>
>Here is the strange thing this time:
>We always compile and copy to the network the exe which get moved to everyone's local PC via a batch file on their startup. This is their update process as well.
>
>they run the program that gets copied to their C:\queuels\username\ folder
>
>Well we were always good until now all of a sudden the network version runs fine when run directly from the network with a newly compiled version, but when copied to the C: path we get that error, but if I take the previous compiled exe version and copy it back in to the network and allow it to copy to the C: path it runs without the error. The only difference in the code is I copied an old form back into the project from a few weeks ago with one added object on it. How does that effect this resource error thing?

The foxuser.* files are usually not needed with a compiled exe. What you can do is add an internal config.fpw to your exe. In that config add the line RESOURCE=OFF. You cannot SET RESOURCE OFF in your exe as that is too late to prevent attempted creation of the resource files. If you do have need to override things on certain PCs via a config.fpw then you can add ALLOWEXTERNAL ON to the config.fpw in your exe, and have separate config.fpw files for those cases on those PCs.

Some people do have custom foxuser files for specific things. If you're one of those, you can also have your launcher send that to the local pcs. In your exe, SET RESOURCE TO that file, SET RESOURCE ON, pick out the stuff you need and SET RESOURCE OFF.
Previous
Reply
Map
View

Click here to load this message in the networking platform