General information
Title:
VFP5-VFP9 Conversion and include files
Environment versions
Network:
Windows 2003 Server
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
Next
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