Jump to content

View more

Image of the Day

I've done more tweaks to my color palette selector. #gamedev #screenshotsaturday #madewithunity https://t.co/aJXrC4ruRg
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

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   

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



#2 MagnusCaligo   Members   

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.