Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#include files
Message
De
07/10/2008 16:35:36
 
 
À
07/10/2008 16:24:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01353440
Message ID:
01353444
Vues:
18
>I have a project which I compile into an Win32 EXE file. As part of the project I have a program, called genericLogger.prg, which contains the following pre-processor directive: #include generic.h.
>
>I can successfully compile the EXE without errors yet when I run the EXE I get a message saying one of the #defines in the generic.h file is missing: "Variable 'FCREATE_READWRITE' is not found."
>
>I've tried to include the generic.h as part of the project but that makes no difference.
>
>I don't want to have to put these #include directly into the program since that really defeats the purpose of an include file.
>
>thanks in advance!

You should put that file in every PRG, Form, Class file that was created BEFORE you add this file in project (of course if you need to).
I don't know why but that is the MS decision :-)
But have:
#include [full path to H]SomeHFile.H

** code here
and than get an error? I never saw this.
Be careful, VFP is not a strong typing language. Compiler didn't raise errors when it saw not defined variables. So it threads FCREATE_READWRITE as a variable that shoulw come from some other module (like private or public variable).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform