Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPCM Pin
viliam18-Jan-07 21:57
viliam18-Jan-07 21:57 
QuestionRe: PCM Pin
Mark Salsbery19-Jan-07 5:41
Mark Salsbery19-Jan-07 5:41 
AnswerRe: PCM Pin
viliam21-Jan-07 20:43
viliam21-Jan-07 20:43 
GeneralRe: PCM Pin
Mark Salsbery22-Jan-07 6:32
Mark Salsbery22-Jan-07 6:32 
QuestionConversion from CString[ ] to CStringArray Pin
vikram.vit18-Jan-07 21:01
vikram.vit18-Jan-07 21:01 
AnswerRe: Conversion from CString[ ] to CStringArray Pin
rrrado18-Jan-07 21:15
rrrado18-Jan-07 21:15 
GeneralRe: Conversion from CString[ ] to CStringArray Pin
vikram.vit18-Jan-07 22:13
vikram.vit18-Jan-07 22:13 
GeneralRe: Conversion from CString[ ] to CStringArray Pin
Tony Hill19-Jan-07 0:14
professionalTony Hill19-Jan-07 0:14 
If you want to reduce the time required to populate the array you can preset the size of the array using SetSize().

If you do not set the size of the array the array will grow by the default of 1 for every Add() which causes the array to be frequently reallocated and copied.

You do not have to know exactly how elements you require because if there is insufficient elements in the array the Add() function will cause the array to grow anyway but by setting the size it will cut down the amount reallocation and copying.

You can always use the FreeExtra() function to release any unused array elements after you have populated the array.

GeneralRe: Conversion from CString[ ] to CStringArray Pin
John R. Shaw19-Jan-07 17:23
John R. Shaw19-Jan-07 17:23 
AnswerRe: Conversion from CString[ ] to CStringArray Pin
Christian Graus18-Jan-07 21:55
protectorChristian Graus18-Jan-07 21:55 
AnswerRe: Conversion from CString[ ] to CStringArray Pin
prasad_som18-Jan-07 22:57
prasad_som18-Jan-07 22:57 
Questioncalculate elapsed time Pin
George_George18-Jan-07 20:37
George_George18-Jan-07 20:37 
AnswerRe: calculate elapsed time Pin
Waldermort18-Jan-07 20:54
Waldermort18-Jan-07 20:54 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 21:49
George_George18-Jan-07 21:49 
AnswerRe: calculate elapsed time Pin
rrrado18-Jan-07 21:17
rrrado18-Jan-07 21:17 
GeneralRe: calculate elapsed time Pin
George_George18-Jan-07 21:58
George_George18-Jan-07 21:58 
QuestionRe: calculate elapsed time Pin
David Crow19-Jan-07 3:11
David Crow19-Jan-07 3:11 
AnswerRe: calculate elapsed time Pin
George_George19-Jan-07 22:48
George_George19-Jan-07 22:48 
GeneralRe: calculate elapsed time Pin
David Crow20-Jan-07 6:33
David Crow20-Jan-07 6:33 
GeneralRe: calculate elapsed time Pin
George_George20-Jan-07 21:25
George_George20-Jan-07 21:25 
QuestionRe: calculate elapsed time Pin
David Crow22-Jan-07 3:07
David Crow22-Jan-07 3:07 
AnswerRe: calculate elapsed time Pin
George_George22-Jan-07 22:52
George_George22-Jan-07 22:52 
GeneralRe: calculate elapsed time Pin
David Crow23-Jan-07 2:55
David Crow23-Jan-07 2:55 
GeneralRe: calculate elapsed time Pin
George_George23-Jan-07 16:17
George_George23-Jan-07 16:17 
AnswerRe: calculate elapsed time Pin
Roger Stoltz18-Jan-07 21:56
Roger Stoltz18-Jan-07 21:56 

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.