This will cause a crash:
// Set the main window as borderless
hWnd = openWindow(0, 0, ScreenW, ScreenH, "Zabi's Escape Editor", WS_POPUP | WS_CLIPCHILDREN, true);
// Attach the DarkGDK screen to the window
dbOpenScreen(hWnd, 0, 0, ScreenW, ScreenH,ScreenD,0);
// Set the window to the to the top of the z-order
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOREPOSITION | SWP_NOSIZE);
I have a feeling I'm supposed to use it in place of something, but I can't figure it out.
The fastest code is the code never written.