Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Errors when recompiling in VFP8
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01180212
Message ID:
01180224
Vues:
11
>I have most of my clients in VFP 9 SP2, however a couple are in VFP 8. Accordingly, if I start working on one of the VFP 8 apps, I have to do a recompile all at the outset to avoid problems (such as "Property ANCHOR not found"). But I get a strange error that is difficult to overcome and I'm wondering if others have seen it.
>
>I have an INCLUDE file that contains the following lines:
>
>
>#DEFINE TB_PROPERTIES_LOC    "Properties"
>#DEFINE TB_DOCVIEW_LOC       "Document View"
>
>
>This is from STRINGS.H as supplied by MS. When I recompile in VFP 8 after compiling in VFP 9 (in other words, I do a "recompile all" on some other app in VFP 9), I get an error during compilation that says "GetString not found". It claims it's in a particular VCX, but I can't find it. Then when I start the app it says TB_PROPERTIES_LOC and TB_DOCVIEW_LOC are undefined. I've seen this before and I can get past it, however it's a pain and I'm not sure what action really gets me past it. What I do is go into STRINGS.H and change it. I also do a COMPILE CLASSLIB on the VCX that it claims GetString is in. And I do a recompile all on the app. Sometimes I have to open the offending VCX and make a change and close it and then recompile it, then recompile the app. With enough of this activity I can get past the error, but I haven't been able to determine an exact sequence of events that fixes the problem. It seems that when I think I've discovered it, the next time it happens that
>sequence does not work and I have to keep futzing around with it. Has anyone seen this and what has worked for you to get it resolved?

Russell,


Do not know, whether it will help, but just in case:

There are several distinct strings.h files that (probably) are appropriate for different MS products. At least on my PC I have found 3 different versions. Neither of them contains define statements with TB_PROPERTIES_LOC or TB_DOCVIEW_LOC. However one of them contains defines like:

#define blah-blah GetString("blah-blah")

Putting all this and also what you have said together I may assume that somehow in your VFP8 project path you have strings.h file that is not what is expected for your project; and in this strings.h file there are defines like "Properties" or "TB_PROPERTIES_LOC" but redefined using GetString() sentence.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform