Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 MagnusCaligo   Members   -  Reputation: 102

Like
0Likes
Like

Posted 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 :)



Sponsor:

#2 MagnusCaligo   Members   -  Reputation: 102

Like
0Likes
Like

Posted 02 September 2013 - 10:28 PM

Never mind! Fixed it! I was using the 64 bit (x64) version of the SDL.dll and not the 32 bit (x86)






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS