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
2 answers

std::vector constructor behavior

Take the following code: std::vector> v(10, 10); This code doesn't compile with libstdc++. It does compile with Visual Studio's C++ library, however. The behavior I would expect is that v is filled with 10 vectors of size 10, and…
3
votes
3 answers

Defining _CRT_SECURE_NO_WARNINGS lead to crash in vector destructor

I am working with a legacy code ported from Visual C++ 6.0 to VC++ 9.0 (2008). I disabled the secure CRT warnings using _CRT_SECURE_NO_WARNINGS pre-processor definition. But that has lead to crashes in the std::vector destructor. Any issues in…
sarat
  • 10,512
  • 7
  • 43
  • 74
3
votes
3 answers

How can I force MSVC++ to ignore CRT dependencies of a static library?

I don't know if it's possible to do this, but I would like the /NODEFAULTLIB to be applied to a static library project. I have many application projects (A.exe, B.dll, C.dll) that use a common static library D.lib. This library has a lot of code and…
erbi
  • 1,242
  • 1
  • 12
  • 14
3
votes
1 answer

How to call malloc in x86_64 asm

I am trying to call malloc in Visual Studio Community 2019 assembly but I keep getting undefined reference to symbol malloc. mov rcx,10h call malloc Does not compile as I get the undefined reference to malloc I have even tried it with _malloc with…
BackSpace7777777
  • 159
  • 3
  • 13
3
votes
1 answer

Random number generator crashing in assembly

Found this code here on stackoverflow, I understood how it works and tried implementing it. It crashes at the INT 1AH instruction and I don't know why. When I run it in ollydbg, it stops at the same line. I also tried the random number generator…
Kenshoru
  • 35
  • 5
3
votes
1 answer

The procedure entry point _wsplitpath_s could not be locating in the dynamic link library msvcrt.dll

Recently upgrade a MFC++ Project which includes .NET assemblies from Visual Studio 2005 to 2008. Now whenever its installed it displays the following message: The procedure entry point _wsplitpath _s could not be locating in the dynamic link…
PostMan
  • 6,899
  • 1
  • 43
  • 51
3
votes
1 answer

How can I distribute msvr71.dll (microsoft visual c++ runtime dll)

I have an application that requires msvcr71.dll. In some machines the DLL is missing. Instead of asking the user to install the VC++ runtime, I would like to distribute the DLL (only one file msvcr71.dll) with our application. This gets copied to…
Jayan
  • 18,003
  • 15
  • 89
  • 143
3
votes
1 answer

Static CRT link

im trying to build my project and I want to link the windows CRT statically, but I find some errors trying to linking it, I've included in the linking list these ones: libcmt.lib LIBCPMT.LIB libucrt.lib libvcruntime.lib but I get these linking…
Malium
  • 79
  • 1
  • 6
3
votes
1 answer

Python (3.6.1) keypress detection and popups

Im kinda new to python and i tried printing the key when pressed on windows and show the key in a popup message: import msvcrt import ctypes # An included library with Python install. def Mbox(title, text, style): …
MercyDude
  • 884
  • 10
  • 27
3
votes
3 answers

Visual Studio _CrtDumpMemoryLeaks always skipping object dump

I'm trying to use the CRT memory leak detection but I keep getting the following message in Microsoft Visual Studio: "Detected memory leaks - skipping object dump." I can never get the it to actually do and object dump. I followed the directions in…
Kiril
  • 39,672
  • 31
  • 167
  • 226
3
votes
1 answer

Why does ucrtbase export _CxxThrowException?

Why do ucrtbase.dll and vcruntime140.dll overlap in some of the functions they export according to Dependency Walker? Disclaimer: This is currently purely of academic interest to me. I'm currently trying to understand the layout of the Microsoft…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
3
votes
1 answer

Install VC++ Runtime 64-bit if system is 64-bit

I am creating a Visual Studio 2010 Setup project for installing my application. My application works by having multiple executable for different system bitness, and detects if you are running on a 32-bit or 64-bit system. I'd like to have the Visual…
Vegard Larsen
  • 12,827
  • 14
  • 59
  • 102
3
votes
1 answer

RuntimeLibrary mismatch despite the correct flags being passed to all objects?

I tried to link a library (let's call it LibB) to a program (TheProgram) that already linked another library (LibA). The debug configuration builds fine, but in release mode I get this error: error LNK2038: mismatch detected for 'RuntimeLibrary':…
Tamás Szelei
  • 23,169
  • 18
  • 105
  • 180
3
votes
2 answers

Statically link with Microsoft CRT, and OpenMP

I’m developing some Windows software that's sometimes used in embedded-like scenarios. That’s not uncommon for my users to have a dedicated Win7 or Win8 PC they never update, not even connect to the Internet. Users plug those PC to a specific…
Soonts
  • 20,079
  • 9
  • 57
  • 130
3
votes
1 answer

How to check if a file is R/W locked

I already checked out Python : Check file is locked and How to check whether a file is_open and the open_status in python. Generally, the following code suits my need, but it doesn't work in Python 2 for Unicode strings. from ctypes import…
Jessie K
  • 93
  • 7