This one got me puzzled for a while. I copied the
\\\'dbPerformCheckListForDisplayModes ()\\\' and the
\\\'dbPerformCheckListForDisplayModes ()\\\' function from the darkGDK documentation. When compiling I receaved some errors.
the solution was easy, (yet it took me 10 minutes,including a search on the forum with no results). A misprint in the documentation.
Checklist instead of
CheckList.
error generating code:
(correct is code commented)
#include \\\"DarkGDK.h\\\"
void DarkGDK ( void )
{
dbEmptyChecklist ();
dbPerformCheckListForGraphicsCards (); // documentation states this
// dbPerformChecklistForGraphicsCards (); // header file states this
dbPerformCheckListForDisplayModes (); // documentation states this
// dbPerformChecklistForDisplayModes(); // header file states this
dbSetDisplayMode ( 800, 600, 32 );
while ( LoopGDK ( ) )
{
dbSync ( );
}
return;
}
error message:
projects\\\\proj\\\\main.cpp(6) : error C3861: \\\'dbPerformCheckListForGraphicsCards\\\': identifier not found
projects\\\\proj\\\\main.cpp(9) : error C3861: \\\'dbPerformCheckListForDisplayModes\\\': identifier not found