Questions tagged [msvcrt]

MSVCRT is the Microsoft Visual C++ Runtime.

MSVCRT is the Microsoft Visual C++ Runtime. It is included in Microsoft Visual C++ Redistributable Package.

KB 2977003 lists supported Visual C++ runtime downloads from Visual C++ 2005 to 2015.

Visit C Run-Time Library Reference on MSDN to get more information.

483 questions
5
votes
2 answers

Why do I need to install MSVC++ redist.?

I'm in the process of learning VC++ but I wonder why do end-users also need MSVC++? As far as I can see in MSDN most if not all of the libraries that my programs use (the actual DLL files) already come with the system itself (user32.dll,…
Silviu-Marian
  • 10,565
  • 6
  • 50
  • 72
4
votes
2 answers

MSVCRT: Where is the implement (source code) of sin, cos et al?

I wonder where the implemention of basic trigonometric functions can be found in the Visual C++ CRT. Find in files for "sin" in C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\crt shows the definition in math.h but nothing more (except a…
Serge Wautier
  • 21,494
  • 13
  • 69
  • 110
4
votes
2 answers

strtok_s and compilers C11 onward compliance

The declaration of strtok_s in C11, and its usage, look to be very different from the strtok_s in compilers like the latest bundled with Visual Studio 2022 (17.4.4) and also GCC 12.2.0 (looking at MinGW64 distribution). I fear the different form has…
LuC
  • 347
  • 2
  • 10
4
votes
1 answer

What are the msvcp140_1.dll and msvcp140_2.dll files in the Microsoft C runtime?

I am trying to import a C library into a Visual Studio project. The library ships with the following files: msvcp140.dll msvcp140_1.dll msvcp140_2.dll I understand that these are Microsoft C runtime DLL files. But I'd like to know more about the…
boot4life
  • 4,966
  • 7
  • 25
  • 47
4
votes
3 answers

Automatic installation of run-time libraries with WiX

When my file set includes DLLs with one ore more dependencies to the C++ run-time DLLs I need to install the file from VCRedist.exe. This can be difficult, since each DLL is dependent on a specific version of the C++ run-time. How do I add…
harper
  • 13,345
  • 8
  • 56
  • 105
4
votes
0 answers

How to get single character input in Jupyter?

In Jupyter, using python 3, I am trying to run a cell that is supposed to ask for a single character input in a for loop and store the answer in a list. I wanted to avoid the use of input() to avoid having to press enter everytime. Working in…
msfrn
  • 57
  • 3
4
votes
2 answers

msvcrt alternative for MinGW? (e.g. to get conforming snprintf)

So here's a fun one... we have a few C libraries which should be platform independent, even though they were developed on linux, because they only rely on the c standard library as defined in ISO/IEC 9899:1999. When we compiled those libraries with…
Felix G
  • 674
  • 1
  • 7
  • 17
4
votes
1 answer

Unable to link C runtime library (libcmt.lib) using lld-link.exe (Windows)

I'm writing a language using LLVM. I'd like to avoid having to package clang and simply use the LLVM tools (ex. lld, lld-link). I've been trying to invoke the printf function from my simple IR code (testinput.ll): ; ModuleID =…
John Doe
  • 399
  • 1
  • 4
  • 23
4
votes
0 answers

How to find the type_info symbol without using /export (for unit tests)

Context: We've implemented SEH/C++ exception handing in LLVM some time ago, to make our JIT'ted code compatible with native exceptions. As part of the exception handling code generation, internal information about type_info is necessary, because…
atlaste
  • 30,418
  • 3
  • 57
  • 87
4
votes
2 answers

Simple Assembly program on visual studio 2017

.386 .model flat, c .stack 100h printf PROTO arg1:Ptr Byte .data msg1 byte "Hello World!", 0Ah, 0 .code main proc INVOKE printf, ADDR msg1 ret main endp end main Hi, I am…
kireinasora
  • 323
  • 1
  • 3
  • 10
4
votes
3 answers

What Visual C++ Runtimes are users likely to have installed?

What Visual C++ Runtimes are users likely to have installed? Update: This question has become more of a "What is the best way to deploy internet based applications, written in C++. That require the Microsoft Visual C++ runtime."
unixman83
  • 9,421
  • 10
  • 68
  • 102
4
votes
4 answers

Py2exe with Tkinter

I'm trying to convert a basic tkinter GUI program to an .exe using py2exe. However I've run into an error using the following conversion script. # C:\Python26\test_hello_con.py py2exe from distutils.core import setup import…
rectangletangle
  • 50,393
  • 94
  • 205
  • 275
4
votes
1 answer

How to control CPU instructions used by Microsoft C Runtime Libraries?

Is it possible to control which CPU instruction sets are used by the MS C Runtime Library (Visual Studio 2013, 2015)? If I step into the disassembly for, say, cos(), the code compares against a precalculated set of CPU capabilities and then executes…
TrickiDicki
  • 143
  • 2
  • 13
4
votes
3 answers

Cant Run Application Created With QT5 And VS2013 In Windows XP

I have application created with QT5 and Visual Studio 2013. I also use QT WebEngine in my application. My application works fine in windows 7 (32 bit) . For some reason i need to run it in windows xp sp3 (32 bit). When i run it, I get the following…
M.H.
  • 223
  • 3
  • 10
  • 23
4
votes
2 answers

MinGW / MinGW64 Linking and Dependency on `msvcrt.dll`

I am coding for WinAPI in MinGW One thing I still have not fully understood is the VC redistributable, I got a whole pack of question to it Some say that such programs will need the msvcrt.dll is the same library needed for bot c++ and c…
user2214913
  • 1,441
  • 2
  • 19
  • 29