Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 12488

Re: Prime 3.0 Custom Functions (string arguments)

$
0
0

Luc

You are correct, nice catch . Our QA/Engineering team suggests replacing the call to "new"

 

 

char

 

* c = MathcadAllocate(s.size()+1);

// creat a c-string (pointer) c with the same size as s

 

In your

GetCoolPropsParamMathcad

 

Function

 

This will protect your code across DLL boundaries.

John


Viewing all articles
Browse latest Browse all 12488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>