home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.ms-windows.apps:2478 comp.lang.c++:13285
- Newsgroups: comp.os.ms-windows.apps,comp.windows.ms.programmer,comp.lang.c++
- Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!mineng.dmpe.CSIRO.AU!dmssyd.syd.dms.CSIRO.AU!metro!ob1!andrewm
- From: andrewm@uws.EDU.AU (Andrew Maclean)
- Subject: Re: Passing data among classes; For Borland C++/Windows GURUS
- Message-ID: <1992Sep3.215825.4644@uws.EDU.AU>
- Organization: University of Western Sydney
- References: <1992Sep2.225938.16408@kakwa.ucs.ualberta.ca>
- Date: Thu, 3 Sep 1992 21:58:25 GMT
- Lines: 33
-
- jimmy@namao.ucs.ualberta.ca writes:
-
- >I have a question for the C++ gurus.
-
- >Let us say I have a dialog box class and another class that contains
- >data manipulated by the dialog box. What is the best methoed of
- >passing data between these two classes and why ?
-
- >Let us say I have a list of items that can change. I want to display
- >this list in a drop down list or a list box. The dialog box is of
- >class MyDlg and the list is in class MyList. How would I pass this
- >list to the dialog box class ? What if I wanted the dialog box to
- >be able to change the list ?
-
- >Thanks,
- >Jimmy
- >--
- >jimmy@namao.ucs.ualberta.ca
-
- Without having more data, I would suggest that you consider using
- Transfer Buffers. Certainly, you can set up a dialog with a set of
- transfer buffers. One of the transfer buffers can be easily passed
- to a sub-dialog.
-
-
- +-----------------------------------------------------------------------------+
- | Andrew J. P. Maclean E-mail: a.maclean@uws.edu.au |
- | University Planner, andrewm@uws.edu.au |
- | University of Western Sydney, Phone: +61 2 678 7848 |
- | PO Box 1000, St. Marys, N.S.W. 2760, Fax: +61 2 678 7804 |
- | Australia. |
- +-----------------------------------------------------------------------------+
-
-