Microsoft KB Archive/141313

= How to Have One Executable Call Another w/FoxPro for Macintosh =

Article ID: 141313

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft FoxPro 2.6a Professional Edition for Macintosh
 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q141313



SUMMARY
Under Windows, FoxPro executables have an .exe extension, and it is possible to have one executable call another. FoxPro for Macintosh executables are not built with the .exe extension by default. FoxPro for Macintosh executables have no extension by default. Executables built with no extension cannot be called by another executable. A "file not found" message is returned. To allow an executable to call another executable, place an .exe extension on the name of the called executable.



MORE INFORMATION
The following steps demonstrate how one executable file can call another executable on the Macintosh.

  Create a project called FIRST with one program that contains code similar to this: WAIT WINDOW "ONE" DO SECOND   Create a project called SECOND with one program that contains: WAIT WINDOW "TWO"  Build both projects so that the executables are both in the same folder. Close FoxPro, and open the folder containing the two executables. Double-click the executable called FIRST. When it tries to execute the line DO SECOND, the message "File 'Second' does not exist" will appear. Replace the line DO SECOND with DO SECOND.EXE. When building the second executable give it the name SECOND.EXE. The first executable will now be able to call the second executable successfully.

Also note that if the calling executable (FIRST) is built after the called executable (SECOND), the message "Unable to find proc./func. SECOND" will appear during the build. When the .exe extension is added to the executable it will be placed in the project as an application and marked as excluded.

Additional query words: VFoxMac FoxMac

Keywords: KB141313

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.