AngleToReal bug?

Hello!I just try to use AngleToReal COM utility function, as above. double d;BSRT string;CComPtr utility;....utility->AngleToReal(BSRT string,vicRadians, &d);.. It seems that the double d value is not correct.. Regards!Ioan

Comments

  • The object browser helpstring for AngleToReal goes like this:......Function AngleToReal(Angle As String, [Unit As AngleUnits]) As Double Member of IntelliCAD.Utility Converts a string to an angle - Equivalent to angtof in Lisp.AngleToReal returns a double.......Hence the function returns a double, so it should be used like this:double d = utility->AngleToReal(someString, vicRadians);Kind regards,Hans

This discussion has been closed.