| Reply | « Previous Thread | Next Thread » |
|
Hi,,
I wish to copy the Service Description returned by VisitAttributeValueL() into any modifiable buffer.. void TBTAttributeValueLister::VisitAttributeValueL(CSdpAttrValue& aValue, TSdpElementType aType) I tried doing something like TBuf<30> desc; desc.Append(aValue.Des()); But i get the error : cannot convert parameter 1 from 'const class TPtrC8 (void) const' to 'class TChar' help! - aDvo - |
|
You're trying to mix 8 bit and 16 bit descriptors. See the documentation for TDesC8 and TDesC16.
The standard library can create a dynamically sized (to the length of the TDesC8) HBuf descriptor for you: HBufC8* hbuf = aValue.Des().AllocLC(); Steve |
| stevecotton |
| View Public Profile |
| Find all posts by stevecotton |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|