Skip to main content
12-Amethyst
July 14, 2024
Question

C++ custom function

  • July 14, 2024
  • 2 replies
  • 4103 views
 

11223344

 

 

2 replies

Community Moderator
July 22, 2024

Hello @DM_10631844,

 

It looks like you have a response from a community member. If it helped you solve your question please mark the reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

12-Amethyst
July 23, 2024

Perfect thank you I have a question @terryhendicott you did it by command promp or by the visual studio program, I comment that I still do not understand how it would be to try to compile it by the visual studio program, by command it works well but I think that by program I do not add well the references etc if or I start from 0 can you indicate how it would be without the command promp thank you greetings

21-Topaz II
July 23, 2024

I compile by Borland C++ Builder 12 - paid for or Visual Studio Community 2022 - free.  Both use an IDE to make compilation easier.  I have used these so much have forgotten how to use the command line.  Using  a "*c" file forces c compilation not c++.

 

Four things to set are:

1)    Directory for include of  C:\Program Files\PTC\Mathcad Prime 10.0.0.0\Custom Functions

2)    #include "MCADINCL.H" in the source file *.c for the dll

3)    Directory for library C:\Program Files\PTC\Mathcad Prime 10.0.0.0\Custom Functions

4)    Inclusiion of the library mcaduser.lib

5)    I turn off wide character strings (optional)

 

1,3,4,5 are set by options in Project Properties in the IDE (Integrated Development Environment)

2 is in the source file.

 

Cheers

Terry