Click here to Skip to main content
15,915,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Casting of _bstr_t to CString Pin
toxcct3-Jun-08 5:11
toxcct3-Jun-08 5:11 
AnswerRe: Casting of _bstr_t to CString Pin
sudhir_Kumar3-Jun-08 5:17
sudhir_Kumar3-Jun-08 5:17 
GeneralRe: Casting of _bstr_t to CString Pin
toxcct3-Jun-08 5:29
toxcct3-Jun-08 5:29 
GeneralRe: Casting of _bstr_t to CString Pin
ThatsAlok4-Jun-08 1:02
ThatsAlok4-Jun-08 1:02 
AnswerRe: Casting of _bstr_t to CString PinPopular
David Crow3-Jun-08 6:48
David Crow3-Jun-08 6:48 
GeneralRe: Casting of _bstr_t to CString Pin
CPallini3-Jun-08 7:49
mveCPallini3-Jun-08 7:49 
AnswerRe: Casting of _bstr_t to CString Pin
Akt_4_U3-Jun-08 18:06
Akt_4_U3-Jun-08 18:06 
GeneralRe: Casting of _bstr_t to CString Pin
ThatsAlok4-Jun-08 1:06
ThatsAlok4-Jun-08 1:06 
Akt_4_U wrote:
_bstr_t strTemp = "hi";
CString csTemp = strTemp.copy();


hai, thats a nice bit of coding, but there is small performance issue, let me explain you, _bstr__t::copy will make a copy of underlining BSTR variable and pass it to csTemp, who again make copy of same and destroyed newly created BSTR variable. thought for small string the performance issue would be less, but for big string, this could present problem

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You/codeProject$$>

AnswerRe: Casting of _bstr_t to CString Pin
Mahesh Kulkarni3-Jun-08 20:57
Mahesh Kulkarni3-Jun-08 20:57 
AnswerRe: Casting of _bstr_t to CString Pin
SimplySane4-Jun-08 17:19
SimplySane4-Jun-08 17:19 
AnswerRe: Casting of _bstr_t to CString Pin
ThatsAlok4-Jun-08 1:01
ThatsAlok4-Jun-08 1:01 
QuestionEXECUTE code 1 after the other only Pin
Trupti Mehta3-Jun-08 4:59
Trupti Mehta3-Jun-08 4:59 
AnswerRe: EXECUTE code 1 after the other only Pin
David Crow3-Jun-08 5:01
David Crow3-Jun-08 5:01 
AnswerRe: EXECUTE code 1 after the other only Pin
sudhir_Kumar3-Jun-08 5:19
sudhir_Kumar3-Jun-08 5:19 
AnswerRe: EXECUTE code 1 after the other only Pin
JudyL_MD3-Jun-08 6:43
JudyL_MD3-Jun-08 6:43 
QuestionRe: EXECUTE code 1 after the other only Pin
David Crow3-Jun-08 6:49
David Crow3-Jun-08 6:49 
GeneralRe: EXECUTE code 1 after the other only Pin
JudyL_MD3-Jun-08 6:53
JudyL_MD3-Jun-08 6:53 
GeneralRe: EXECUTE code 1 after the other only Pin
Trupti Mehta3-Jun-08 21:18
Trupti Mehta3-Jun-08 21:18 
GeneralRe: EXECUTE code 1 after the other only Pin
JudyL_MD4-Jun-08 3:00
JudyL_MD4-Jun-08 3:00 
GeneralRe: EXECUTE code 1 after the other only Pin
Trupti Mehta4-Jun-08 4:14
Trupti Mehta4-Jun-08 4:14 
GeneralRe: EXECUTE code 1 after the other only Pin
JudyL_MD4-Jun-08 4:34
JudyL_MD4-Jun-08 4:34 
QuestionPopup Menu - Check Menu Item Pin
JBAK_CP3-Jun-08 4:32
JBAK_CP3-Jun-08 4:32 
AnswerRe: Popup Menu - Check Menu Item Pin
sudhir_Kumar3-Jun-08 4:39
sudhir_Kumar3-Jun-08 4:39 
GeneralRe: Popup Menu - Check Menu Item Pin
JBAK_CP3-Jun-08 6:53
JBAK_CP3-Jun-08 6:53 
GeneralRe: Popup Menu - Check Menu Item Pin
Hamid_RT4-Jun-08 20:30
Hamid_RT4-Jun-08 20:30 

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.