I'm having problems making directx applications. I'm using Dev-C++. When I try to compile the code in sunlight's tutorials, I get an illegal operation when I run the program. Even if the main function is empty, it dies before any code is executed. If I remove the DirectDrawCreateEx(NULL, (void **)&pDD, IID_IDirectDraw7, NULL); line, it runs fine, but that's probably the most important line in the program. What's the problem?