--- In [email protected], Vishva <vishv...@...> wrote:
>
> // srcStr contains a string like "xxxx=2000"
> ret = swscanf(srcStr, _T"%s=%lu", destString, destLong);

The %s matches a sequence of non-space characters, so it includes the '='. Try 
the format string:

  " %*[^=]=%u"

The "%*[^=]" matches any characters (including spaces) apart from '=', but 
doesn't store it because of the '*'.

Reply via email to