Build Instructions for a Sample MSVC/LINDO Application ------------------------------------------------------ This subdirectory contains a sample MS Visual C++ example that uses the 32 bit LINDO DLL to build and solve a small model. This example was built using MSVC 4.1. To build an executable from the source file, please do the following: 1. Use the LINDO definitions file (\LINDO\DLL32\LNDDLL32.DEF) to build an import library with the following DOS Command: LIB /DEF:LNDDLL32.DEF /OUT:LNDDLL32.LIB. Note: the LIB application is included with MSVC. 2. Start the MS Developer Studio application. 3. Create a new Project Workspace using the "File|New" command. The project type should be "Application" (i.e., a Windows application). 4. Use the "Insert|Files Into Project" command to add the following files to the project: STDAFX.CPP, LNDMSVCX.CPP, LDMSXDLG.CPP and LNDMSVCX.RC. 5. Use the "Build|Settings" command to indicate that you wish to use MFC as a shared DLL. In the "Build|Settings" dialog box, select the "General" tab. Next, select the "Use MFC in a Shared Dll" option in the "Microsoft Foundation Classes" list box. 6. Use the "Build|Settings" command to add the import library (LNDDLL32.LIB) created in step 1 to the project. In the Build|Settings dialog box, select the "Link" tab. Next, select "General" in the Category list box. Finally, in the "Object/Libraries" edit box enter the import library name, LNDDLL32.LIB. At this point, you should be able to build the sample application. In order to run it, you must make the LINDO DLL file (LNDDLL32.DLL) available to the application. Do this by either placing it in the same directory as the application or by putting it in a directory on the DOS path.