Click here to Skip to main content
15,921,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: BSTR --> CString ? Pin
klphua23-Oct-02 21:13
klphua23-Oct-02 21:13 
GeneralRe: BSTR --> CString ? Pin
Christian Graus23-Oct-02 21:22
protectorChristian Graus23-Oct-02 21:22 
GeneralRe: BSTR --> CString ? Pin
Daniel Turini23-Oct-02 21:32
Daniel Turini23-Oct-02 21:32 
AnswerRe: BSTR --> CString ? Pin
Christian Graus23-Oct-02 21:23
protectorChristian Graus23-Oct-02 21:23 
GeneralRe: BSTR --> CString ? Pin
klphua23-Oct-02 21:27
klphua23-Oct-02 21:27 
GeneralRe: BSTR --> CString ? Pin
Christian Graus23-Oct-02 21:39
protectorChristian Graus23-Oct-02 21:39 
GeneralRe: BSTR --> CString ? Pin
Daniel Strigl23-Oct-02 21:28
Daniel Strigl23-Oct-02 21:28 
AnswerRe: BSTR --> CString ? Pin
Yaron Nir24-Oct-02 2:04
Yaron Nir24-Oct-02 2:04 
the best & easy way to conver BSTR to string is use the com_util helper as follows:

_bstr_t tmpBSTR = _com_util::ConvertStringToBSTR(szString);
or the other way around:

CString szString = _com_util::ConvertBSTRToString((BSTR)tmpBSTR);

you can check out the definitions of this functions in
COMUTIL.H

hope this helps ya

Yaron



Ask not what the application can do for you, ask what you can do for your application
GeneralRe: BSTR --> CString ? Pin
dabs24-Oct-02 3:28
dabs24-Oct-02 3:28 
GeneralRe: BSTR --> CString ? Pin
Le centriste24-Oct-02 3:34
Le centriste24-Oct-02 3:34 
GeneralRe: BSTR --> CString ? Pin
dabs24-Oct-02 4:39
dabs24-Oct-02 4:39 
GeneralRe: BSTR --> CString ? Pin
JT Anderson24-Oct-02 6:13
JT Anderson24-Oct-02 6:13 
AnswerRe: BSTR --> CString ? Pin
Alvaro Mendez24-Oct-02 8:52
Alvaro Mendez24-Oct-02 8:52 
QuestionHow to detect if a pidl or path a shortcut? Pin
Hiusing23-Oct-02 20:03
Hiusing23-Oct-02 20:03 
GeneralVS.NET help system Pin
Anonymous23-Oct-02 19:04
Anonymous23-Oct-02 19:04 
QuestionHow to display other font (not English font) on dialog box? Pin
23-Oct-02 19:04
suss23-Oct-02 19:04 
AnswerRe: How to display other font (not English font) on dialog box? Pin
sonshiro24-Oct-02 0:08
sonshiro24-Oct-02 0:08 
QuestionCEdit context menu customizing? Pin
Anonymous23-Oct-02 19:01
Anonymous23-Oct-02 19:01 
AnswerRe: CEdit context menu customizing? Pin
alex.barylski23-Oct-02 20:49
alex.barylski23-Oct-02 20:49 
GeneralRe: CEdit context menu customizing? Pin
Anonymous24-Oct-02 3:41
Anonymous24-Oct-02 3:41 
Questionhow to avoid activex runtime property? Pin
BK Pradeep23-Oct-02 18:23
BK Pradeep23-Oct-02 18:23 
QuestionDLL ? Pin
Stan the man23-Oct-02 18:15
Stan the man23-Oct-02 18:15 
AnswerRe: DLL ? Pin
Stan the man23-Oct-02 18:24
Stan the man23-Oct-02 18:24 
GeneralRe: DLL ? Pin
Stephane Rodriguez.23-Oct-02 21:37
Stephane Rodriguez.23-Oct-02 21:37 
Generalneed a second set of eyes Pin
Mel Feik23-Oct-02 17:28
Mel Feik23-Oct-02 17:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.