c# Programming Glossary: bstr
C# SecureString Question http://stackoverflow.com/questions/1800695/c-sharp-securestring-question For example in the code below as soon as you do PtrToStringBSTR the string is no longer secure because strings are immutable.. for strings. IntPtr ptr Marshal.SecureStringToBSTR SecureString object string value Marshal.PtrToStringBSTR ptr.. SecureString object string value Marshal.PtrToStringBSTR ptr What if there were a way to get a char or byte of the unmanaged..
C# exposing to COM - interface inheritance http://stackoverflow.com/questions/1863128/c-sharp-exposing-to-com-interface-inheritance oleautomation interface IClass IDispatch id 0x60020000 BSTR GetB It doesn't even look like IClass derives from IBaseClass..
Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic http://stackoverflow.com/questions/3965767/function-or-interface-marked-as-restricted-or-the-function-uses-an-automation-t as retrieved from the type library HRESULT FindByType in BSTR bstrTypeURI in unsigned long dwFlags out retval IUPnPDevices..
How to return text from Native (C++) code http://stackoverflow.com/questions/5308584/how-to-return-text-from-native-c-code pinvoke share improve this question I'd do it with a BSTR since it means you don't have to call into native twice per.. get the length and then once to get the contents. With a BSTR the marshaller will take care of deallocating the BSTR with.. a BSTR the marshaller will take care of deallocating the BSTR with the right memory manager so you can safely pass it out..
ASP.NET web app calling Delphi DLL on IIS webserver, locks up when returning PChar string http://stackoverflow.com/questions/9322938/asp-net-web-app-calling-delphi-dll-on-iis-webserver-locks-up-when-returning-pch for such a problem is to use Delphi Widestring which is a BSTR . On the Delphi side you write it like this function SomeFunction..
|