Jump to content

  • Log In with Google      Sign In   
  • Create Account

MagnusCaligo

Member Since 02 Sep 2013
Offline Last Active Sep 03 2013 08:24 PM

Topics I've Started

SDL: The application was unable to start correctly (0x000007b)

02 September 2013 - 10:13 PM

So i'm new to using C++ and I think the best way to learn a new language is to try and make a game (emphasis on the try) and so i'm starting with SDL and i'm having problems with this code. 

//http://www.youtube.com/user/thecplusplusguy
//Thanks for the typed in code to Tapit85
#include <SDL/SDL.h>
 
int main(int argc, char *argv[])
{
        SDL_Init(SDL_INIT_EVERYTHING);
        SDL_Surface *screen;
        screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE);
//      screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE|SDL_FULLSCREEN);
        bool running = true;
        while(running) {
                SDL_Event event;
                while(SDL_PollEvent(&event)) {
                        switch(event.type) {
                                case SDL_QUIT:
                                        running = false;
                                        break;
                        }
                }
                //logic && render
 
 
                SDL_Flip(screen);
        }
        SDL_Quit();
        return 0;
}

I got this from Theplusplusguy and I want to follow his tutorials so please help me! Thank you :)


PARTNERS