|
MKI_ConvertAngleStringEx (Strings) Changed in Version 2026.0 |
www.CAD6.com |
C++ Syntaxbool MKI_ConvertAngleStringEx( LPWSTR f_pszText, const size_t f_unMaxSize1, double f_dValue, __int32 f_nFractionLen, LPWSTR f_pszUnit, const size_t f_unMaxSize2 );
template <size_t f_unSize> bool MKI_ConvertAngleStringEx( wchar_t (&f_rDestin)[f_unSize], double f_dValue, __int32 f_nFractionLen );
template <size_t f_unSize1, size_t f_unSize2> bool MKI_ConvertAngleStringEx( wchar_t (&f_rDestin1)[f_unSize1], double f_dValue, __int32 f_nFractionLen, wchar_t (&f_rDestin2)[f_unSize2] );
Converts an angle value (based on the currently active angle unit) to a string.
Parametersf_pszText / f_rDestin1 [LPWSTR] Pointer to or [wchar_t[]&] Reference to text buffer to receive the converted double string. If f_pszText is nullptr, the value will not be converted, only the current unit will be returned (see f_pszUnit). f_unMaxSize1 [const size_t] Maximum allowed length of the destination text in UTF-16 characters including the terminating '\0' character. f_dValue [double] Floating point value to be converted into a string. f_nFractionLen [__int32] Maximum number of fractional digits. Allowed values are 0 to 15. Whether trailing zeros are displayed or not depends on the application's settings. f_pszUnit / f_rDestin2 [LPWSTR] Pointer to or [wchar_t[]&] Reference to text buffer to receive the currently angle length unit in form of a short text (like [mm]). If f_pszUnit is nullptr, no unit text is returned. f_unMaxSize2 [const size_t] Maximum allowed length of the unit text in UTF-16 characters including the terminating '\0' character.
Return ValueReturns true if successful. If false is returned, f_pszText is unchanged.
CommentThis conversion will consider the decimal separator defined by the user (point or comma).
|
CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH