First, thanks very much for this contribution

I noticed something however when running this in windowed mode, for me when I closed out the engine using the "X" in the top right corner, it seems as though the WndProc would not release causing the acknex.exe to continue to run. I checked System Processes in Task Manager to confirm this.

I added this case to the WndProc and it has corrected the issue:

Code:

case WM_DESTROY:
{
PostQuitMessage(0);
sys_exit(NULL);
return(0);
}



-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies