Sei sulla pagina 1di 1

Creating a Mathcad DLL with Visual C++ - Knowledge Base from Adep... http://www.no.adeptnordic.

com/kb/article/A3D6

- Norge
Verdens førende software for industri, forskning og Adept Store | Join My Adept |
utvikling. Adept Scientific | Tel: 800 58 997

Hjem Produkter Kurs Services Kjøp Online Downloads Utdanning Support Mitt Adept

Internasjonal | Om oss | Blog | Kontakt oss | Presserom | Jobb

Søk Norge Site Søk etter Produkt | Login | Endre konto Shopping Basket

Knowledge Base > Browse Categories > Mathcad

Creating a Mathcad DLL with Visual C++

Last Article Ref.: A3D6


3rd Jan 2013 Email This Article
Modified:
»Return to previous
Category: Mathematics and Simulation > Mathcad search
Windows 98 Windows NT 4.0 Windows »Print friendly version To email this article enter and
Platform:
2000 Windows ME Windows XP of this article. address below and click on the
"Email" Article button.
Version: 11 1 person has found
this article useful.

Creating a Mathcad DLL with Visual C++


Compiling and Linking your DLL
Other resources from
To create your DLL you will need a 32-bit Microsoft compiler. Adept Scientific for:
Visual C++ 5.0, 6.0 or 7.0 (.NET) will all work. Instructions Mathcad
on compiling and linking your DLL are given in the
README.TXT file in the USEREFI/microsft subdirectory, along
with the outline given below.

Default paths for required libraries and header files are:


Mathcad Product Information
System Requirements
Libraries: "c:\program files\mathsoft\mathcad 11\userefi
Mathcad Downloads
\microsft\lib\MCADUSER.LIB"
Header file path: "c:\program files\mathsoft\mathcad 11\userefi Mathcad - Buy online
\microsft\include"
Mathcad List Archive
In Visual Studio 7 or Visual C++ 7 (.NET) Read Mathcad technical
articles from our
Choose File > New > Project to create a Visual C++ Project. KnowledgeBase

1. Choose a Win32 Project, and from the resulting Application


Settings wizard, specify a DLL type. Under Additional Options,
specify an empty project.

2. Right click on the project name in the Solution Explorer,


and choose Properties.

3. Under C/C++ > General properties, set an Additional Include


Directory (first choice) to path and directory which contains
the MCADINCL.H header file. You must use quotes.

4. Under Linker > Input properties, set an Additional


Dependency (first choice) to the path and MCADUSER.LIB library
file. You must use quotes.

5. Under Linker > Advanced properties, set an Entry Point


(first choice) to DllEntryPoint.

6. Add your source files to the Source Files directory in the


project.

Build the project and copy the resulting .dll file in the
Project directory to the /userefi subdirectory. Start Mathcad
once the .dll is in place, and you should be able to call your
new function.

1 de 2 6/7/2013 08:15

Potrebbero piacerti anche