|
-
September 9th, 2011, 05:21 AM
#1
convert Bstr to char
how do i convert Bstr to char ?
please give me an example.
-
September 9th, 2011, 05:29 AM
#2
Re: convert Bstr to char
Victor Nijegorodov
-
September 9th, 2011, 05:30 AM
#3
Re: convert Bstr to char
That's not really easy since a BSTR is a string of multiple wide characters while a char is a single non-wide character. What exactly do you want to do?
This thread could also be helpful: http://www.codeguru.com/forum/showth...highlight=BSTR
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
-
September 9th, 2011, 08:34 AM
#4
Re: convert Bstr to char
Check out the ATL string conversion macros.
The link recommends using CComBSTR class and the COLE2T macro.
-
September 9th, 2011, 11:47 AM
#5
Re: convert Bstr to char
Code:
char* __stdcall ConvertBSTRToString( BSTR pSrc );
http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx
ahoodin
To keep the plot moving, that's why.

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|