Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have run into a few issues upgrading our source to VFP9. Most of them rather minor, though.</p> <p>The first thing you need to do is review the What's New documentation for VFP7, VFP8 and VFP9. I know this seems like a pain, but it should be your first stop when upgrading a project. Documentation for VFP6 and up can be found on <a href="http://msdn.microsoft.com/en-us/library/ms950411.aspx" rel="nofollow">MSDN</a>.</p> <p>Many new properties and methods have been added to classes. If one of these conflicts with custom properties/methods, you'll run into errors.</p> <p>Also, you will need to become aware of <a href="http://msdn.microsoft.com/en-us/library/bb530410.aspx" rel="nofollow">Vista UAC requirements</a> and <a href="http://fox.wikis.com/wc.dll?Wiki~MeetingTheChallengesOfVistaUserAccountControl~VFP" rel="nofollow">how to deal with them</a>. Programs compiled with VFP8 or below are executed in "compatibility" mode. With VFP9 programs are compiled with a Vista Application Manifest, meaning the requestedExecutionLevel in the application manifest is set to asInvoker. VFP8 and below do not include this in the manifest (or do not include a manifest at all), hence the compatibility mode.</p> <p>This means that when running the program on Vista, several things will fail or cause errors.</p> <ol> <li>Attempting to write to HKEY_LOCAL_MACHINE in the registry will fail.</li> <li>Attempting to write a file to %programfiles% or any protected folder will generate an error. Programs should only write to <a href="http://msdn.microsoft.com/en-us/library/bb762494%28VS.85%29.aspx" rel="nofollow">common folders</a>.</li> </ol> <p>You have the option of <a href="http://blogs.msdn.com/b/calvin_hsia/archive/2007/04/13/add-a-manifest-to-control-your-application-vista-uac-behavior.aspx" rel="nofollow">updating the Application Manifest</a>, but I wouldn't necessarily recommend it, unless your program absolutely requires administrative priviledges.</p> <p>Finally, there are a number of Vista incompatibilities - <a href="http://fox.wikis.com/wc.dll?Wiki~VistaAeroIssues" rel="nofollow">some dealing specifically with Aero</a> - that were fixed with VFP9 SP2. So, if you are going to be using VFP9, be sure to use Service Pack 2.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload