thanesh
asked on
How to change CString to a 64 bit integer
Hi Experts,
How can I change a CString to 64 bit integer?
How can I change a CString to 64 bit integer?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Rajeev,
Thanks. Why would the first one be error prone?
Thanks. Why would the first one be error prone?
Two reasons
1. GetBuffer(int nMinBufLength ); takes one parameter.
2. You need to store the converted value somewhere :)
__int64 data =
1. GetBuffer(int nMinBufLength ); takes one parameter.
2. You need to store the converted value somewhere :)
__int64 data =
_atoi64(str.GetBuffer());