i posted on here about a week ago saying i couldn't get my program to work. All the feedback i got didn't help whatsoever. I am working through lazy foo's sdl tutorials and i'm on lesson 3. I cannot get the images to go on the screen. The last time i posted i wrote out the code, however i even copy and pasted the code and its still not working. I setup a debug thing that tells me whats going wrong and it says that i cannot load the images. I am working in visual c++. I will link the project this time. Please i really need help.
#1 Members - Reputation: 346
Posted 20 October 2012 - 01:17 AM
i posted on here about a week ago saying i couldn't get my program to work. All the feedback i got didn't help whatsoever. I am working through lazy foo's sdl tutorials and i'm on lesson 3. I cannot get the images to go on the screen. The last time i posted i wrote out the code, however i even copy and pasted the code and its still not working. I setup a debug thing that tells me whats going wrong and it says that i cannot load the images. I am working in visual c++. I will link the project this time. Please i really need help.
"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"
"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"
#2 Staff - Reputation: 8925
Posted 20 October 2012 - 01:27 AM
Which version of SDL are you using? Were you successful with Lazy Foo's first two lessons ("getting an image on the screen" and "optimized surface loading and blitting")?
What exactly is the "debug thing" you set-up? Is this a tool, or some code you wrote, or are you using some of the debugging facilities provided by Visual Studio?
Where are your image files located? Where is your executable located? How are you running your code?
- Jason Astle-Adams.
From my blog: 20 ways to advertise your game | What next? Intermediate to advanced C++
How to make games WITHOUT programming | 4 reasons you aren't a successful indie developer
#3 Members - Reputation: 346
Posted 20 October 2012 - 02:03 AM
"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"
"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"
#4 Moderators - Reputation: 5048
Posted 20 October 2012 - 04:46 AM
You might wonder how the various SDL library files were loaded in that case. Well, Windows searches more than just the "working directory" when it looks for DLLs - it will extend the search to the folder the executable is in if it doesn't find it, in addition it will eventually search some system locations if the DLL still isn't found.
Windows will not do this for ordinary files your program tries to load.
You can change the default working directory in your project settings under "Debugging", but you probably shouldn't.
#5 Crossbones+ - Reputation: 1373
Posted 20 October 2012 - 01:53 PM
Here's Breakout:
Breakout!
If you need some photo editing done, contact me:
superman3275@gmail.com
if you want some programming help, or are recruiting for a game development team, either PM me on here or email me up there
#6 Members - Reputation: 346
Posted 20 October 2012 - 07:03 PM
"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"
"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"







