Click here to Skip to main content
15,917,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ programming problems Pin
valikac24-Dec-03 6:01
valikac24-Dec-03 6:01 
GeneralRe: C++ programming problems Pin
Vincent Sim24-Dec-03 6:05
Vincent Sim24-Dec-03 6:05 
GeneralRe: C++ programming problems Pin
Member 78576824-Dec-03 21:22
Member 78576824-Dec-03 21:22 
GeneralRe: C++ programming problems Pin
LizardWiz24-Dec-03 6:18
LizardWiz24-Dec-03 6:18 
GeneralRe: C++ programming problems Pin
nema3224-Dec-03 8:05
nema3224-Dec-03 8:05 
GeneralQuick CListCtrl question Pin
J.B.24-Dec-03 5:38
J.B.24-Dec-03 5:38 
GeneralRe: Quick CListCtrl question Pin
valikac24-Dec-03 6:06
valikac24-Dec-03 6:06 
GeneralCEditView and page breaks Pin
kjessee24-Dec-03 5:33
kjessee24-Dec-03 5:33 
GeneralRe: CEditView and page breaks Pin
Monty224-Dec-03 20:15
Monty224-Dec-03 20:15 
GeneralRe: CEditView and page breaks Pin
kjessee25-Dec-03 12:42
kjessee25-Dec-03 12:42 
GeneralWindows Media Player Pin
Member 78517224-Dec-03 5:25
Member 78517224-Dec-03 5:25 
GeneralRe: Windows Media Player Pin
Monty224-Dec-03 21:14
Monty224-Dec-03 21:14 
GeneralAllocated memory when converting Unicode to A Pin
Dominik Reichl24-Dec-03 3:42
Dominik Reichl24-Dec-03 3:42 
GeneralRe: Allocated memory when converting Unicode to A Pin
Bo Hunter24-Dec-03 3:57
Bo Hunter24-Dec-03 3:57 
GeneralRe: Allocated memory when converting Unicode to A Pin
Dominik Reichl24-Dec-03 4:02
Dominik Reichl24-Dec-03 4:02 
GeneralRe: Allocated memory when converting Unicode to A Pin
Tim Smith24-Dec-03 14:13
Tim Smith24-Dec-03 14:13 
Using A2W and the other conversion routines are perfectly fine for a handfull of strings in a routine. Once the routine returns, the memory is freed by the magic of the stack.

Where you can have problems is if the strings are very long (i.e. 32k each) or if you do a lot of them such as in a loop.

for (i = 0; i < 189519029; i++) psz = A2W (psz2);

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
GeneralPlatform Prob Pin
Prakash Nadar24-Dec-03 3:17
Prakash Nadar24-Dec-03 3:17 
GeneralRe: Platform Prob Pin
Michael Dunn24-Dec-03 6:43
sitebuilderMichael Dunn24-Dec-03 6:43 
GeneralRe: Platform Prob Pin
Prakash Nadar24-Dec-03 15:14
Prakash Nadar24-Dec-03 15:14 
GeneralRe: Platform Prob Pin
Tim Smith24-Dec-03 17:40
Tim Smith24-Dec-03 17:40 
QuestionHow can I grab stderr/out from external libraries Pin
tiba24-Dec-03 2:38
tiba24-Dec-03 2:38 
QuestionWhy commercial software does not have main()? Is it in the Windows? Pin
Link260024-Dec-03 2:20
Link260024-Dec-03 2:20 
AnswerRe: Why commercial software does not have main()? Is it in the Windows? Pin
Ian Darling24-Dec-03 2:32
Ian Darling24-Dec-03 2:32 
GeneralRe: Why commercial software does not have main()? Is it in the Windows? Pin
Link260024-Dec-03 3:07
Link260024-Dec-03 3:07 
GeneralHello Everyone! Pin
skylonely24-Dec-03 2:19
skylonely24-Dec-03 2:19 

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.