Well, Did you read the documentation about VARIANT in MSDN?
It states that for pcVal you have to use VT_BYREF | VT_I1. And if you set the type as VT_BSTR you have to set the bstrVal, not a B]pcVal[/B].
And again: why do you use such a mixture of L"...", T("...") and "..."?![]()






Victor Nijegorodov
Reply With Quote
