> > I can't seem to find any coding methods to inform me if this is an
> > array of categories or not.
>
> If you can make sure only one item is returned, then this
> should be okay. But you must make *pretty* sure! :-)
OK, I have done some further investigating. You can have multiple
categories, as the name of the method implies. But these are combined into
one string, sperated by commas. So that clarifies the matter.
In my situation, I would only want to purge items that have just my category
alone, so this should still be correct:
pAppt->get_Categories(&bstrCat);
// Can we delete it?
if (bstrCat == "SoundRota")
{
If there are other categories associated with the item (in the text string)
then I want to leave it well alone and assume it is not my item to be
purged.
However, is my text comparison safe? I don't see any == operator defined
for this type of thing. It appears to work, but that could be by chance.
Is there more appropriate code to use for comparing this CComBSTR against
"SoundRota"?
Andrew
This email and any attached files are confidential and copyright protected. If
you are not the addressee, any dissemination of this communication is strictly
prohibited. Unless otherwise expressly agreed in writing, nothing stated in
this communication shall be legally binding.
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.