Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

std::string to BSTR

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 2,72 sec, absolute running time: 0,33 sec, absolute service time: 3,07 sec 
edit mode |  history
Warning(s):
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
got an LPCOLESTR (alias for const BSTR): "Hello World!"
bytes allocated excluding the terminating double null: 24

got an LPCOLESTR (alias for const BSTR): "This is the new string!"
bytes allocated excluding the terminating double null: 46

got an LPCOLESTR (alias for const BSTR): "This is the new string! (append some more characters to it)"
bytes allocated excluding the terminating double null: 118