CComBSTR

class CComBSTR

The CComBSTR class is a wrapper for BSTRs, length-prefixed strings. The length is stored as an integer at the memory location preceding the data in the string.

A BSTR is null-terminated after the last counted character, but may also contain null characters embedded within the string. The string length is determined by the character count, not the first null character.

#include <atlbase.h>

Class Members