- Linux MultiMedia Studio Computer Accessories User Manual
Mint v4 PC Programming Guide
22
MN1278 05.2001
12. Select ‘ClassView’. Right click on ‘CVCTutorialDlg’ and select ‘Add Member Variable’. Copy the dialog
below.
Figure 3-11: ClassView Dialog (step 12)
13. Find CVCTutorialDlg::OnInitDialog() in the file ‘VCTutorialDlg’. Replace the comment ‘// TODO: Add
extra initialization here’ with code to initialise the CController * object. This will depend on the controller
being used Note that m_pController could have been declared as the class that will be created (e.g.
CMintDrive) in which case <dynamic_cast> would not have to be used.. The #define values should be
modified to reflect the system being used.
MintDrive
#define NODE 10
#define COMMPORT 1
#define BAUDRATE 57600
m_pController = dynamic_cast<CController *> ( new CMintDrive ( NODE, COMMPORT, BAUDRATE,
TRUE ));
NextMove PC
#define NODE 0
#define ADDRESS 0x23C
m_pController = dynamic_cast<CController *> ( new CNextMovePC ( NODE, ADDRESS ));
NextMove PCI
#define NODE 0
#define CARDNUMBER 0
m_pController = dynamic_cast<CController *> ( new CNextMovePCI1 ( NODE, CARDNUMBER ));
NextMove BX
#define NODE 1
#define COMMPORT 2
#define BAUDRATE 9600
m_pController = dynamic_cast<CController *> ( new CNextMoveBX ( NODE, COMMPORT, BAUDRATE,
TRUE ));