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
1
vote
0 answers

How to deal with MSVCR in JNI DLL

I'm building Windows-only DLL using Visual Studio that will be used from Java using JNI. Ideally I want it to be small, usable with any JVM and consisting of only one file. JVM uses its own runtime. For example Azul Community JDK 8 contains…
vbezhenar
  • 11,148
  • 9
  • 49
  • 63
1
vote
1 answer

What's the name of the "create hard link" function in MSVCRT?

To fix a bug in this answer: What's the correct name of the function to create a hard link in MSVCRT?
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
1
vote
1 answer

How to solve mingw-w64 MSVCRT dependency issues

I'm building a golang project by using Go1.12 + msys2/mingw-w64(9.2.0), it shows errors: D:\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status…
rickyW
  • 11
  • 1
  • 4
1
vote
2 answers

Installing MSVC redistributables on Windows 7 embedded standard

I have built a DLL that will be used on a machine running windows 7 embedded standard. Now that I'm trying to integrate it, it complains about missing MSVCP140.dll. No big deal, I just have to install the redistributables. However, to install the…
Florian Humblot
  • 1,121
  • 11
  • 29
1
vote
1 answer

Nasm - Winapi functions that do not pop their parameters

I was writing a program in Nasm and I found out that while winapi functions like CreateProcessA or GetModuleFileNameA do pop their arguments from the stack once they have finished, printf is not doing that. Is there a reason for that? And more…
MenNotAtWork
  • 145
  • 2
  • 8
1
vote
1 answer

What does it mean by the sub-clause '/quiet and /norestart command-line switches'?

Today, I come across the following sentence from the PHP Manual : The CRT installer supports the /quiet and /norestart command-line switches, so you can script running it. Someone please explain to me the meaning of the sub-clause '/quiet and…
PHPLover
  • 1
  • 51
  • 158
  • 311
1
vote
1 answer

error LNK2019: unresolved external symbol __imp_SHCreateItemFromParsingName referenced in function "enum nfdresult_t __cdecl SetDefaultPath"

I am having a problem building Pathfinder 3's demo on my Windows 10 machine. I know that someone else has been able to run the demo on Windows 10, so it is possible. However, I am running into an issue which has been difficult to troubleshoot. I…
bzm3r
  • 3,113
  • 6
  • 34
  • 67
1
vote
0 answers

Why does SIGABRT_COMPAT exist in the UCRT and what is it's intended use?

In the UCRT signal.h, I see these defines. #define SIGABRT 22 // abnormal termination triggered by abort call #define SIGABRT_COMPAT 6 // SIGABRT compatible with other platforms, same as SIGABRT Full path is c:\Program Files…
sbseltzer
  • 164
  • 7
1
vote
1 answer

Python: Unexpected result when byte 0xe0 is read

import msvcrt while True: try: a=msvcrt.getch() a=a.decode('utf-8') print(a) except: print(a) The above piece of code yields unexpected results when I input arrow keys or page up/page down/delete etc. The…
Prongs
  • 39
  • 4
1
vote
0 answers

How to get a handle on Windows STDOUT handles (in python)?

I am trying to get a handle on Windows stdout handles. I need to understand why there are different handles for STDOUT (CONOUT$?) and how to interpret these differences. I know there are different output buffers used by the Windows API, but failt…
not2qubit
  • 14,531
  • 8
  • 95
  • 135
1
vote
1 answer

Using cx_Freeze (Python 2.7) on a Windows box OOTB

I have been plagued with this problem ever since I started with Python, I want to write a Python script, and then export it as an EXE that I can run on any Windows XP (and up) machine. cx_Freeze covers all of this perfectly, the only problem is that…
Soviero
  • 1,774
  • 2
  • 13
  • 23
1
vote
2 answers

While loop doesn`t detect msvcrt.getch() keypress

import msvcrt x: int = 0 while not msvcrt.getch() == ' ': if x <= 10000: print(x) x += x else: print("space") Loop is not stopping when the "space" is pressed.
1
vote
2 answers

Checking heap integrity when _DEBUG is not defined?

I wish to create a build of a project constructed so that it is identical to the release build, except that the debug version of the default allocator is used (with canary checks on alloc/free and so on). The compiler/CRT is Visual Studio…
Viktor
  • 3,295
  • 2
  • 25
  • 26
1
vote
1 answer

Cython: Missing MSVCR140.dll

I want to test out Cython with Python. When I run python setup.py build_ext --compiler=mingw32 (I use GCC from MSYS2 on Windows) it tells me cannot find -lmsvcr140 (MSVCR140.dll). From this answer, it seems that this file missing since Visual…
Akhmad Zaki
  • 419
  • 7
  • 23
1
vote
1 answer

MSVC - Executable builds correctly but DLL doesn't, missing symbols and conflicting dependencies - SSCCE/Repro

I have a working executable here and I'm trying to build a DLL from the same code, but I'm having some strange errors and managed to pinpoint the culprits after a lot of trial an error, I decided to ask for help because I'm really stuck now. I'm…
Alan
  • 33
  • 5