How do I go about taking a project that has been coded in C++ and make it so that anyone's computer can use it. I've tried copying the dll that it needs but it doesn't work. And the only other hitch is that if it requires you to have Visual Studio for it to work that it would hinder the use of my program. Any help in this area would be fascinating.
Unless you cross compile the program, it won't work in other Operating Systems, if you are using standard c++ and no other external libraries (like boost, or SFML) you just need to run the .exe file on the other persons computer (and assuming it has the same Operating System as yours) it should run without any problems.
if you are using an external library, then are you using the static or dynamic versions? dynamic means you get a bunch of .dll files which need to be in the same folder as your .exe file, static means the external libraries get compiled into your .exe so you don't need .dll files.
Well I'm using Visual Studio 10 on Windows 7 and I'm trying to get it to run on another laptop with the same OS but no Visual studio.
My goal is to be able to shove my program on mediafire or some other outlet and allow people to download it and use it. I dont know what you mean though by static and dynamic libraries. Is there a cover-all I can use to just blanket grab any dll's or anything I may need in the program or would that be a waste of space?
I get two errors. The first is a "cant find" this dll file thing. So I took the dll off the first computer and copied it to the target computer. Then I get a run error, something about failed to start followed by some gibberish, (0x0a0b0) or something. I just wanted to test it out on another computer and to no avail.
I never knew projects made with visual studio needed a .dll for it to run, if you aren't too attached to it already, I would switch to something not made by Micro$hit, such as code::blocks.
although I don't recommend downloading anything from that site, looks shady, do a search for the dll.
As long as you're using the debug configuration, use /MTd. There are settings for each of the configurations.
If you use the release configuration, use /MT.
If you go up to the point where you would change the Runtime library setting, if you look near the top of the settings window you will see that you can specify settings for debug or release configurations. Whichever the project is set to use currently is the one shown by default. Note that selecting a configuration here will just allow you to change settings for that configuration. It won't actually change the configuration of your project.