SDL event debugging issue

I am currently trying to get SDL events to work, but the problem is the program is not working.

When I started the program; it opens and closes very quickly and debugging was throwing these errors:

The thread 'Win32 Thread' (0xb60) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xe00) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x628) has exited with code 1 (0x1).
The program '[868] My Project.exe: Native' has exited with code 1 (0x1).

I am using Visual Studio C ++ Express Edition 2008 and the include files:

#include "SDL / SDL.h"
#include "SDL / SDL_image.h"
#include <windows.h>
#include <string>

The code I'm trying to get can be found at: http://lazyfoo.net/SDL_tutorials/lesson04/index.php

0


source to share


1 answer


This code tries to load the filename "x.png". If you don't have a valid PNG file with that name in your working directory, the program will exit with error code 1.



0


source







All Articles