Previous | Table of Contents | Next |
An OMG IDL bounded or unbounded string maps to an OLE BSTR. For example, given the OMG IDL definitions,
// OMG IDLstring sortCode<20>;string name;
the corresponding ODL code is
// ODLBSTR sortCode;BSTR name;
On Win32 platforms, a BSTR maps to a Unicode string. The use of BSTR is the only support for internationalization of strings
defined at this time.
When mapping a fixed length string, the Automation view is required to raise the exception DISP_E_OVERFLOW if a BSTR is longer
than the maximum size.