Initial commit
This commit is contained in:
20
TBE/MinGW/doc/drmingw/samples/exchndl2.cxx
Normal file
20
TBE/MinGW/doc/drmingw/samples/exchndl2.cxx
Normal file
@@ -0,0 +1,20 @@
|
||||
/* 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
|
||||
Reference in New Issue
Block a user