Readme file for using Borland C/C++ Compiler version 4.0 to build user DLLs for Mathcad. The instructions below apply to the Integrated Development Environment IDE. To build a sample: (samples are under SOURCES subdirectory of your compiler directory). Each sample has a .ide project file and a .dsw file associated with it. To build a sample project just start the IDE, open the project and Rebuild it. How to build a new project in the Integrated Development Environment IDE: Start a new project and select: Target Type : Dynamic Library Platform : Win32 Standard Libraries : Static(Unless Borland's runtime libraries will be available when running the DLL in which case you can use Dynamic to get a smaller DLL file) Choose a project path and name and a target name (target is your DLL) Under Advanced options click off .def and .rc unless you are going to supply your own .def and/or .rc files. Also choose the No Source Node under Initial Nodes. Add your source files to the project. Add the library file MCADUSER.LIB in the BORLAND\LIB directory to the project. Under Options Project Directories: Add the directory where the include file MCADINCL.H for BORLAND is located, e.g. C:\WINMCAD\USEREFI\BORLAND\INCLUDE (or ..\..\INCLUDE in relative notation for the samples) to the Include path. Optionally: Add the USEREFI directory, e.g. C:\WINMCAD\USEREFI (or ..\..\..\ in relative notation for the samples) to the Final path. Borland does not support 8 byte alignment of structures. Use 4 byte alignment instead. Now you are ready to build the DLL. You can do this by choosing "Build all" under the menu option Project. After building you have to move the DLL to the USEREFI directory under MATHCAD's default directory, e.g. C:\WINMCAD\USEREFI. This would be done automatically if you have specified the USEREFI path under the Final path. Comments: The DLL entry point has to be called DllEntryPoint. For more information see the sample source files and the README.TXT file in USEREFI subdirectory.