Creating a User DLL |
You can extend Mathcad's functionality by writing your own customized functions. Your functions will behave like Mathcad's built-in functions. A custom 32-bit DLL can have many of the same features as Mathcad built-in functions, such as customized error messages, interruption, and exception handling in case of overflow and divide by zero. Custom functions are allowed to pass complex scalars, complex matrices, and string variable types.
To create customized functions, you will need to:
The first four steps can all be done through the Visual Studio development environment. Instructions are provided for finding all the right resources, such as the MCADUSER.LIB library.
DLL interface specifications contained in this Developer's Reference can be used for creating user-written external functions that work with Mathcad for your personal or internal business use only. These specifications may not be used for creating external functions for commercial resale without prior written consent from PTC.