PRODUCT : Borland C++ NUMBER : 1399 VERSION : 1.0 OS : OS/2 DATE : October 25, 1993 PAGE : 1/3 TITLE : Using BC++ for OS/2 with IBM Workframe/2 Using Borland C++ with the IBM Workframe/2 IBM allows third party vendors to design and implement their command line programming tools under the IBM Workframe/2. Borland C++ for OS/2 is designed to allow compilation and linking under the IBM Workframe/2 programming environment. NOTE: Make sure the HELP environment variable has the Borland C++ \BIN directory listed within. Bring the CONFIG.SYS file up in the Borland IDE and search for the HELP environment variable. For Workframe/2 to properly use Borland C++ the \BIN directory should be listed in the HELP variable. WORKFRAME READY EXAMPLE: SET HELP=C:\OS2\HELP;C:\BCOS2\BIN; WORKFRAME NOT READY EXAMPLE: SET HELP=C:\OS2\HELP; To properly install Borland C++ under the IBM Workframe/2 do the following. 1. Start IBM Workframe from workplace shell. 2. Choose under the TOOLS menu the Language Profile Management item. 3. In the Filename input line enter a filename that will be the language profile file. The name BCOS2 is perfectly acceptable and causes Workframe to create a file named BCOS2.PRF that contains the language profile information. 4. In the Language Name enter a unique language name that will identify the Borland C++ language profile inside the IBM Workframe. The name "Borland C++" is an example. 5. The Language Eyecatcher must be a unique name not listed in the Eyecatcher list box located in the bottom right of the dialog box. The Eyecatcher is a unique 8 character significant identifier that allows the Workframe to identify which executables to use from any given project. The Eyecatcher must not begin with the three letters "IBM", this prefix is reserved by IBM. PRODUCT : Borland C++ NUMBER : 1399 VERSION : 1.0 OS : OS/2 DATE : October 25, 1993 PAGE : 2/3 TITLE : Using BC++ for OS/2 with IBM Workframe/2 6. In the language extension input line enter ".cpp" for Borland C++. This tells the Workframe to compile all files that have the .cpp extension. 7. In the Language compile input line enter "bcc.exe" for the Borland C++ command line compiler. This is the executable IBM Workframe/2 uses for compilation. 8. In the Compile Options DLL input line enter "BC_WF.DLL". The Compiler Options DLL allows you to specify compiler options for the Borland C++ compiler when being called by IBM Workframe/2. 9. In the Language linker input line enter "tlink.exe" for the Borland C++ command line linker. This is the executable IBM Workframe/2 shells to for linking. 11. In the Linker Options DLL enter "tlink_wf". The Linker Options DLL allows you to specify linker options for the Borland C++ linker when being called by IBM Workframe/2. 12. Select the Language Variables button to set both your include and library paths for the Borland C++ compiler and linker. On a system where Borland C++ is installed on drive C:, the include path would be: "C:\BCOS2\INCLUDE" and the library path would be "C:\BCOS2\LIB". Click the OK Button to return the Language Profile Management dialog box when finished. 13. Click the OK Button on the Language Profile Management dialog box. Borland C++ for OS/2 is now installed in the IBM Wrkframe/2. You can change any of the Borland C++ compiler options through the menu choice OPTIONS under compiler options, and you can change any of the Borland C++ linker options through menu choice OPTIONS and menu item linker options when a project is open in IBM Workframe. Building a project ================== You can build a Borland C++ compiled/linked project by doing the following: PRODUCT : Borland C++ NUMBER : 1399 VERSION : 1.0 OS : OS/2 DATE : October 25, 1993 PAGE : 3/3 TITLE : Using BC++ for OS/2 with IBM Workframe/2 1. Choose from FILE menu project control item. 2. Choose from project control window the New button. 3. Enter in the New project dialog, the project description and the project name and hit enter, or mouse click on the more button to move to the next dialog box. 4. From the New Project dialog box enter a project description and a project directory. The project directory will contain all the files that are part of the project. 5. In the languages drop down list box find Borland C++ and mouse click. 6. The Borland C++ compiler and linker options can be changed with the appropriate buttons located at the bottom of the screen. 7. Click the OK button to complete project creation. The IBM Workframe/2 presents you with a newly created project file that will compile and link using the Borland C++ Tools. DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.