|
|
|
|
#1 |
|
Junior Member
|
Just relalized something. I think the problem is with bstr ownership.
When I do this: vtBandGUID1.bstrVal = _bstr_t(szBarCLSID); the _bstr_t class knows its being assigned to another BSTR and so relinguishes control over the BSTR (Or allocates a new BSTR) When I do: vtBandGUID2.bstrVal = bBarCLSID; Nothing special is done and the call of ShowBandObject doesn't have access to the bstr that is being passed on. VariantClear() afterwards isn't even necessary... Or am I completely off track here... I have to admit, I've been bluffing my way through COM without really understanding it :P Remco |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|