My answer assumes that you are using Microsoft Visual C++.
_bstr_t is just a wrapper class for BSTR. It provides some useful operators and methods.
You can construct a new _bstr_t object form a BSTR, for example:
function example(BSTR input)
{
_bstr_t my_object(BSTR);
}
You can extract a BSTR from a _bstr_t using the copy() method, for example
function example2 (_bstr_t input)
{
BSTR my_new_object = input.copy();
}
For more information, look up _bstr_t in the MSDN library or look at the Visual C++ Header File comutil.h.
Hope that helps! [sig]<p>Pat Gleason<br><a href=mailto:gleason@megsinet.net>gleason@megsinet.net</a><br><a href= > </a><br> [/sig]