Change exception handling to macros
Continued DirectX
Replaced NULL with nullptr