README FILE FOR USING BORLAND C/C++ COMPILER VERSION 4.0 OR 4.5
TO BUILD A USER DLL FOR MATHCAD 7 PROFESSIONAL

The instructions below apply to the Integrated Development 
Environment, IDE. The instructions assume that you have installed 
Mathcad in the directory C:\WINMCAD. If this is not true (for 
example, if you accepted the default Mathcad 7 Professional 
installation directory C:\PROGRAM FILES\MATHSOFT\MATHCAD), then
please substitute the correct path wherever C:\WINMCAD appears.

Samples source files are available in the SOURCES subdirectory. 
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.

To build a new project in the 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 
	  the name of 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.

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 must be called DllEntryPoint.

	* Borland does not support 8-byte alignment of structures. 
	  Use 4-byte alignment instead.
  
For more information see the sample source files and the 
README.TXT file in the USEREFI subdirectory.
