Hi,
I'll give an overview of my program. In my FormView class the user clicks the "Find Trade" button. This generates a "FindTrade" dialog box which has a list control populated with the contents of a database as well as an "Edit" button.
The user selects an item in the list control and then clicks the "Edit" button. This generates an "Edit Trade" dialog box with edit controls populated with the field contents of the record selected in the list control. Once the edits any data in the edit controls the "EditTrade" button is clicked. This updates the record in the database just fine.
The problem I'm having is passing the address of the list control in my "Find Trade" dialog box to a function, UpdateItem() in my Recordset class. It's he passing of the address that's presenting the problem.
This is the problem I'm having. I need to access a list control, m_lcTradeList in CFindTradeDialog from a function UpdateList() in CTransactionSet
I'll give an overview of my program. In my FormView class the user clicks the "Find Trade" button. This generates a "FindTrade" dialog box which has a list control populated with the contents of a database as well as an "Edit" button.
The user selects an item in the list control and then clicks the "Edit" button. This generates an "Edit Trade" dialog box with edit controls populated with the field contents of the record selected in the list control. Once the edits any data in the edit controls the "EditTrade" button is clicked. This updates the record in the database just fine.
The problem I'm having is passing the address of the list control in my "Find Trade" dialog box to a function, UpdateItem() in my Recordset class. It's he passing of the address that's presenting the problem.
This is the problem I'm having. I need to access a list control, m_lcTradeList in CFindTradeDialog from a function UpdateList() in CTransactionSet