virtual P6R::P6ERR P6R::p6ISafeString::atolW ( const P6R::P6WCHAR *  pString,
P6R::P6SIZE  cchMax,
P6R::P6INT32 *  pRetLong 
) [pure virtual]

This method converts the wide string pointed to by pString into a P6R::P6INT32.

The method will skip leading whitespace and stop processing at the first non-digit character it finds in the string (including NULL).

Parameters:
pString [in] A pointer to the wide string to be converted.
cchMax [in] The maximum number of charaters to scan. For example, if the string is contained in a 16 byte buffer, this should be 16 to prevent scanning past the end of the buffer if the string is malformed (not NULL terminated).
pRetLong [out] The address of a P6R::P6INT32 in which to place the converted result.
Returns:
SuccessP6R::eOk 
FailureP6R::eInvalidArgpString or pRetLong is NULL, or ccMax is zero
P6R::eTooBigcchMax characters was reached in the conversion. The conversion was aborted.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.