Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mid life crisis Pin
Todd Smith2-Dec-01 14:36
Todd Smith2-Dec-01 14:36 
GeneralRe: Mid life crisis Pin
Jon Sagara2-Dec-01 14:39
Jon Sagara2-Dec-01 14:39 
GeneralRe: Mid life crisis Pin
Chambers3-Dec-01 0:59
Chambers3-Dec-01 0:59 
GeneralRe: Mid life crisis Pin
Christian Graus3-Dec-01 11:50
protectorChristian Graus3-Dec-01 11:50 
GeneralRe: Mid life crisis Pin
Chambers4-Dec-01 4:26
Chambers4-Dec-01 4:26 
GeneralRe: Mid life crisis Pin
Erik Funkenbusch3-Dec-01 9:16
Erik Funkenbusch3-Dec-01 9:16 
GeneralRe: Mid life crisis Pin
3-Dec-01 11:21
suss3-Dec-01 11:21 
GeneralProgram design Pin
Steve P2-Dec-01 13:01
Steve P2-Dec-01 13:01 
I have a program which has many derived classes. The objects created from these derived classes all have embedded data member objects which have data members ( e.g. m_myarrary[][]) which reflect default values. These default values are very simular thoughout each derived class and embedded data member. The second subscript of 'myarrary' is always equal to four indexes in all of the different derived classes. They represent quantity, description, width and length. The first subscript of the arrary represents components of the derived objects. Many of these components are equal and simular in each of the derived classes. However, each derived class has it's own special components also, therefore the first subscript does not have all of the same indexes as the second.
Currently, I have created routines that extract the persitant data for these defaults into the data members/arrary one at at time using a seperate function for each member/arrary. If I align the data in the files in a order in which the equal/simular data has the same index/position as the other equal/simular data I could put some of the individual functions into a base class and not have to have a seperate function for each member/array. This method would require that the programmer know in advance what equal/simular data is for all of the derived classes, some of which haven't even been thought of yet. This seems undoable, because if the indexes are not in alignment, the data will not be retriveable. However, the idea of so many simular functions, that bascially do the same thing , seems to be wastefull.
Has anyone else had a simular problem? I would love to hear ideas.

Steve P.



GeneralBasic UDP Connection Pin
2-Dec-01 10:13
suss2-Dec-01 10:13 
GeneralRe: Basic UDP Connection Pin
Jon Sagara2-Dec-01 10:36
Jon Sagara2-Dec-01 10:36 
GeneralRe: TCP & UDP! Pin
Masaaki Onishi2-Dec-01 12:59
Masaaki Onishi2-Dec-01 12:59 
GeneralRe: TCP & UDP! Pin
Jon Sagara2-Dec-01 13:53
Jon Sagara2-Dec-01 13:53 
GeneralRe: Basic UDP Connection Pin
Jon Sagara2-Dec-01 10:50
Jon Sagara2-Dec-01 10:50 
GeneralRetrieving dialog box values Pin
2-Dec-01 7:24
suss2-Dec-01 7:24 
GeneralRe: Retrieving dialog box values Pin
Igor Sukhov2-Dec-01 12:48
Igor Sukhov2-Dec-01 12:48 
Generaltoolbar buttons problem Pin
2-Dec-01 6:09
suss2-Dec-01 6:09 
GeneralRe: toolbar buttons problem Pin
Igor Sukhov2-Dec-01 6:11
Igor Sukhov2-Dec-01 6:11 
GeneralRe: toolbar buttons problem Pin
2-Dec-01 15:27
suss2-Dec-01 15:27 
GeneralSetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 6:05
John M. Drescher2-Dec-01 6:05 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
Gert Boddaert2-Dec-01 7:36
Gert Boddaert2-Dec-01 7:36 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 8:07
John M. Drescher2-Dec-01 8:07 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
Tim Smith2-Dec-01 8:37
Tim Smith2-Dec-01 8:37 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 17:01
John M. Drescher2-Dec-01 17:01 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher3-Dec-01 6:21
John M. Drescher3-Dec-01 6:21 
Generalproblem with socket Pin
Fumiseki2-Dec-01 4:59
Fumiseki2-Dec-01 4:59 

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.