Looking here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/
sp_grfiappointmentput_categories.asp


It seems that to set the categories you just pass a single BSTR and thus to
retreive it, it is populating a single BSTR.

Andrew

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Truckle, Andrew J
> Sent: 29 September 2005 15:38
> To: '[email protected]'
> Subject: Re: [msvc] BSTR variables
> 
> 
> > > Well, it actually seems I don't have to.  I just pass the & of the
> > > CComBSTR and it works fine....
> > 
> > Maybe it just *seems to*.  If the method returns an array,
> > and you pass the address of a CComBSTR object to it, then 
> > definitely you're causing a buffer overrun, which is one of 
> > the most deadly sins of a programmer! See, the address of a 
> > CComBSTR object has place only for one object.
> 
> I do understand what you mean.  But I am just thinking in 
> terms of my application.  I create the items in the first 
> place and thus only have one category.
> 
> I can't seem to find any coding methods to inform me if this 
> is an array of categories or not.
> 
> 
> 
> 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.
> 
> 
> This message has been scanned for viruses by MailControl - 
> (see http://bluepages.wsatkins.co.uk/?4318150)
> 

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

Reply via email to