Click here to Skip to main content
15,901,962 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectPlay 8+ Pin
Vladimir Georgiev4-Jan-02 10:20
Vladimir Georgiev4-Jan-02 10:20 
GeneralRe: DirectPlay 8+ Pin
Vladimir Georgiev4-Jan-02 10:20
Vladimir Georgiev4-Jan-02 10:20 
GeneralRECURSING THROUGH A SUBDIRECTORY Pin
Maverick3-Jan-02 7:40
Maverick3-Jan-02 7:40 
GeneralRe: RECURSING THROUGH A SUBDIRECTORY Pin
Jon Sagara3-Jan-02 7:44
Jon Sagara3-Jan-02 7:44 
GeneralRe: RECURSING THROUGH A SUBDIRECTORY Pin
Nemanja Trifunovic3-Jan-02 7:47
Nemanja Trifunovic3-Jan-02 7:47 
GeneralBSTR Conversion Pin
3-Jan-02 7:13
suss3-Jan-02 7:13 
GeneralRe: BSTR Conversion Pin
Ernest Laurentin3-Jan-02 8:11
Ernest Laurentin3-Jan-02 8:11 
GeneralRe: BSTR Conversion Pin
James R. Twine3-Jan-02 8:45
James R. Twine3-Jan-02 8:45 
Sumit Pandya wrote:
I'd appritiate is someone show me the way to display BSTR type variable.

   Display it where?  In the Watch Window?  In a dialog?  To stdout?  Many of the API and library functions have a "wide" version, which can handle BSTRs (which are basically wide-character strings).

Sumit Pandya wrote:
How can I convert it in to char*?

   The "WideCharToMultiByte(...)" function may be what you are looking for.  If you KNOW that the BSTR only contains printable ASCII characters, you can do a "quick-n-dirty" conversion by copying character by character into a "char" buffer, and just casting the wide character to a "char".

   Peace!

-=- James.
GeneralRe: BSTR Conversion Pin
Philip Patrick3-Jan-02 9:17
professionalPhilip Patrick3-Jan-02 9:17 
GeneralRe: BSTR Conversion Pin
Bill Wilson3-Jan-02 10:24
Bill Wilson3-Jan-02 10:24 
GeneralRe: BSTR Conversion Pin
James R. Twine3-Jan-02 10:40
James R. Twine3-Jan-02 10:40 
GeneralCRecordSet::Update() or ::Edit() Pin
3-Jan-02 6:59
suss3-Jan-02 6:59 
GeneralRe: CRecordSet::Update() or ::Edit() Pin
3-Jan-02 9:23
suss3-Jan-02 9:23 
GeneralRe: CRecordSet::Update() or ::Edit() Pin
Carlos Antollini3-Jan-02 9:37
Carlos Antollini3-Jan-02 9:37 
GeneralRe: CRecordSet::Update() or ::Edit() Pin
5-Jan-02 9:23
suss5-Jan-02 9:23 
Generalcreating an array from a variable? (CString mystring[variable] ) Pin
Kuniva3-Jan-02 6:41
Kuniva3-Jan-02 6:41 
GeneralRe: creating an array from a variable? (CString mystring[variable] ) Pin
Nemanja Trifunovic3-Jan-02 7:55
Nemanja Trifunovic3-Jan-02 7:55 
GeneralSendMessege() Pin
Ever12343-Jan-02 6:17
Ever12343-Jan-02 6:17 
GeneralRe: SendMessege() Pin
Ravi Bhavnani3-Jan-02 6:31
professionalRavi Bhavnani3-Jan-02 6:31 
GeneralRe: SendMessege() Pin
Kuniva3-Jan-02 6:35
Kuniva3-Jan-02 6:35 
GeneralConnect to internet using standard windows connecting "system" Pin
Rickard Andersson203-Jan-02 6:01
Rickard Andersson203-Jan-02 6:01 
GeneralRe: Connect to internet using standard windows connecting "system" Pin
Not Active3-Jan-02 7:03
mentorNot Active3-Jan-02 7:03 
GeneralRe: Connect to internet using standard windows connecting "system" Pin
Vladimir Georgiev4-Jan-02 10:26
Vladimir Georgiev4-Jan-02 10:26 
QuestionHow to Edit Recordset? Pin
Mazdak3-Jan-02 5:28
Mazdak3-Jan-02 5:28 
GeneralPassing a CListBox to a function Pin
Kuniva3-Jan-02 5:14
Kuniva3-Jan-02 5:14 

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.