Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralButtons problem. Pin
Le@rner24-Mar-08 1:46
Le@rner24-Mar-08 1:46 
GeneralRe: Buttons problem. Pin
rp_suman24-Mar-08 2:03
rp_suman24-Mar-08 2:03 
GeneralRe: Buttons problem. Pin
Le@rner24-Mar-08 2:13
Le@rner24-Mar-08 2:13 
GeneralRe: Buttons problem. Pin
rp_suman24-Mar-08 2:30
rp_suman24-Mar-08 2:30 
GeneralRe: Buttons problem. Pin
James R. Twine24-Mar-08 2:06
James R. Twine24-Mar-08 2:06 
AnswerRe: Buttons problem. Pin
GauranG Shah24-Mar-08 18:59
GauranG Shah24-Mar-08 18:59 
QuestionBSTR to CString? Pin
rowdy_vc++24-Mar-08 1:25
rowdy_vc++24-Mar-08 1:25 
AnswerRe: BSTR to CString? Pin
James R. Twine24-Mar-08 1:33
James R. Twine24-Mar-08 1:33 
   You cannot typecast it - but you may have to convert it.

   If you are in a Unicode build, both the BSTR and the CString are of the same character type, so you can just assign the BSTR to the CString (or use to construct one).

   If not, you need to use a conversion function or macro: W2T(...), MultibyteToWideChar(...), etc.  Although CString may have a conversion constructor...?

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



AnswerRe: BSTR to CString? Pin
rp_suman24-Mar-08 1:33
rp_suman24-Mar-08 1:33 
GeneralGetProfileInt Pin
Try24-Mar-08 0:34
Try24-Mar-08 0:34 
GeneralRe: GetProfileInt Pin
CPallini24-Mar-08 1:22
mveCPallini24-Mar-08 1:22 
GeneralRe: GetProfileInt Pin
Try24-Mar-08 19:31
Try24-Mar-08 19:31 
QuestionCxImage Class? Pin
sureshtech23-Mar-08 23:46
sureshtech23-Mar-08 23:46 
AnswerRe: CxImage Class? Pin
Paresh Chitte23-Mar-08 23:53
Paresh Chitte23-Mar-08 23:53 
AnswerRe: CxImage Class? Pin
Hamid_RT1-Apr-08 2:15
Hamid_RT1-Apr-08 2:15 
Questionhow to authenticate the windows user Pin
vineeshV23-Mar-08 23:33
vineeshV23-Mar-08 23:33 
QuestionRe: how to authenticate the windows user Pin
David Crow24-Mar-08 4:06
David Crow24-Mar-08 4:06 
GeneralC++ COM STA model Pin
George_George23-Mar-08 23:11
George_George23-Mar-08 23:11 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 1:30
James R. Twine24-Mar-08 1:30 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 2:09
George_George24-Mar-08 2:09 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 2:31
James R. Twine24-Mar-08 2:31 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 2:51
George_George24-Mar-08 2:51 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 3:10
James R. Twine24-Mar-08 3:10 
GeneralRe: C++ COM STA model Pin
George_George24-Mar-08 4:35
George_George24-Mar-08 4:35 
GeneralRe: C++ COM STA model Pin
James R. Twine24-Mar-08 4:46
James R. Twine24-Mar-08 4:46 

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.