• Advertisement
Sign in to follow this  

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

This topic is 1603 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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. 

//Thanks for the typed in code to Tapit85
#include <SDL/SDL.h>
int main(int argc, char *argv[])
        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;
                //logic && render
        return 0;

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

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement