-
stf::find
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.
-
dalitg,
Try using the wide charactor string template 'wstring' in place
of the regular 8 bit string template.
regards, willchop