The information in this article applies to:
- Microsoft FoxPro for Macintosh, version 2.6a
SUMMARY
Below are the step-by-step instructions for compiling a .MLB file using the
Apple Macintosh Programmer's Workbench (MPW) version 3.3 and the Microsoft
FoxPro for Macintosh Library Construction Kit (LCK) files. The steps
include the specifics for compiling TESTLIB.C, which is supplied as a
sample .C program with the FoxPro LCK.
MORE INFORMATION
NOTE: Before performing these steps, you must install Microsoft FoxPro for
Macintosh (Professional Edition), MPW, and the C compiler.
Steps to Compile a .MLB File
- Move the following folders from the FoxPro:Library Construction Kit
folder to your hard drive folder:
ASLM Developer Tools
FoxLCK
- Move the UserStartup*LCK file from the FoxPro:Library Construction Kit
folder to your MPW Folder.
IMPORTANT: Compiling an .MLB file with MPW is most successful if your
hard drive volume name does not contain any spaces.
- Use the MPW Shell to correct the hard drive volume name on the following
lines in the UserStartup*LCK file:
set SLMInterfaces...
set SLMLibraries...
set Commands...
For example, if your hard drive name is "HD" (without the quotation
marks) instead of "Macintosh HD," then the lines would look like this:
set SLMInterfaces "HD:ASLM Developer Tools:Interfaces:"
set SLMLibraries "HD:ASLM Developer Tools:Libraries:"
set Commands "HD:ASLM Developer Tools:Tools:,{Commands}"
- Use the MPW Shell to correct the hard drive volume name on the ROOTDIR
line in the MakeFile file in the FoxLCK:Source folder. For example, if
your hard drive name is HD, the line would look like this:
ROOTDIR = HD:FoxLCK
NOTE: compiling is most successful if the hard drive name has no spaces,
as in this example.
- Exit and restart the MPW Shell.
- Choose "Set Directory" from the Directory menu in the MPW shell, and
select the folder that contains your source file, .EXP file, and
the MakeFile. For this example, select the FoxLCK:Source folder.
- Type "make" (without the quotation marks) on the MPW worksheet. Then
press the ENTER key on the numeric keypad or COMMAND+RETURN. The
MPW shell will echo the commands required to make the MLB file.
- Highlight the entire block of commands echoed from the MAKE command.
Then press ENTER (or COMMAND+RETURN). If the compile is successful, your
.MLB file will be located in the source folder.
Steps to Use a .MLB File
- Move the .MLB file to the System Folder:Extensions folder.
- Start FoxPro for Macintosh.
- In the Command window, type the following and press ENTER:
SET LIBRARY TO <.MLB file>
In this example, the .MLB file is "TESTLIB.MLB".
|