Click here to Skip to main content
15,924,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSorting large data files - >1 billion records Pin
DViggiano1-Feb-03 7:29
DViggiano1-Feb-03 7:29 
GeneralRe: Sorting large data files - >1 billion records Pin
Chris Losinger1-Feb-03 8:16
professionalChris Losinger1-Feb-03 8:16 
GeneralRe: Sorting large data files - >1 billion records Pin
DViggiano1-Feb-03 8:29
DViggiano1-Feb-03 8:29 
GeneralRe: Sorting large data files - >1 billion records Pin
Ted Ferenc1-Feb-03 21:43
Ted Ferenc1-Feb-03 21:43 
GeneralRe: Sorting large data files - >1 billion records Pin
Giles1-Feb-03 8:29
Giles1-Feb-03 8:29 
GeneralRe: Sorting large data files - >1 billion records Pin
Nitron1-Feb-03 8:33
Nitron1-Feb-03 8:33 
GeneralMultiple View Document Pin
Atlence1-Feb-03 7:22
Atlence1-Feb-03 7:22 
GeneralMFC CTreeCtrl Surgeon required! :-) Pin
_psh_1-Feb-03 6:46
_psh_1-Feb-03 6:46 
hello,

i have a heirarchical set of data which is created from the following simplified class defintion:

class Extent
{
vector<surface*>m_pSurfaces;
vector<extent*>m_pExtents;
};

CMyAppDoc.cpp:

Extent *globalExtent=new Extent();
...

as can be seen: extents can have surfaces, and other extents.

the best way to represent this data is to use a CTreeCtrl class. this appears in a dialog with add surface, add extent, remove item buttons. i have never programmed such a complex data structure with a tree-view before and am having difficulty acquiring pointers to my data objects when they are selected in the tree view. every item in the tree view corresponds to an item in the globalExtent data heirarchy.

one way to get the pointer i thought would be to associate a HTREEITEM to each surface and extent - that way, when a CTreeCtrl item was selected i could use GetSelectedItem to get the selected HTREEITEM and search my globalExtent heirarchy for a match. This would not be a good idea though due to the search required - a large globalExtent heirarchy will require a time-consuming search.

I wondered if anyone had come across a similar situation and if so how they solved the problem, or if anyone had any ideas as to how to go about the probelm.

Thanks,
Paul.

Roll eyes | :rolleyes: Smile | :)
GeneralRe: MFC CTreeCtrl Surgeon required! :-) Pin
peterchen1-Feb-03 11:02
peterchen1-Feb-03 11:02 
GeneralRe: MFC CTreeCtrl Surgeon required! :-) Pin
Neville Franks1-Feb-03 11:06
Neville Franks1-Feb-03 11:06 
GeneralHardware information Pin
Mahesh Varma1-Feb-03 5:05
Mahesh Varma1-Feb-03 5:05 
GeneralRe: Hardware information Pin
Abbas_Riazi1-Feb-03 5:50
professionalAbbas_Riazi1-Feb-03 5:50 
GeneralRe: Hardware information Pin
1-Feb-03 6:10
suss1-Feb-03 6:10 
GeneralRe: Hardware information Pin
Rickard Andersson201-Feb-03 7:14
Rickard Andersson201-Feb-03 7:14 
GeneralRe: Hardware information Pin
Abbas_Riazi1-Feb-03 17:34
professionalAbbas_Riazi1-Feb-03 17:34 
GeneralTaskbar button Pin
Shah Shehpori1-Feb-03 4:36
sussShah Shehpori1-Feb-03 4:36 
GeneralRe: Taskbar button Pin
Rickard Andersson201-Feb-03 4:40
Rickard Andersson201-Feb-03 4:40 
GeneralRe: Taskbar button Pin
Shah Shehpori1-Feb-03 5:01
sussShah Shehpori1-Feb-03 5:01 
GeneralRe: Taskbar button Pin
Rickard Andersson201-Feb-03 5:31
Rickard Andersson201-Feb-03 5:31 
GeneralRe: Taskbar button Pin
Paul M Watt1-Feb-03 12:55
mentorPaul M Watt1-Feb-03 12:55 
GeneralAAaarrgh!!! Adding a simple string to a ListBox!! (Win32) Pin
Rickard Andersson201-Feb-03 3:16
Rickard Andersson201-Feb-03 3:16 
GeneralRe: AAaarrgh!!! Adding a simple string to a ListBox!! (Win32) Pin
Stephane Rodriguez.1-Feb-03 3:43
Stephane Rodriguez.1-Feb-03 3:43 
GeneralRe: AAaarrgh!!! Adding a simple string to a ListBox!! (Win32) Pin
Rickard Andersson201-Feb-03 4:37
Rickard Andersson201-Feb-03 4:37 
GeneralDownload file from web... Pin
Anonymous1-Feb-03 2:43
Anonymous1-Feb-03 2:43 
GeneralRe: Download file from web... Pin
Moak1-Feb-03 2:48
Moak1-Feb-03 2:48 

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.