Click to See Complete Forum and Search --> : stf::find


dalitg
October 16th, 2002, 10:20 AM
Hi,
I made this code:
string source, subS;
source = "AIL†05‰AVHDR0†0†US PAX N*/TVL ADV ISRAELˆ18OCTˆFRIˆTLV†Z‡2†LON††-1†ˆ‰AVLIN0"
subS = "‰AVHDR0"
source.find(subS );

I get an error :
Invalid argument
memchr, argument 2, DWORD: 0xFFFFFF89
Argument must be between 0x00000000 and 0x000000FF

If I ommit from subS this symbol ‰, then I get no error.
Please advise how to avoid this error without changing anything in the source or subS strings.
Is there another way then removing this ‰ character?

Thanks.
Dalit.

willchop
October 16th, 2002, 10:31 AM
dalitg,

Try using the wide charactor string template 'wstring' in place
of the regular 8 bit string template.

regards, willchop