DialogBox returns -1. GetLastError returns error 1813: The specified resource type cannot be found in the image file.
I have looked through the code, and as far as I can tell, the program has nothing to do with icons, bitmaps, or any other sort of images. Any ideas?