Click here to Skip to main content
15,913,159 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalinclude file error Pin
Angel Kid2-Jan-04 6:28
Angel Kid2-Jan-04 6:28 
GeneralRe: include file error Pin
volkan8782-Jan-04 8:06
volkan8782-Jan-04 8:06 
GeneralRe: include file error Pin
Angel Kid2-Jan-04 12:50
Angel Kid2-Jan-04 12:50 
GeneralRe: include file error Pin
Gary R. Wheeler2-Jan-04 14:09
Gary R. Wheeler2-Jan-04 14:09 
General.Net rebuilds my solution all the time Pin
Asger M2-Jan-04 5:18
Asger M2-Jan-04 5:18 
GeneralRe: .Net rebuilds my solution all the time Pin
Michael Dunn2-Jan-04 6:53
sitebuilderMichael Dunn2-Jan-04 6:53 
GeneralRe: .Net rebuilds my solution all the time Pin
Asger M2-Jan-04 7:36
Asger M2-Jan-04 7:36 
GeneralSeeking for ideas on data handling... Pin
vmaltsev2-Jan-04 4:30
vmaltsev2-Jan-04 4:30 
Hail everyone,

I started a new project recently and now, in a design stage, I've got some points where I'd like to have as many opinions as possible. Smile | :)

First of all, the data handling. Let's say I have tons of small object which are referenced by some other object and those are referenced by others. We can see it as a forest with trees and leaves on those trees. So, it's logical to make an array of leaves, trees and forests(cuz I will have more than one forest). But on leaves I might have insects and those insects will be created by other coders. So I need another array of some general insect objects on each leaf. Those insects can be very different, but they should have the only one in common, they should have a possibility to be on a very sectain leaf in my forest. Looks like pretty trivial, though I expressed it in a bizarre form. But there are some disputable points. As such, where to store insect objects, inside an array on the leaf or inside some other global array? Logicaly an insect object must be inside the leaf object (cuz an insect can't be on more than one leaf in a time, so it's not wise to use any kind of refereces), but in the same time we don't know what kind of insect we have, so we can make an array of a generalized insect object and use conversion, but what will happen to data of derived class then? Another question is how to make a copy of a tree, and make it fast, if we want to modify it without modifying an original instance of the forest? Or maybe this idea about arrays is wrong in general and there some better ways to do that?
Sorry for such a long post.
I will be happy with any kind of remarks and ideas.
Small remark though. I will have LOTS of leaves cuz number of trees in one forest can be about 500k. And another things, I am not allowed to use any kind of language extensions but STL.

Thanks in advance.
GeneralRe: Seeking for ideas on data handling... Pin
l a u r e n2-Jan-04 9:48
l a u r e n2-Jan-04 9:48 
GeneralCPU id Pin
Mazdak2-Jan-04 2:26
Mazdak2-Jan-04 2:26 
GeneralRe: CPU id Pin
Mark Tutt2-Jan-04 2:50
Mark Tutt2-Jan-04 2:50 
GeneralRe: CPU id Pin
Mazdak2-Jan-04 3:00
Mazdak2-Jan-04 3:00 
GeneralRe: CPU id Pin
Mark Tutt2-Jan-04 3:14
Mark Tutt2-Jan-04 3:14 
GeneralRe: CPU id Pin
Mazdak2-Jan-04 3:44
Mazdak2-Jan-04 3:44 
GeneralRe: CPU id Pin
Mazdak2-Jan-04 3:10
Mazdak2-Jan-04 3:10 
GeneralSorting problems Pin
Rafael Fernández López2-Jan-04 2:16
Rafael Fernández López2-Jan-04 2:16 
GeneralRe: Sorting problems Pin
utkarsharma2-Jan-04 2:42
utkarsharma2-Jan-04 2:42 
GeneralRe: Sorting problems Pin
Rafael Fernández López2-Jan-04 2:48
Rafael Fernández López2-Jan-04 2:48 
GeneralRe: Sorting problems Pin
utkarsharma2-Jan-04 3:06
utkarsharma2-Jan-04 3:06 
GeneralRe: Sorting problems Pin
Rafael Fernández López2-Jan-04 3:09
Rafael Fernández López2-Jan-04 3:09 
GeneralRe: Sorting problems Pin
utkarsharma2-Jan-04 3:34
utkarsharma2-Jan-04 3:34 
GeneralRe: Sorting problems Pin
utkarsharma2-Jan-04 3:34
utkarsharma2-Jan-04 3:34 
GeneralRemote Control App Pin
abcowherd2-Jan-04 2:05
abcowherd2-Jan-04 2:05 
GeneralRe: Remote Control App Pin
l a u r e n2-Jan-04 9:51
l a u r e n2-Jan-04 9:51 
QuestionDLL +PCI driver? Pin
nmelah2-Jan-04 0:16
nmelah2-Jan-04 0:16 

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.