> I believe you need to declare an array of BSTRs, and pass the 
> pointer of that array to the method. I'm not entirely sure 
> whether an array of CComBSTRs would be any good - depends if 
> they're a thin wrapper around BSTR (like CRect is around 
> RECT, CPoint around POINT, etc.) or whether they are more 
> cumbersome. You might find it safer to declare (literally) 
> BSTR strings[40] and pass 'strings', and then when it returns 
> assign each entry to a CComBSTR to get back your safety.

But that implies needing to know the number of categories before hand when
creating the array.

But I think you are right in that I need an array.  I know that much.


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.

Reply via email to