coolkl
Well Known Member
Requirement: Convert String to Numeric in C
In C BSFN, I have added following Logic:
Retrieved the Description 1 from UDC and it works. This description is number of days. So I want to convert this string to Numeric and then use for calculation. I have define a string variable to retrieve description from UDC and then a integer ((Even tried Math Numeric) for conversion.
Using ParseNumericString(szNumericDays, szDaysString);
I get following warnings on compiling - Warnings:
'LPMATH_NUMERIC' differs in levels of indirection from 'int'
'ParseNumericString' : different types for formal and actual parameter 1
Any suggestions, or any other API to use ?
Thanks,
KL
In C BSFN, I have added following Logic:
Retrieved the Description 1 from UDC and it works. This description is number of days. So I want to convert this string to Numeric and then use for calculation. I have define a string variable to retrieve description from UDC and then a integer ((Even tried Math Numeric) for conversion.
Using ParseNumericString(szNumericDays, szDaysString);
I get following warnings on compiling - Warnings:
'LPMATH_NUMERIC' differs in levels of indirection from 'int'
'ParseNumericString' : different types for formal and actual parameter 1
Any suggestions, or any other API to use ?
Thanks,
KL