Problem: When you try to check a quiz when using Windows 98, the Viewer reports an error code 87
To fix this problem:
The Windows API Programming online course was written using Microsoft Visual C++ 4.2, which had a non-standard, limited version of the Standard Template Libraries. Microsoft did upgrade their STL support in version 5.0, but their upgrade broke code written for STL in earlier versions.
To fix LAB 13 so it works with the new compiler, edit LAB13.CPP and find the code that looks like:
typedef struct
{
char szName[50];
int id;
int score;
} STUDENT;
Comment that code out and replace it with:
using namespace std;
class STUDENT
{
public:
char szName[50];
int id;
int score;
boolean operator< ( STUDENT const &a ) const
{
return true;
}
boolean operator== ( STUDENT const &a ) const
{
return true;
}
};
Then recompile and ignore any warnings about "C++ exception handling".
That should fix it up, but let us know if you have any problems or further questions. You can contact us at support@descriptor.com
Problem: when you do step 5, the linker fails with unresolved link errors
To fix this problem, skip ahead and do step 17 and then rebuild. Then continue on in step 6.
All trademarks are owned by their respective companies.