Visual C++ 2008 Redistribution
Moderator: Coders of Rage
Visual C++ 2008 Redistribution
I am using the vc++ express compiler and in order to give out your product you need to give the dlls along with it. How to i distribute these with out having the person download the redistributable package.
- Kros
- Chaos Rift Regular
- Posts: 136
- Joined: Tue Feb 24, 2009 4:01 pm
- Current Project: N/A
- Favorite Gaming Platforms: PC, Playstation/2/3
- Programming Language of Choice: C++
- Location: Oregon,USA
- Contact:
Re: Visual C++ 2008 Redistribution
After a quick google search that lead me to here, it seems that you can modify your project settings to build with the DLL's included, though it will increase your binaries size, as expected.
Project Settings -> C/C++ -> Code Generation -> Runtime LIbrary
Change to "Multithreaded" / "Multithreaded Debug".
Hope that helps!
Project Settings -> C/C++ -> Code Generation -> Runtime LIbrary
Change to "Multithreaded" / "Multithreaded Debug".
Hope that helps!
YouTube ChannelIsaac Asimov wrote:Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.
Re: Visual C++ 2008 Redistribution
I read somewhere that when you switch it to multithreaded its bad for the program but i do not remember the source. Does anyone know what that problem is or if there isn't any.
- Kros
- Chaos Rift Regular
- Posts: 136
- Joined: Tue Feb 24, 2009 4:01 pm
- Current Project: N/A
- Favorite Gaming Platforms: PC, Playstation/2/3
- Programming Language of Choice: C++
- Location: Oregon,USA
- Contact:
Re: Visual C++ 2008 Redistribution
The other solution thats mentioned (which I believe is actually being used by the ES team) is to distribute the files found in the Microsoft.VC90.CRT folder.
YouTube ChannelIsaac Asimov wrote:Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.
Re: Visual C++ 2008 Redistribution
I know that certain dlls are needed for different projects, how do i find out which ones are the correct ones to distribute. And Microsoft also does not want certain dlls distributed which ones are those.
- dandymcgee
- ES Beta Backer
- Posts: 4709
- Joined: Tue Apr 29, 2008 3:24 pm
- Current Project: https://github.com/dbechrd/RicoTech
- Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
- Programming Language of Choice: C
- Location: San Francisco
- Contact:
Re: Visual C++ 2008 Redistribution
Maybe they should've thought a littler harder about this before they made it impossible to run programs without them then, eh?herby490 wrote:And Microsoft also does not want certain dlls distributed which ones are those.
As far as which ones I'm afraid I can't help you very much there.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches!
- Kros
- Chaos Rift Regular
- Posts: 136
- Joined: Tue Feb 24, 2009 4:01 pm
- Current Project: N/A
- Favorite Gaming Platforms: PC, Playstation/2/3
- Programming Language of Choice: C++
- Location: Oregon,USA
- Contact:
Re: Visual C++ 2008 Redistribution
I haven't seen/heard this anywhere. Wouldn't make sense for them to not want to distribute the files that they freely made available. As to what specific DLLs for Express? All I've seen is to just copy/paste all of the junk from the Microsoft.VC90.CRT folder. Google around, might be able to find specifics that way.herby490 wrote: And Microsoft also does not want certain dlls distributed which ones are those.
YouTube ChannelIsaac Asimov wrote:Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Visual C++ 2008 Redistribution
You "can't" redistribute the debug dlls. But you can redistribute anything in the release folders, I think but not totally sure.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Re: Visual C++ 2008 Redistribution
So any of the three dlls in the Microsoft.VC90.CRT folder are legal to distribute and if i distribute them will I have to distribute all of them or do some applications only require one or two.
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Visual C++ 2008 Redistribution
All I think
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Re: Visual C++ 2008 Redistribution
I tried distributing a program to my other computer and I could not get it to work on that computer. I copied all the dlls and the manifest file in Microsoft.VC90.CRT folder on the other computer but it still wont work.
EDIT: It might be useful to know that i am going from my vista computer to an xp computer
EDIT: It might be useful to know that i am going from my vista computer to an xp computer
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Visual C++ 2008 Redistribution
Try also copying the Microsoft.VC90.MFC folder. Just the contents. So you have
somedirectory:
- myapp.exe
- a bunch of dlls from the microsoft.vc90.crt folder
- a bunch of dlls from the microsoft.vc90.mfc folder
Sorry, it's not something I've tested yet. I'm going off of the "private assembly" instructions section on http://msdn.microsoft.com/en-us/library/ms235291.aspx
somedirectory:
- myapp.exe
- a bunch of dlls from the microsoft.vc90.crt folder
- a bunch of dlls from the microsoft.vc90.mfc folder
Sorry, it's not something I've tested yet. I'm going off of the "private assembly" instructions section on http://msdn.microsoft.com/en-us/library/ms235291.aspx
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Re: Visual C++ 2008 Redistribution
I found that there is a program that tells you which dlls a program needs to run and I have gotten those dlls on my other computer but the program still will not run any idea why
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Visual C++ 2008 Redistribution
They're not in the right dir. You can do it the "right" way and make the visual c runtime library installer from microsoft run on all target machines, see the url I posted for a link or something. Might be "easier"
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Re: Visual C++ 2008 Redistribution
I tried that but it still does not work. Should I just go back to Code::Blocks and use the MinGW compiler with SDL and OpenGL since it is illegal to use DirectX with any compiler other than Visual C++?