windows - Running C++ binaries without the runtime redistributable (Server2k3, XPSP3) -


A CGI application has been written in Visual Studio 2008 and it has been debited locally, I have uploaded it to a Windows Server 2003 OS where it was sent immediately.

I'm guessing that I need to install the unfortunate runtime, but after reading it:

I wonder if it's more understandable Comes in to avoid this side by side content and rewrite the app.

I'm guessing that MScRVT version is not needed in Windows Server 2003. Is Windows Server 2003 near?

When it comes to deployment of thick clients, I would like to distribute the required DLL with my app. What do they believe that I just include iostream, sstream, string?

Does this change quite if I add windows.h?

Added:

/ recommend MT switch below

C / C ++ -> Code Generation -> Runtime Library -> Multi-Threaded (/

(You may need to clean one:

build -> clear

to avoid error messages

"Failed to save the updated manifest to file")

From 38k to 573k bloated my app What I call important (imagine if you had a salary) Since many of this app Example load Are done and are loaded continuously (precious memory and processor resources are required) I would like to find a better solution.

I understand that today it is not important for many situations and many developers do not have a focus, so that is the trend of RT and 60 MB Runtime, but this is what I have to do.

Added:

To compile the project after deleting the debugging:

Project -> Propeties -> C / C ++ -> Preprocessor - > Preprocessor Definitions (Delete Remove;)

The size was reduced to 300k, and it will run.

Added: As suggested by Chris Bake below, copy: msvcm90.dll msvcp90.dll msvcr90.dll will provide all the necessary order for the Microsoft.VC90.CRT.manifest application directory.

Visual Studio 6 has been suggested for some time, but it does not support Vista (or Windows 7 we believe) Other solutions that do not require ordering delivery, Unfortunately, the end of the purpose of using a high-level OOP language such as C ++ will be a taste or basic.

As long as I need to set up C ++ redistribution, the trade off is an additional 260k option.

A complete list of options:

  • To rewrite the app so that no C / C ++ can be used.
  • Switch to a Mingav based tooltet like code studio 6 or code :: blocks - they use pre-distributed msvcrt.dll as their runtime.
  • Create the use of MT switch It creates the required runtime function in your Exe which will blot it. But that bloat is clearly less load than the separate DLL load.
  • Distribute the VS9 Runtime as a 'Private SXS' install. It will be C: \ program files \ Microsoft Visual Studio 9.0 \ VC \ redist \ x86 \ Microsoft.VC90.CRT content is in the same folder as your application's exe. If you have implemented SP1, this folder will include the SP1 runtime, but your application will ask for the RTM Runtime. Defines _BIND_TO_CURRENT_CRT_VERSION in your project, rebuilds and should fix it manually.
  • Apparently there is a vc_redist.exe which can be obtained for VS 9. Find it or the MSI or Installer Mozo is actually required to install the above assembly (as part of the Microsoft .VC90.CRT content in shared sxs store).

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -