L
Lynn McGuire
If I create a BSTR in my C++ code calling Excel, do I need to explicitly
release the VARIANT holding the BSTR after I call Excel ?
VARIANT range;
VariantInit ( & range);
range.vt = VT_BSTR;
_bstr_t address = _bstr_t (cellAddress.c_str ());
range.bstrVal = address;
OLEMethod (DISPATCH_PROPERTYGET, & result1, pExcelSheet, L"Range", 1, range);
Thanks,
Lynn
release the VARIANT holding the BSTR after I call Excel ?
VARIANT range;
VariantInit ( & range);
range.vt = VT_BSTR;
_bstr_t address = _bstr_t (cellAddress.c_str ());
range.bstrVal = address;
OLEMethod (DISPATCH_PROPERTYGET, & result1, pExcelSheet, L"Range", 1, range);
Thanks,
Lynn