I have a problem that has got me stumped, but I suspect it has a straight-forward solution.
The application is dialog-based, and contains an array of bytes. When the user clicks the "Transmit" button, another dialog opens allowing the user to select some options. Finally, they click the "Send" button of the transmit dialog, and the data is to be output (in this case, serial).
The problem is that the array of bytes is a member of the application dialog, and so is out of scope to the transmit dialog. Thus references to the data array in the transmit dialog won't compile.
In a Document/View based application, the view could obtain a pointer to the document and thereby gain access to the document's data members. Can anyone show me how to achieve similar access in my dialog-based application?
Thanks!
R Jones
The application is dialog-based, and contains an array of bytes. When the user clicks the "Transmit" button, another dialog opens allowing the user to select some options. Finally, they click the "Send" button of the transmit dialog, and the data is to be output (in this case, serial).
The problem is that the array of bytes is a member of the application dialog, and so is out of scope to the transmit dialog. Thus references to the data array in the transmit dialog won't compile.
In a Document/View based application, the view could obtain a pointer to the document and thereby gain access to the document's data members. Can anyone show me how to achieve similar access in my dialog-based application?
Thanks!
R Jones