schrieb:
> Hi, im a bit stuck with a little problem. I have created two classes,
> CDrawControl and CSoundControl, and I have first created a CDrawControl
> object and then a CSoundControl. The problem is that I am trying to
> call a function within CDrawControl from within CSoundControl but it
> causes errors. How can I get around this?
>
> Just to reitoriate:
>
> CDrawControl oMyDrawControl;
> CSoundControl oMySoundControl;
> .......
>
> // From within oMySoundControl class
> ...
> oMyDrawControl:Somefunction();
> ...
As you don't want to show us your real code along with the class
definitions, not even you error messages, I have to guess:
1) You have a ":" where you should have a "."
Try: oMyDrawControl.Somefunction();
2) You try to call a member function that is not public.
However, you should study the FAQ, that would help a lot:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.8
--
Thomas