joseph_mueller@yahoo.com wrote:[color=blue]
> I have a BSTR[/color]
What's a "BSTR"?
[color=blue]
> something like this
>
> firstHalf.secondHalf
>
> I want to parse this string using the "." as the delimeter, so I will
> end up with two different BSTRs, one for the stuff before the "." and
> one for the stuff after it. How can I do this?[/color]
Since "BSTR" is not defined in C++, you might want to specify first
what "BSTR" is. If it's some kind of string, then you should be using
string manipulation functions to (a) search the string for '.' and (b)
extract a substring from the beginning of it to the '.' position (not
including the '.') or to the end if '.' is not found, and if '.' is
found, then also extract a substring from after the '.' to the end.
What functions to use and how to use them depends on what "BSTR" is.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask