johnmatthews2000 wrote:
> --- In [email protected], Vishva <vishv...@...> wrote:
>> Well, I think Paul is right, destLong should be a pointer to a long
>> so the swscanf code should be like..
>>
>> ret = swscanf(srcStr, _T"%s=%lu", destString, &destLong);
>
> ...but the format string is incorrect as described previously, so it should
> be:
>
> ret = swscanf(srcStr, _T"%[^=]=%lu", destString, &destLong);
>
> (assuming the _T is correct)
_T("%[^=]=%lu")
_T is a macro that appends a 'L' modifier to the string if compiling for
Unicode. Otherwise, it evaluates to itself.
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/