msvcrt Questions

1

Anyone knows what kind of UB is this? The following code deadlocks on jthread destruction when built with MSVC 19.29.30148, sometimes it deadlocks after std::cout and sometimes before. This is some...
Ozell asked 18/9, 2023 at 10:31

3

i, and a few thousand other people, are getting an error being thrown by the Microsoft Visual C++ Runtime: Which for the benefit of search engines, says: Microsoft Visual C++ Runtime Library ...
Bunsen asked 18/11, 2009 at 1:17

2

How can you capture a DLL's stdout and/or stderr in Python on Windows? For example, this prints "hello" to stderr, but it should be possible to capture the "hello" as a string i...
Octave asked 22/2 at 1:3

6

This warning: LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library is a fairly common warning in Visual Studio. I'd like to understand the exa...
Ottie asked 9/6, 2010 at 15:31

1

I want to thoroughly understand the usage of environments from the MSYS2 platform. A partial description is available at: https://www.msys2.org/docs/environments/ Things I understand: MSYS environ...
Mintamintage asked 1/8, 2021 at 3:9

6

Solved

I've got this warning recently (VC++ 2010) warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators I'm assuming this is the Critical Section. It's been a w...

1

Can someone please explain the difference between these? Internet lookup has confused me. I am using VS2019.
Rabbi asked 5/6, 2021 at 11:15

6

Solved

In my inno setup RUN selection I force silent install of MSVCRT. I wonder how to make it install itself only if not yet installed? This is what I call now: Filename: {tmp}\vcredist_x86.exe; Param...
Stagecoach asked 21/6, 2012 at 11:44

3

Solved

I'm trying make a login window where a user is prompted to enter their Username and Password, although when the password is entered I am looking for asterisks to be printed, like common passw...
Cesena asked 12/6, 2012 at 5:32

6

Solved

Compiled couple of .dll's using visual studio 2015, and tried to deploy on some older windows 7 / 64 bit. Tried also to guess which dll's are needed for application to start and copied MSVCP140.DLL...
Christoper asked 4/3, 2016 at 20:4

2

Solved

I'm working on legacy code for Windows platform. When I compile the code in VS2013, it give following warning: error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen...
Afraid asked 16/10, 2013 at 5:49

3

I've tried to read one char from the console in PyCharm (without pressing enter), but to no avail. The functions msvcrt.getch() stops the code, but does not react to key presses (even enter), and m...
Emeldaemelen asked 29/5, 2015 at 16:9

1

Solved

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 run...
Iroquoian asked 25/5, 2020 at 10:37

1

Solved

I've been reading the implementation of the _countof macro in MSVC and found a detail I can't explain. It's implemented via a __crt_countof macro which on C++ is expanded to (sizeof(*__counto...
Bonnell asked 18/12, 2019 at 14:36

5

Solved

I'm using Visual Studio c++ Compiler ( 2010 ), but the library has different implementation of ANSI C and POSIX libraries function. What is the difference between ANSI C function and Windows CRT ...
Sterrett asked 20/5, 2013 at 10:46

2

Solved

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/...
Robbert asked 22/8, 2019 at 7:50

2

Solved

The symbol myLibrary!__scrt_stub_for_is_c_termination_complete+0x12345 appears in the stack trace of a crashed application. It is C++ compiled with MSVC2015 and heavily uses Qt. myLibrary does not...
Journal asked 2/4, 2019 at 11:51

0

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 differen...
Peers asked 14/12, 2018 at 8:32

2

Solved

I'm having code that, for various reasons, I'm trying to port from the C runtime to one that uses the Windows Heap API. I've encountered a problem: If I redirect the malloc/calloc/realloc/fre...
Pye asked 3/1, 2011 at 21:45

1

Solved

Im writting a simple python code that should detect the my keystrokes but for some reason in detects space after everysingle keystroke. The code: import msvcrt print("press 'escape' to quit...")...
Litchfield asked 27/4, 2018 at 20:4

1

I'm compiling a program with Visual Studio 2017 that links with the precompiled static version of libusb, available here. When I tried to link it I got some unresolved symbols like these and the a...
Maine asked 18/3, 2018 at 22:28

1

Solved

Preamble: This question is specifically concerned with, and only with, the behavior of the dynamic CRT used through /MD. It does not question the validity of any other recommendations wrt. DllMain....
Carlitacarlo asked 17/1, 2018 at 13:21

2

Solved

On Windows 8, we have an issue with FreeConsole. It seems to close the stdio handles, without shutting the file streams. This may be a Windows 8 problem, or it could be that I simply don't underst...
Pola asked 1/10, 2012 at 15:29

2

What I am trying to do is make a simple pi memorization game in Python. What I need is a way to get input from the user without having to press 'enter' after every character. It sounds like I need ...
Dele asked 3/1, 2015 at 0:39

3

Solved

I have a large body of code, compiled with /MT (i.e. expecting to statically link against the CRT). I need to combine this with a static third-party library, which has been built with /MD (i.e. exp...
Insidious asked 12/8, 2010 at 16:25

© 2022 - 2024 — McMap. All rights reserved.