Visual C++ 6.0 to write user DLL for Mathcad 2000
Visual C++ 6.0 to write user DLL for Mathcad 2000
(OP)
I compiled and built the example file 'multiply.c' provided in the userfi folder. I copied 'multiply.dll' file to userfi folder and added function info in 'user.xml' file, but when I wanted to used the function, my function does not appear in the list of user functions.
I used Microsoft Visual C++ 6.0. The provided text file says they tested for Visual C++5.0, and do not gurantee if it works with the later versions.
Have anybody used VC++6.0 to create user dll that can be run on Mathcad 2000? If so, could you please email me a sample, so I could see if it works on my machine?
Thanks.
I used Microsoft Visual C++ 6.0. The provided text file says they tested for Visual C++5.0, and do not gurantee if it works with the later versions.
Have anybody used VC++6.0 to create user dll that can be run on Mathcad 2000? If so, could you please email me a sample, so I could see if it works on my machine?
Thanks.





RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
TTFN
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
Now I am able to see the user functions without invoking REGTOOL. I realized, the problem was with the dll itself.
I am disappointed with MathSoft that they allow so little freedom to us as to the functionality. I wish Mathsoft be bit more open minded and liberal.
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
An overly flexible interface is simply asking for trouble from a support perspective. By limiting the scope of the interface, Mathsoft limits the number of potential problems and incompatibilities that might occur.
TTFN
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
I agree with CAOranger about the interface being too narrow. Being able to pass string data (as opposed to arrays of characters) would certainly be a start.
The last time I did this was with Mathcad 2001, has anyone written DLL code to interface to the newer versions? How does the programming interface compare to earlier versions? Hopefully there have been improvements.
-Matt
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
TTFN
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
After spending weeks playing with the mathcad user DLL thing, I decided, it is not worth spending time.
I have not seen any examples in the web or elsewhere where the user dll could display more than one lines (stings & numbers). My problem is - regardless of how accurate I am, if my dlls do not show some critical intermediate results, even my co-worker would hesitate to use it for serious purpose. The first thing the person reviewing my calculations would question validity of the result. Even if I look at it after a month, I would be spending time to check the algorithm again before useing it.
If the dlls are for myself, I do not see any use of spending time writing and debugging dlls -- mathcad spreadsheets alone are adequate.
I feel mathsoft would not like to give too much control to developers; is being too overprotective.
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
-Matt
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
Browse over to http://gundermann.dk/mathcad/poisson_engine.htm to see a really good example of passing and returning complex data between Mathcad and a user DLL.
All of the Mathcad "pack" and "unpack" functions are available, as well as the .c source file used to perform the processing.
Hope that helps!
-Matt
RE: Visual C++ 6.0 to write user DLL for Mathcad 2000
I will look at the code if I can learn something new from it....