Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows 7 issues?
Message
From
16/03/2010 09:14:05
 
 
To
12/03/2010 18:37:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01452056
Message ID:
01454749
Views:
135
Hi Don.

>This all means I will have to rewrite every app I have out there and reinstall every user because I have some still using XP and others moving to Vista and Win7. If I build the exe to look in \ProgramData for the file pointers, the XP users won't have those folders. I suppose the other option would be to have 2 versions of the exe but that will be a pain also.

No need for two versions; if you read the resources I mentioned, you'll see that it's pretty easy to create code that references writable locations in both XP and later versions. Also, the rewrite shouldn't be too difficult unless you hard-coded paths everywhere. Assuming you didn't use paths (for example, you used something like USE MyTable), then a simple SET PATH TO (lcDataDir) (where lcDataDir is an OS-specific writable location) would find the tables. If you use the DataEnvironment of forms, you can put code into Load that changes the location of the cursor objects in the DE. I spent about a day going through all file references in my main app and it wasn't too hard to do.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform