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
3
votes
0 answers

Error R6016 during process termination

I have a non sistematic crash (R6016) when our application is about to terminate. The application is composed of several DLL. After a little investigation, we found the problem inside a function of mscvrt ( VS 2010) : _ptiddata __cdecl…
alangab
  • 849
  • 5
  • 20
3
votes
0 answers

What does _setmode actually translate?

I have done some research on getting UTF-8/16 to work properly in cmd.exe. I've found these…
user4520
  • 3,401
  • 1
  • 27
  • 50
3
votes
4 answers

Why Microsoft CRT is so permissive regarding a BSTR double free

This is a simplified question for the one I asked here. I'm using VS2010 (CRT v100) and it doesn't complain, in any way ever, when i double free a BSTR. BSTR s1=SysAllocString(L"test"); SysFreeString(s1); SysFreeString(s1);
mbelaoucha
  • 85
  • 6
3
votes
1 answer

Is there an error in "msvcrt.dll", with Ruby compiler, on "Windows XP"?

I am using the latest version of Ruby; I have downloaded it, [from here] (http://rubyinstaller.org/downloads/). My installer is: http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.2.2.exe. Then, I have installed it into my Windows XP…
user5204818
3
votes
2 answers

msvcrt.getch() returning b'a' instead of 'a'?

I have the following code from one class: class _Getch: def __init__(self): self.impl = _GetchWindows() def read_key(self): return self.impl() class _GetchWindows: def __init__(self): import msvcrt def…
Brynhildr Xie
  • 115
  • 1
  • 3
  • 10
3
votes
1 answer

How to check the runtime library type of a binary exe generated from VC++

For the purposes of troubleshooting an existing build (set of binary files, exe's, dll's, lib's). Is there a way, with command line tools from SDK or other utility to quickly check the Runtime Library Type an object file was compiled against? For…
3
votes
1 answer

How to access item metadata outside node in MsBuild?

I'm trying to make a .targets file for my NuGet package, which will link to a proper .lib file depending on the C++ runtime library of a project. This answer recommends to use %(ClCompile.RuntimeLibrary) metadata for this. But it seems like metadata…
Mikhail
  • 20,685
  • 7
  • 70
  • 146
3
votes
2 answers

Nothing happening with msvcrt getch() when running script in PyCharm 3.4.X console

I have the following code (in its own file/ script/ program): from msvcrt import getch while True: key = ord(getch()) print('You pressed', key) and I have ran it in PyCharm's console and pressed all sorts of keys, alpha's, numbers, and…
user3896917
3
votes
3 answers

Solving the multiple CRT problem

I know there are a few similar questions, but I don't think they really have the same requirements as mine. Our DLL is compiled with Visual Studio 2005 and must link with a specific version of the CRT, due to installation constraints. This is…
Collin Dauphinee
  • 13,664
  • 1
  • 40
  • 71
3
votes
1 answer

Update MSVCRT.dll on Windows XP

I'm developing a small tool on Windows 8 which links agains msvcrt.dll and uses memmove_s. I want to deploy my tool on Windows XP machines. My version of msvcrt is 7.0.30xx but on XP its 7.0.2600. The older version does not include memmove_s so…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
3
votes
1 answer

Private Unmanaged Side by Side Assembly Problem

We have a large MFC application that uses a number of DLLs. So far we have been using vcredist_x86.exe to install MFC and the CRT into the unmanaged side by side assembly cache (C:\Windows\WinSxS). When MFC/CRT is installed in this way, the…
jmatthias
  • 7,375
  • 7
  • 27
  • 36
3
votes
2 answers

Does _control87() also set the SSE MXCSR Control Register?

The documentation for _control87 notes: _control87 [...] affect[s] the control words for both the x87 and the SSE2, if present. It seems that the SSE and SSE2 MXCSR control registers are identical, however, there is no mention of the SSE unit in…
IInspectable
  • 46,945
  • 8
  • 85
  • 181
3
votes
1 answer

Can I bundle MSVCRT DLLs with my app without installing the distributable VC++ package

I have a complex app which cannot be linked statically with the CRT, but on the other hand does not require admin privileges to be installed (since it isn't doing anything that requires it). The normal way for installing the CRT so it can be linked…
Eldad Mor
  • 5,405
  • 3
  • 34
  • 46
3
votes
1 answer

Is /nodefaultlib:msvcr100 the proper approach to handling msvcr100.dll vs msvcr100d.dll defaultlib issue

For a cross-platform software project that builds on Linux and Windows we have distinct ways to handle third-party libraries. On Linux we build and link against the versions distributed with the CentOS/RHEL distribution, which means we link against…
pong
  • 115
  • 6
3
votes
1 answer

Compile C in Visual Studio 2012 without MSVCRT runtime

Visual Studio 2012 (and earlier versions) are capable of compiling C code. Plain C, not C++. It would be a good feature if you wanted to avoid the runtime hazzle. I thought of compiling plain C binaries and was hoping to do so without the MSVCRT…
bytecode77
  • 14,163
  • 30
  • 110
  • 141