How to put files into executable?

Jul 17, 2011 at 8:17pm
So i just made this tic-tac-toe game using SDL. I want to show my friend the game.

So i made a folder with these files
1
2
3
4
5
-SDL Includes and Libs
-a bunch of .dll files
-the image files that are used in the game
-the .ttf file that is used in the game
-the .exe file


And it says mscv.dll is missing? On my computer when i click the .exe it runs perfectly. What am i doing wrong?
Jul 18, 2011 at 12:59pm
Does no one know how to do this?
Jul 18, 2011 at 1:31pm
Hmm..if you're using Visual C++, I think you'll have to get your friend to install the Microsoft Visual C++ Redistributable.

I've used SDL for over a year but I've never come across a problem like this, so I'm not entirely sure if this will fix your problem.
Jul 18, 2011 at 2:02pm
Link your program statically to mscv.dll or get your friend to download the Redistributable package as Poke386 pointed out.
Jul 18, 2011 at 2:02pm
But games like minecraft its just an executable file.

I dont want him to have to download anything except the executable
Jul 18, 2011 at 2:10pm
Poke386 nailed it, your friend doesn't have this DLL so either you statically link that library, use a different compiler (and potentially set your self back a few weeks because of random bugs) or your friend downloads the redistributable. The easy answer is for your friend to download the package. If there is no friend and you want to play this at school or something then you need to do one of the other two options (if this is the case please don't lie to us, it makes it harder to help you).

Right now your game requires a file that your friend doesn't seem to have, you can't just say please and expect a work around to magically appear.
Jul 18, 2011 at 3:01pm
Okay i choose statically linking the libary. How would i do that?
Jul 18, 2011 at 3:33pm
I think it's:

Project menu -> (project name) Properties (ALT+F7)

Choose C/C++ -> Code generation.

On the right choose Runtime Library and choose one of the options that does not say DLL
Last edited on Jul 18, 2011 at 3:36pm
Jul 18, 2011 at 6:01pm
If in doubt, just ship the DLL in question with the game.
Topic archived. No new replies allowed.