Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5.0a CoExisting With VFP3.0b
Message
De
08/09/1998 10:21:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00134000
Message ID:
00134074
Vues:
14
>>>>>>>We have the runtime for 3 installed on all of the machines here (including my development pc). I have written an app in 5 and have created a generic setup with the wizzard. After running the setup on a machine, I run my app, which is on the network. When it runs, I get a Fox Error Asking if I want to Convert 3.0 Resource File to 5.0 Format. It doesn't matter whether I say Yes or No, either way, I get another Fox Error saying "File 'myapp.exe' does not exist" Then it quits. In my config.fpw I have a line Resource = C:\Windows\Temp\FoxUser5.Dbf So, I thought, it wouldn't conflict with the 3.0 resource files. What does all of this mean and how do I fix it?
>>>>>>>
>>>>>>>TIA
>>>>>>In config.fpw "set resource off" then if you need it set it to appropriate one in your startup.
>>>>>>Cetin
>>>>>
>>>>>That didn't work. Still get the same Errors. Any other ideas?
>>>>>
>>>>>TIA
>>>>Your config.fpw is the one that's used and "resource=off" fail ? Strange worked all the time for me. Other ideas, in a manner based on the fact that you can disable or change resource file via config.fpw or command line.
>>>>You could keep more than one config.fpw - config3.fpw and config5.fpw. In commandline (shortcut typically) "myapp.exe -Cconfig5.fpw" and you must be sure, you're really indicating different resource files. If you don't need them just "resource=off" is the best.
>>>>Cetin
>>>
>>>I'm including the config.fpw in the executable. I've been wondering when I should actually use a resource file? What benefits are gained by using/not using a resource file?
>>>
>>>TIA
>>Keep config.fpw external. Resource file first of all keep window, toolbar positions etc. If you ever using Fox diary it also needs resource file. Generally you keep all of them in your app and don't need it (in old times it was needed more for pdsetup, preferences etc). I don't use it anymore.
>>Cetin
>
>Ok, putting an external copy got rid of the first error asking about the resource file. Now I'm just getting the error "File 'timecard.exe' does not exist" Any ideas on that one? Why does the config.fpw not work when it's included? Let me rephrase that. Everything in it seems to work, except for the resource line, why?
Now try toexplain it w/o making definition errors. Your exe is really not the only one that executes and has control. There is also a runtime.dll (vfp500.dll). If you include it, it's accessed "later", after a resource is set. resource in fact not the only one that would be affected but most them are burried with FP2.x (long live FP 2.x). In VFP I think _screen=off would be affected the same way, and if ever used tmpfiles, sortwork,progwork,editwork etc.
Now "timecard.exe" doesn't exist is extremely app specific. Maybe you should hard code its path. It's not the same place where you start your exe and home(). Home() is typically windows\system (winnt\system) whereever the vfp500.dll is. For path problems also in config.fpw you could use "default = cDefPath" and "path=cPath".
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform