Click here to Skip to main content
15,889,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: A strange thing about using SHGetFileInfo to get icon Pin
Michael Dunn5-May-11 13:46
sitebuilderMichael Dunn5-May-11 13:46 
AnswerRe: A strange thing about using SHGetFileInfo to get icon Pin
Iain Clarke, Warrior Programmer6-May-11 4:53
Iain Clarke, Warrior Programmer6-May-11 4:53 
GeneralRe: A strange thing about using SHGetFileInfo to get icon Pin
yu-jian9-May-11 23:44
yu-jian9-May-11 23:44 
QuestionMFC data structures Pin
_Flaviu4-May-11 20:50
_Flaviu4-May-11 20:50 
AnswerRe: MFC data structures Pin
Alexandre GRANVAUD4-May-11 21:44
Alexandre GRANVAUD4-May-11 21:44 
AnswerRe: MFC data structures Pin
Ozer Karaagac5-May-11 1:03
professionalOzer Karaagac5-May-11 1:03 
GeneralRe: MFC data structures Pin
_Flaviu5-May-11 2:30
_Flaviu5-May-11 2:30 
GeneralRe: MFC data structures Pin
Ozer Karaagac5-May-11 5:24
professionalOzer Karaagac5-May-11 5:24 
I think, you mean which collection class? If so, Array is more efficient on random access.

I also think, you need to access the elements with Primary Keys/Forein Keys in master-detail relationships.

If you need rows in sorted order, you can fill this array sorted. You can take advantage of SQL's SELECT with ORDER BY clause while filling. If the array is sorted, you can access its items by using binary search to speed up searches.

If you just need to access items by the key, you can simply employ CMap to access its elements with key-value pair.
typedef CMap<int, int, CDataPack, CDataPack&> CDataPackMap;

You need to keep relationships yourself, or maybe, you may create more sophisticated structures.

[edit]BTW, Not at all. Smile | :) [/edit]
GeneralRe: MFC data structures Pin
_Flaviu5-May-11 6:25
_Flaviu5-May-11 6:25 
QuestionHow to parse xml (read/write xml file) in vc++ Pin
shiv@nand4-May-11 17:54
shiv@nand4-May-11 17:54 
AnswerRe: How to parse xml (read/write xml file) in vc++ Pin
Hans Dietrich4-May-11 18:00
mentorHans Dietrich4-May-11 18:00 
AnswerRe: How to parse xml (read/write xml file) in vc++ Pin
వేంకటనారాయణ(venkatmakam)4-May-11 19:52
వేంకటనారాయణ(venkatmakam)4-May-11 19:52 
AnswerRe: How to parse xml (read/write xml file) in vc++ Pin
ShilpiP4-May-11 23:11
ShilpiP4-May-11 23:11 
QuestionInvalid class string when using CreateDispatch Pin
Member 29729924-May-11 12:20
Member 29729924-May-11 12:20 
AnswerRe: Invalid class string when using CreateDispatch Pin
Hans Dietrich4-May-11 18:02
mentorHans Dietrich4-May-11 18:02 
GeneralRe: Invalid class string when using CreateDispatch Pin
barneyman4-May-11 18:26
barneyman4-May-11 18:26 
AnswerRe: Invalid class string when using CreateDispatch Pin
Richard MacCutchan4-May-11 21:16
mveRichard MacCutchan4-May-11 21:16 
GeneralRe: Invalid class string when using CreateDispatch Pin
Member 29729924-May-11 22:19
Member 29729924-May-11 22:19 
GeneralRe: Invalid class string when using CreateDispatch Pin
Richard MacCutchan4-May-11 23:05
mveRichard MacCutchan4-May-11 23:05 
GeneralRe: Invalid class string when using CreateDispatch Pin
Member 29729925-May-11 0:04
Member 29729925-May-11 0:04 
GeneralRe: Invalid class string when using CreateDispatch Pin
Richard MacCutchan5-May-11 2:20
mveRichard MacCutchan5-May-11 2:20 
GeneralRe: Invalid class string when using CreateDispatch Pin
Member 29729925-May-11 10:25
Member 29729925-May-11 10:25 
GeneralRe: Invalid class string when using CreateDispatch Pin
Richard MacCutchan5-May-11 21:05
mveRichard MacCutchan5-May-11 21:05 
QuestionDestroying ModalDialog Pin
pix_programmer4-May-11 4:46
pix_programmer4-May-11 4:46 
AnswerRe: Destroying ModalDialog Pin
David Crow4-May-11 4:57
David Crow4-May-11 4:57 

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.