Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only