CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: stf::find

  1. #1
    Join Date
    Nov 1999
    Location
    Israel
    Posts
    49

    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.

  2. #2
    Join Date
    Aug 2002
    Location
    VA, USA
    Posts
    137
    dalitg,

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

    regards, willchop

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured