I have designed a simple console program using VC++ 10. Now I want to give it t a friend or use it on another computer that doesn't have VC++, NET framework etc installed.
Is it possible to do so?
To run a .NET application your friend will need to install the .NET Framework onto their machine.
another computer that doesn't have VC++, NET framework etc installed.
Also another important note: you need to compile the application in Release mode NOT Debug mode.
Applications compiled in Debug mode require Visual Studio to be present on the machine executing it. This is to facilitate VS's debugging tools (such as QuickWatch among others). Debug application executables are also unoptimised (depending on your compiler settings), which can lead to strange behavior in Release executables.
Applications compiled in Release mode do not require Visual Studio to be present on the machine, however a lot of debugging tools will not function, this usually is not a problem as this is usually done when all debugging has been completed.
It didn't work. I sent it to a friend and yet he is reviving the same message, that reinstalling may solve the problem and that thefile MSVC.dll is missing.
Does not matter if you compile your program as debug or release, to make it NOT dependent of msvcp100d.dll/msvcr100d.dll (debufg version, NOT redistributable according to Microsoft license) or msvcr100.dll/msvcp100.dll (release version, redistributable) compile your c++ program with /MTd or /MT switch.
I gave him the link. But I wanted to know, that if there is any way to do so without MSVC++ being in a computer. Say I give it too 50 friends, I can't ask them all to download the it
Well you can check out the MSVC license. Many Steam games, etc. install MSVC redist during install. It is a redistributable, so you are supposed to distribute it with MSVC applications, I believe.
However, I have no idea under what license this distribution occurs. It may involve costly license fees. Perhaps someone else knows more about the details.