Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error in alpha blending Pin
Jim Crafton3-Jun-06 13:49
Jim Crafton3-Jun-06 13:49 
AnswerRe: Error in alpha blending Pin
Hamid_RT4-Jun-06 0:53
Hamid_RT4-Jun-06 0:53 
GeneralRe: Error in alpha blending Pin
Luksky4-Jun-06 3:34
Luksky4-Jun-06 3:34 
QuestionUsing OSK.EXE inside W2K or XP Pin
jumbojetjames3-Jun-06 8:25
jumbojetjames3-Jun-06 8:25 
Questionwhy c++/mfc Pin
Muhammad Chitrali3-Jun-06 8:07
Muhammad Chitrali3-Jun-06 8:07 
AnswerRe: why c++/mfc Pin
bob169723-Jun-06 9:03
bob169723-Jun-06 9:03 
AnswerRe: why c++/mfc Pin
Rick York3-Jun-06 9:33
mveRick York3-Jun-06 9:33 
GeneralRe: why c++/mfc Pin
Trollslayer4-Jun-06 9:30
mentorTrollslayer4-Jun-06 9:30 
AnswerRe: why c++/mfc Pin
George L. Jackson3-Jun-06 10:00
George L. Jackson3-Jun-06 10:00 
QuestionHow to redefine HEX symbols Pin
tbrake3-Jun-06 7:56
tbrake3-Jun-06 7:56 
AnswerRe: How to redefine HEX symbols Pin
bob169723-Jun-06 8:47
bob169723-Jun-06 8:47 
GeneralRe: How to redefine HEX symbols Pin
tbrake3-Jun-06 8:57
tbrake3-Jun-06 8:57 
GeneralRe: How to redefine HEX symbols Pin
bob169723-Jun-06 9:24
bob169723-Jun-06 9:24 
GeneralRe: How to redefine HEX symbols Pin
bob169723-Jun-06 9:38
bob169723-Jun-06 9:38 
GeneralRe: How to redefine HEX symbols Pin
tbrake3-Jun-06 10:07
tbrake3-Jun-06 10:07 
QuestionPolygon and FrameRgn Pin
includeh103-Jun-06 7:00
includeh103-Jun-06 7:00 
AnswerRe: Polygon and FrameRgn Pin
bob169723-Jun-06 8:13
bob169723-Jun-06 8:13 
GeneralRe: Polygon and FrameRgn Pin
includeh103-Jun-06 9:34
includeh103-Jun-06 9:34 
GeneralRe: Polygon and FrameRgn Pin
bob169723-Jun-06 9:46
bob169723-Jun-06 9:46 
Question_bstr_t to string-newbie Pin
antonaras3-Jun-06 4:50
antonaras3-Jun-06 4:50 
AnswerRe: _bstr_t to string-newbie Pin
John R. Shaw3-Jun-06 5:01
John R. Shaw3-Jun-06 5:01 
AnswerRe: _bstr_t to string-newbie Pin
Michael Dunn3-Jun-06 5:46
sitebuilderMichael Dunn3-Jun-06 5:46 
GeneralRe: _bstr_t to string-newbie Pin
antonaras3-Jun-06 7:12
antonaras3-Jun-06 7:12 
AnswerRe: _bstr_t to string-newbie Pin
bob169723-Jun-06 6:37
bob169723-Jun-06 6:37 
Mr. Dunn already pointed you to his FAQ which is probably the best resource available on CP but just in case, here are some ways you can get it done. NOTE: These will only work if the BSTR does not contain embedded NULL's as would occur in a BYTE array. If you are sure you are dealing with null terminated strings in the BSTR like when using MSXML, these will get you by.

// Using the CString constructor
_bstr_t bstrTemp("This is a test\n");
CString sTemp1((BSTR)bstrTemp);
TRACE(sTemp1);

// For when you don't have the luxury of using the constructor
CString sTemp2;
sTemp2.Format("%s",(LPCTSTR)bstrTemp);
TRACE(sTemp2);
GeneralRe: _bstr_t to string-newbie Pin
antonaras3-Jun-06 7:15
antonaras3-Jun-06 7:15 

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.