Hi guys,
So is it legal to do the following to free the allocated string?
If I remember correctly, I think a BSTR string has its size recorded within it, so I wasn't sure casting WCHAR* to BSTR was valid or not.Code:LPWSTR szString = SysAllocString("Some String"); ... SysFreeString((BSTR)(szString));
Thanks!