John Crane
April 23rd, 1998, 01:01 PM
If you try the example given where the string is "(415) 555-7777", and you call GetDelimitedField("(", ")", 0 ), the method should return "415". However, all I ever got was "". There is a fix. Change the line which reads:
lpszRemainder = lpsz + lenDelimEnd;
to
lpszRemainder = lpszEnd + lenDelimEnd;
lpszRemainder = lpsz + lenDelimEnd;
to
lpszRemainder = lpszEnd + lenDelimEnd;