Search by Tags

C-Runtime Files

Applicable for

Article updated at 10 Sep 2018
Subscribe for this article updates


The C Run-time Library (CRT) is the part of the C++ Standard Library that incorporates the ISO C99 standard library. The Visual C++ libraries that implement the CRT support native code development, and both mixed native and managed code. All versions of the CRT support multi-threaded development. Most of the libraries support both static linking, to link the library directly into your code, or dynamic linking to let your code use common DLL files.

Depending on the project compile settings you use, some binary files coming from Microsoft might be required to be kept with on WinCE device to run your application. On a developer machine, the compiler setup installs these files so they are available - but they might not be available on a WinCE device!

This is especially true for the C runtime DLL (msvcr*.dll), which contains the implementation of ANSI and alike functions, e.g.: fopen(), malloc(). The DLL is named like: msvcrversion.dll, an abbreviation for "Microsoft Visual C Runtime". Those DLLs are not included with standard release image, hence it is necessary to ship the C runtime DLL (msvcrversion.dll) together with the application somehow, so that your application will work on the target WinCE device or you should statically link CRT with your application.

Statically Link CRT

Right click on your project and select properties. Under C/C++ -> Code Generation change RunTime library from Multi-threaded DLL(/MD) to Multi-thread(/MT).

Dynamic Link CRT

C-Runtime DLLs can be found in the SDK installation directory : C:\Program Files (x86)\Windows CE Tools\SDKs\Toradex_CE800\Sdk\Crt\bin\ARM. msvcp110.dll, msvcr110.dll are release version DLLs and msvcp110d.dll and msvcr110d.dll are debug version DLLs. Please keep the required DLL on the WinCE device along with your application. Toradex SDK can be downloaded from here : Windows Embedded Compact SDK

Note: The DLLs can be kept in \Windows or \FlashDisk\System or application kept directory.

For more information about CRT library, please refer : Microsoft CRT Library Features documentation