Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog sorting/settings Pin
MaxHacker7-Jan-04 3:34
MaxHacker7-Jan-04 3:34 
GeneralRe: CFileDialog sorting/settings Pin
David Crow7-Jan-04 3:56
David Crow7-Jan-04 3:56 
Generaltrinking iterface calls mscc++ 2 g++ Pin
suiram406-Jan-04 11:39
suiram406-Jan-04 11:39 
GeneralRe: trinking iterface calls mscc++ 2 g++ Pin
suiram406-Jan-04 12:21
suiram406-Jan-04 12:21 
GeneralAnother question...MFC this time! Pin
Alberto836-Jan-04 11:35
Alberto836-Jan-04 11:35 
GeneralRe: Another question...MFC this time! Pin
Anonymous6-Jan-04 11:47
Anonymous6-Jan-04 11:47 
GeneralRe: Another question...MFC this time! Pin
Alberto836-Jan-04 20:32
Alberto836-Jan-04 20:32 
GeneralCObArray and memory fragmentation Pin
Haakon S.6-Jan-04 11:29
Haakon S.6-Jan-04 11:29 
I have grown accustomed to use CObArrays in my applications, and I often have quite a few. For serialization I find them particularly easy to use.

But one thing worries me, it is as far as I can see not possible to use functions like reserve() and capacity() that the STL vector class have. In MSDN it is recommended to use SetSize(), but I have no idea at compile time how many items there will be in the arrays.

Does this mean that the pointer array is copied every time an Add() is carried out? That will result in memory looking very much like Swiss cheese at the end. MSDN speaks of default block size, but I can not find out what that is. Don't know how big this problem is in practice.

Regards, Haakon S.



A sure cure for seasickness is to sit under a tree.
Spike Milligan

GeneralRe: CObArray and memory fragmentation Pin
Christian Graus6-Jan-04 11:56
protectorChristian Graus6-Jan-04 11:56 
QuestionHow do they do that? Pin
Anonymous6-Jan-04 11:22
Anonymous6-Jan-04 11:22 
AnswerRe: How do they do that? Pin
ZoogieZork6-Jan-04 13:59
ZoogieZork6-Jan-04 13:59 
AnswerRe: How do they do that? Pin
shultas6-Jan-04 15:37
shultas6-Jan-04 15:37 
GeneralOpening COM port on USB/PCMCIA converter Pin
BambooMoon6-Jan-04 10:02
BambooMoon6-Jan-04 10:02 
GeneralRe: Opening COM port on USB/PCMCIA converter Pin
BambooMoon6-Jan-04 11:12
BambooMoon6-Jan-04 11:12 
Generalreceive information from DOS application Pin
mryazdani6-Jan-04 9:49
mryazdani6-Jan-04 9:49 
GeneralRe: receive information from DOS application Pin
Alexander M.,7-Jan-04 4:06
Alexander M.,7-Jan-04 4:06 
Questionstarting windows 2000 from dos?? Pin
IGeorgeI6-Jan-04 9:28
IGeorgeI6-Jan-04 9:28 
AnswerRe: starting windows 2000 from dos?? Pin
Selvam R6-Jan-04 19:27
professionalSelvam R6-Jan-04 19:27 
GeneralIcon Problem Visual C++ Pin
Alberto836-Jan-04 9:04
Alberto836-Jan-04 9:04 
GeneralRe: Icon Problem Visual C++ Pin
David Crow6-Jan-04 9:12
David Crow6-Jan-04 9:12 
GeneralRe: Icon Problem Visual C++ Pin
Michael Dunn6-Jan-04 10:32
sitebuilderMichael Dunn6-Jan-04 10:32 
GeneralRe: Icon Problem Visual C++ Pin
AORD6-Jan-04 17:51
AORD6-Jan-04 17:51 
GeneralRe: Icon Problem Visual C++ Pin
Alberto836-Jan-04 20:50
Alberto836-Jan-04 20:50 
GeneralRe: Icon Problem Visual C++ Pin
AORD7-Jan-04 19:51
AORD7-Jan-04 19:51 
GeneralRe: Icon Problem Visual C++ Pin
Alberto838-Jan-04 5:45
Alberto838-Jan-04 5:45 

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.