I have a control in class A. How can I make it accessible in Class B?

thanks

Re: global by James

James
Fri Oct 01 15:33:02 CDT 2004

"JSmith" <jsmithmitra@yahoo.com> wrote in message
news:u29exf%23pEHA.1152@TK2MSFTNGP11.phx.gbl...
> I have a control in class A. How can I make it accessible in Class B?

There are many ways. Most are bad design. Choosing among the rest
would require know more about how you plan on using the control.

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)



Re: global by JSmith

JSmith
Fri Oct 01 19:22:16 CDT 2004

Ok, there is link list defined and populated into a CPP file but now I need
to have access to that link list thru another CPP file to get a pointer to
it. How can I make this happen?
I tried some basic commands which works for ansi c++ but MFC doesn't accept
them.

Any suggestions on this?
Thanks in advnace

"James Curran" <JamesCurran@mvps.org> wrote in message
news:uz9F0X$pEHA.3868@TK2MSFTNGP15.phx.gbl...
> "JSmith" <jsmithmitra@yahoo.com> wrote in message
> news:u29exf%23pEHA.1152@TK2MSFTNGP11.phx.gbl...
> > I have a control in class A. How can I make it accessible in Class B?
>
> There are many ways. Most are bad design. Choosing among the rest
> would require know more about how you plan on using the control.
>
> --
> Truth,
> James Curran
> Home: www.noveltheory.com Work: www.njtheater.com
> Blog: www.honestillusion.com Day Job: www.partsearch.com
> (note new day job!)
>
>



Re: global by James

James
Sun Oct 03 09:59:18 CDT 2004

JSmith wrote:
> Ok, there is link list defined and populated into a CPP file but now
> I need to have access to that link list thru another CPP file to get
> a pointer to it. How can I make this happen?

What is class B planning on doing with the list? Does it need access to
the list itself or just to the elements of it.


> I tried some basic commands which works for ansi c++ but MFC doesn't
> accept them.

What have you tried?
--
Truth,
James Curran [erstwhile-MVP]
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com