Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling with Spanish WinXP

Status
Not open for further replies.

mccartmd

Programmer
Feb 3, 2003
63
US
I am having problems building my project on a Spanish version of Windows XP and a English version of FoxPro. The error is: (actually about 20 similar errors)

Compiling whatever.scx
Error in global include file: Include file 'c:\Program Files\Microsoft Visual FoxPro 7\foxpro.h' is not found.


The problem is due to the fact that 'Program Files' is actually called 'Archivos de Programa' on this XP. Maybe the path is hard-coded somewhere? This occurs with forms and libs.

Any ideas would be greatly appreciated. Thanks.

Mike
 
Hello Mike.

>> The problem is due to the fact that 'Program Files' is actually called 'Archivos de Programa' on this XP. Maybe the path is hard-coded somewhere? This occurs with forms and libs. <<

Since I do not generally use include files, there may be a quicker way to do this, but I do not know what it is ;-)

For your forms and classes that use the include file, you can open them up in the appropriate designer (visual form designer of visual class designer) and select form or class from the menu. Then you select include file and point the entity at the correct FoxPro.h file.





Marcia G. Akins
 
Marcia:

Your quote: "Since I do not generally use include files. . "

. . .beginner question. What are include files used for?
and how do you "exclude" them?

Appreciate any feedback.

THX

Bill
 
Hi Mike.

>> . . .beginner question. What are include files used for? <<

Include file contain names for constants used in your forms, classes or prgs. Take a look at FoxPro.h. Some people think that they make your code more readable. In some cases it does make sense to use them: for example I have automation classes that wrap Excel and Word. In these cases, I create an include file of the named constants from Word and Excel because all the documentation referes to them.

Most of time, though, I think that include files obscure the code and cause problems. Case in point: the one that you are having right now ;-)





Marcia G. Akins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top