21 lines
287 B
C++
21 lines
287 B
C++
/* exchndl2.cxx
|
|
*
|
|
* A portable way to load the EXCHNDL.DLL on startup.
|
|
*
|
|
* Jose Fonseca
|
|
*/
|
|
|
|
#include <windows.h>
|
|
|
|
class ExceptionHandler
|
|
{
|
|
public:
|
|
|
|
ExceptionHandler()
|
|
{
|
|
LoadLibrary("exchndl.dll");
|
|
}
|
|
};
|
|
|
|
static ExceptionHandler gExceptionHandler; // global instance of class
|