how to convert bstr to char[256]
-
hi all, i want to convert bstr to chra[]; eg:- char a[256]; BSTR bstr=L"hello"; i want hello into a thank you
-
hi all, i want to convert bstr to chra[]; eg:- char a[256]; BSTR bstr=L"hello"; i want hello into a thank you
Hello, For a deeper understanding of the topic, I'll recommend that you read this excellent article: The Complete Guide to C++ Strings, Part II - String Wrapper Classes[^].
It is a crappy thing, but it's life -^ Carlo Pallini
-
hi all, i want to convert bstr to chra[]; eg:- char a[256]; BSTR bstr=L"hello"; i want hello into a thank you
ashish8patil wrote:
BSTR bstr=L"hello";
Please never do this. Read the article suggested by Rajesh (or
BSTR
documentation [^]) to discover why. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
ashish8patil wrote:
BSTR bstr=L"hello";
Please never do this. Read the article suggested by Rajesh (or
BSTR
documentation [^]) to discover why. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Thanks
-
Hello, For a deeper understanding of the topic, I'll recommend that you read this excellent article: The Complete Guide to C++ Strings, Part II - String Wrapper Classes[^].
It is a crappy thing, but it's life -^ Carlo Pallini
Thanks .