# Visual C++ Runtime Dependencies

> Install VCRUNTIME140.DLL for TX Text Control in Windows Forms: the Visual C++ 2017 redistributable in x86 or x64, installers, AnyCPU and the MSXML parser.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for Windows Forms > Deployment Guide > Visual C++ Runtime Dependencies
- **615 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/vc-runtime/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/vc-runtime/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/vc-runtime/llms-full.txt

---

The native libraries of TX Text Control .NET for Windows Forms use the Microsoft Visual C++ runtime, which not every Windows installation has. It isn't part of the NuGet package or of the files you copy from the setup, so your installer has to take care of it, whichever way you deploy the files of TX Text Control.

### Which Runtime Is Needed

|  |  |
|---|---|
| Runtime file | *VCRUNTIME140.DLL* |
| Redistributable | Visual C++ Redistributable Packages for Visual Studio 2017 |
| Bitness | The same as your application: 32-bit for x86 builds, 64-bit for x64 builds |
| Needed by | The native libraries of TX Text Control, in .NET and in .NET Framework applications |

The runtime belongs to the native libraries, not to the .NET assemblies. It is needed whether the native libraries come from the NuGet package or from *Assembly\\bin* and *Assembly\\bin64* of the setup.

An AnyCPU application runs as a 64-bit process on 64-bit Windows and as a 32-bit process on 32-bit Windows, so it needs the runtime of the bitness it runs with on each machine. [x86, x64, and AnyCPU](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/x86-x64-anycpu/llms-full.txt) explains the configurations.

### Install the Runtime on the User's Machine

To redistribute *VCRUNTIME140.DLL*, use Microsoft's redistributable package rather than copying the file.

1. Download the redistributable of the bitness your application uses from Microsoft's page [Latest Supported Visual C++ Redistributable Downloads](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist).
2. Include it in the installer of your application, or install it on the target machines before your application.
3. For an application that ships both an x86 and an x64 version, include the redistributable of each bitness with the matching version.

> Warning
>
> **Missing Runtime.** When the runtime is missing, the application fails on the user's machine although all files of TX Text Control are in place. [The Visual C++ Runtime Is Missing](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/troubleshooting/native-libraries/#the-visual-c-runtime-is-missing) describes the symptom and the fix.

### Other Windows Components

The XML features of TX Text Control use the Microsoft XML parser, which has to be installed in the Windows system directory: *MSXML3.DLL*, *MSXML3A.DLL* and *MSXML3R.DLL*. Microsoft's redistribution policy applies if you need to redistribute these files. [Windows Versions](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/installation/requirements/windows/llms-full.txt) lists the Windows versions TX Text Control supports.

### Related Pages

- [Managed Assemblies and Native Libraries](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/assemblies/llms-full.txt): the native libraries that need the runtime.
- [Redistribution Overview](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/redistribution/llms-full.txt): everything your application ships and needs.
- [Native Libraries and Architecture Mismatches](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/troubleshooting/native-libraries/llms-full.txt): what to check when the native libraries don't load.

---

## Nearby

- **Previous:** [Managed Assemblies and Native Libraries](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/assemblies/llms-full.txt)
- **Next:** [x86, x64, and AnyCPU](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/deployment/x86-x64-anycpu/llms-full.txt)
