- Linux MultiMedia Studio Computer Accessories User Manual

Using the Library with Various Languages
MN1278 05.2001
21
10. Select ClassView’. Right click on ‘CVCTutorialDlg’ and select ‘Add Member Function’. Copy the dialog
below.
Figure 3-10: Class View dialog (step 10)
Hit ‘OK’ to edit the new function. The MILError function will check the return code from all Mint Interface
Library functions. Edit the function as follows.
__int16 CVCTutorialDlg::MILError(__int16 nError)
{
if ( erSUCCESS != nError ){
TCHAR szError[ szMAX_ERROR ];
getErrorString( szError, nError );
MessageBox( szError );
}
return nError;
}
11. At this point an attempt to build the code will fail at the link stage, as the source for getErrorString has not
been included. Add ‘host_def.cpp’ to the project and the code should build.