Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5-VFP9 Conversion and include files
Message
De
12/02/2007 15:37:01
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01194861
Message ID:
01194872
Vues:
4
Try changing the line
#INCLUDE INCLUDE\APPINCL.H
to
#INCLUDE APPINCL.H
I can't recall the cause exactly, but it had to do with the search for the include file working differently in VFP9. This is what I did to fix it. If that doesn't work, you may have to adjust the Path generated by CodeBook. Let me know if that doesn't get it.

...Jim

>I am converting a VFP5 application to VFP9.
>
>The offending line in the code is:
>#INCLUDE INCLUDE\APPINCL.H
> The file is in the directory and has that name.Its contents are below:
>
>#INCLUDE "FOXPRO.H"
>#INCLUDE "STRINGS.H"
>#INCLUDE "\STONEFIELD\SDT\SOURCE\SDT.H"
>
>#DEFINE GB_SystemName "Frantisi Database System"
>#DEFINE Gb_CompanyName "Software Strategies."
>#DEFINE GB_DevelopedBy "Developed By Software Strategies"
>#DEFINE GB_Copyright "Copyright 1998"
>
>#DEFINE DEBUGMODE .F.
>#DEFINE CRLF CHR(13) + CHR(10)
>#DEFINE CR CHR(13)
>#DEFINE TAB CHR(9)
>
>#DEFINE CURRENCY "$"
>#DEFINE AERRORARRAY 7
>
>*-- These constants are used in Maintenance Form to
>*-- indicate the status of the current alias
>#DEFINE FILE_OK 0
>#DEFINE FILE_BOF 1
>#DEFINE FILE_EOF 2
>#DEFINE FILE_CANCEL 3
>
>*-- Constants to identify which trigger failed
>*-- using element 5 of the array returned by
>*-- AERROR(), as well as to reference the appropriate
>*-- array element in the error message array: aErrorMsg[]
>#DEFINE INSERTTRIG 1
>#DEFINE UPDATETRIG 2
>#DEFINE DELETETRIG 3
>
>*-- Constants used to read the system registry
>#DEFINE HKEY_LOCAL_MACHINE -2147483646
>#DEFINE KEY_SHARED_TOOLS_LOCATION "Software\Microsoft\Shared Tools Location"
>#DEFINE KEY_NTCURRENTVERSION "Software\Microsoft\Windows NT\CurrentVersion"
>#DEFINE KEY_WIN4CURRENTVERSION "Software\Microsoft\Windows\CurrentVersion"
>#DEFINE KEY_QUERY_VALUE 1
>#DEFINE ERROR_SUCCESS 0
>
>
>This file does not seem to be included as the global variables above, do not get set. When I step through the code, it jumps over this line as if it is not there.
>
>What am I doing wrong? When the app runs one of the variables GB_SystemName, holds the application name and is shown in the title bar of the application. Needless to say, it blows up in VFP9 with a variable not found error.
>
>What's going on?
>
>Any ideas?
>
>TIA,
>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform