> I am using CComBSTR variables to ensure I don't get memory leaks.
>
> One of the methods I am using expects a BSTR * variable.  From my
> understand
> of the method, it wants to give me an array of category descriptions.
>
> I am not sure what variable I should be decalaring and passing in to my
> get_Categories method.

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.

--
Jason Teagle
[EMAIL PROTECTED]



_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to