Robert Shearman wrote:
BSTR and LPWSTR are not interchangable. A lot of the time you can get away with it, but if anything tries to access the length that prefixes a BSTR on the LPWSTR then bad things will happen.
Right, thanks. I don't know, why I have changed it. I think I passed BSTR in one of modifications in my tree. I'll send a fixed version.
Thanks, Jacek