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

C / C++ / MFC

 
GeneralCertOpenStore problem Pin
agrafov30-Aug-04 12:41
agrafov30-Aug-04 12:41 
GeneralIE Toolbar multiline Pin
DARK_GARRY30-Aug-04 11:48
DARK_GARRY30-Aug-04 11:48 
Generaloverriding wndproc WM_NOTIFY Pin
prateekkathuria30-Aug-04 11:37
prateekkathuria30-Aug-04 11:37 
Generalwordfind Pin
webmanc30-Aug-04 11:36
webmanc30-Aug-04 11:36 
Generalcin question from newbie Pin
StephenMcAllister30-Aug-04 11:35
StephenMcAllister30-Aug-04 11:35 
GeneralRe: cin question from newbie Pin
Christian Graus30-Aug-04 12:07
protectorChristian Graus30-Aug-04 12:07 
GeneralRe: cin question from newbie Pin
David Crow31-Aug-04 3:59
David Crow31-Aug-04 3:59 
GeneralClass of Classes! or #$@%#^#$@$@!!! Pin
CreepingFeature30-Aug-04 10:00
CreepingFeature30-Aug-04 10:00 
Hi!

I'm going nuts here! Spent a whole week building three huge classes and now got a bright idea...What if I was to organise my classes, def in headers, say cls1.h cls2.h cls3.h (by the by got implementation files .cpp's D'Oh! | :doh: ),
into a neat monster class clsMonster.h!

If you didn't understand what happened just now dont worry I still cant figure out why I even had the thought in the first place!

The thing is I got these 3 classes that logicaly are a part of a thing that can be a big class on its own. I started developing them separately since they are big but now feel that they would be neater if there was one class containing them sub classes (just jaming every member in clsMonster would be overkill and give me 2000+ lines to debug in one pile! OMG | :OMG: ).

I made a new header, defined the big class but now need to access the members of sub classes from main() thru the big class.

Problem: Cant figure out the damn syntax of accessing the members of sub classes.

eg.

....

#include "cls1_H.h"
#include "cls2_H.h"
#include "cls3_H.h"

class Player
{
blah blah
};

.....

#include "Player_H.h"

main()
{

Player myChar;

myChar.blah blah(); // this would access members of Player
}

BUT HOW DO I ACCESS THE HEADERS INCLUDED IN Player.h???

Is there an other way to do this! (main concern - neat groups!!!)


If anyone is on this particular line right now, THANKS FOR YOUR TIME!

--------------------------------------------------------

DEBUGING IS A BITCH :smiley whith brains blown out:

--------------------------------------------------------

GeneralRe: Class of Classes! or #$@%#^#$@$@!!! Pin
Michael P Butler30-Aug-04 10:15
Michael P Butler30-Aug-04 10:15 
GeneralRe: Class of Classes! or #$@%#^#$@$@!!! Pin
Christian Graus30-Aug-04 12:12
protectorChristian Graus30-Aug-04 12:12 
GeneralRe: Class of Classes! or #$@%#^#$@$@!!! Pin
CreepingFeature30-Aug-04 21:07
CreepingFeature30-Aug-04 21:07 
GeneralGenerate/edit files Pin
Dody_DK30-Aug-04 9:25
Dody_DK30-Aug-04 9:25 
GeneralRe: Generate/edit files Pin
Christian Graus30-Aug-04 12:10
protectorChristian Graus30-Aug-04 12:10 
GeneralRe: Generate/edit files Pin
Dody_DK31-Aug-04 1:05
Dody_DK31-Aug-04 1:05 
GeneralRe: Generate/edit files Pin
David Crow31-Aug-04 4:02
David Crow31-Aug-04 4:02 
GeneralRe: Generate/edit files Pin
Christian Graus31-Aug-04 10:27
protectorChristian Graus31-Aug-04 10:27 
GeneralRunning .exe Pin
Naveed Shoaib30-Aug-04 8:57
Naveed Shoaib30-Aug-04 8:57 
GeneralRe: Running .exe Pin
Alexander M.,30-Aug-04 9:19
Alexander M.,30-Aug-04 9:19 
GeneralRe: Running .exe Pin
Archer28230-Aug-04 16:24
Archer28230-Aug-04 16:24 
GeneralRe: Running .exe Pin
User 21559730-Aug-04 19:55
User 21559730-Aug-04 19:55 
GeneralApplication Pin
BlackKnight7930-Aug-04 8:02
BlackKnight7930-Aug-04 8:02 
GeneralRe: Application Pin
Steve Maier30-Aug-04 10:23
professionalSteve Maier30-Aug-04 10:23 
GeneralRe: Application Pin
BlackKnight7931-Aug-04 5:42
BlackKnight7931-Aug-04 5:42 
GeneralRe: Application Pin
Steve Maier31-Aug-04 5:56
professionalSteve Maier31-Aug-04 5:56 
GeneralRe: Application Pin
BlackKnight7931-Aug-04 6:05
BlackKnight7931-Aug-04 6:05 

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.