Click here to Skip to main content
16,017,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SysAllocString Pin
Florin Crişan23-Nov-07 4:29
Florin Crişan23-Nov-07 4:29 
GeneralRe: SysAllocString Pin
George_George23-Nov-07 5:26
George_George23-Nov-07 5:26 
GeneralRe: SysAllocString Pin
Iain Clarke, Warrior Programmer23-Nov-07 5:49
Iain Clarke, Warrior Programmer23-Nov-07 5:49 
GeneralRe: SysAllocString Pin
George_George23-Nov-07 20:10
George_George23-Nov-07 20:10 
GeneralRe: SysAllocString Pin
Iain Clarke, Warrior Programmer24-Nov-07 11:34
Iain Clarke, Warrior Programmer24-Nov-07 11:34 
GeneralRe: SysAllocString Pin
George_George25-Nov-07 3:39
George_George25-Nov-07 3:39 
GeneralRe: SysAllocString Pin
Iain Clarke, Warrior Programmer25-Nov-07 14:21
Iain Clarke, Warrior Programmer25-Nov-07 14:21 
AnswerRe: SysAllocString Pin
Gary R. Wheeler24-Nov-07 2:29
Gary R. Wheeler24-Nov-07 2:29 
SysAllocString() creates a BSTR (BASIC STRing), which is the primary means for passing strings between COM objects. Memory for the string is managed by COM. Depending upon the usage, you may need to call SysFreeString() to release the memory allocated to the string when you're finished with it.

If you are using COM, then you will probably need to use BSTR's.

There is no performance or other advantage to using them otherwise. If you just need simple wide character strings, use wchar_t strings.




Software Zen: delete this;

GeneralRe: SysAllocString Pin
George_George24-Nov-07 3:50
George_George24-Nov-07 3:50 
QuestionDoModal() question? Pin
Gofur Halmurat23-Nov-07 2:52
Gofur Halmurat23-Nov-07 2:52 
QuestionRe: DoModal() question? Pin
Maximilien23-Nov-07 3:11
Maximilien23-Nov-07 3:11 
AnswerRe: DoModal() question? Pin
Gofur Halmurat23-Nov-07 3:38
Gofur Halmurat23-Nov-07 3:38 
GeneralRe: DoModal() question? Pin
toxcct23-Nov-07 3:48
toxcct23-Nov-07 3:48 
GeneralRe: DoModal() question? Pin
Gofur Halmurat23-Nov-07 3:50
Gofur Halmurat23-Nov-07 3:50 
GeneralRe: DoModal() question? Pin
toxcct23-Nov-07 3:53
toxcct23-Nov-07 3:53 
GeneralRe: DoModal() question? Pin
Gofur Halmurat23-Nov-07 4:18
Gofur Halmurat23-Nov-07 4:18 
AnswerRe: DoModal() question? Pin
Mark Salsbery23-Nov-07 5:04
Mark Salsbery23-Nov-07 5:04 
AnswerRe: DoModal() question? Pin
Gary R. Wheeler24-Nov-07 2:41
Gary R. Wheeler24-Nov-07 2:41 
QuestionSign ' is the same as \' ? Pin
George_George23-Nov-07 2:26
George_George23-Nov-07 2:26 
AnswerNOPE Pin
CPallini23-Nov-07 2:39
mveCPallini23-Nov-07 2:39 
GeneralRe: NOPE Pin
George_George23-Nov-07 3:08
George_George23-Nov-07 3:08 
GeneralRe: NOPE Pin
DoomedOne23-Nov-07 3:37
DoomedOne23-Nov-07 3:37 
GeneralRe: NOPE Pin
George_George23-Nov-07 5:13
George_George23-Nov-07 5:13 
GeneralRe: NOPE Pin
toxcct23-Nov-07 3:41
toxcct23-Nov-07 3:41 
GeneralRe: NOPE Pin
George_George23-Nov-07 5:15
George_George23-Nov-07 5: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.