LMMS MN1278 Bedienungsanleitung Seite 31

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 88
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 30
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.
Seitenansicht 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 87 88

Kommentare zu diesen Handbüchern

Keine Kommentare