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

Statically linking against library built with different version of C Runtime Library, ok or bad?

Consider this scenario: An application links to 3rd party library A. A is built using MSVC 2008 and is statically linking (ie. built with /MT) to the C Runtime Library v9.0. The application is built using MSVC 2005 and is statically linking to A and…
Viktor
  • 3,295
  • 2
  • 25
  • 26
9
votes
1 answer

What memory management algorithms are used by the major compiler vendors?

This is a subset of a previous question. As an exercise I am writing a memory manager - that is, the code which implements malloc, realloc and free (or new and delete.) The RTL for my language, Delphi, allows the RTL's memory manager to be replaced…
David
  • 13,360
  • 7
  • 66
  • 130
9
votes
1 answer

list available platform toolsets

Is there any method to list platform toolsets available in VS2012? I mean a list that might contain v90, v100, v110, v110_xp and any externally provided platform toolset. Alternatively (should that be easier): is there a way to check if given…
Tomasz Grobelny
  • 2,666
  • 3
  • 33
  • 43
8
votes
6 answers

How to execute some code before entering the main() routine in VC?

I am reading Microsoft's CRT source code, and I can come up with the following code, where the function __initstdio1 will be executed before main() routine. The question is, how to execute some code before entering the main() routine in VC (not VC++…
yinyueyouge
  • 3,684
  • 4
  • 25
  • 22
8
votes
2 answers

What is the symbol `myLibrary!__scrt_stub_for_is_c_termination_complete+0x12345`

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 explicitly implement anything of that name. Google…
TFM
  • 717
  • 6
  • 21
8
votes
2 answers

Is there a fundamental difference between malloc and HeapAlloc (aside from the portability)?

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/free calls to HeapAlloc/HeapReAlloc/HeapFree (with…
user541686
  • 205,094
  • 128
  • 528
  • 886
8
votes
4 answers

MS Visual C++ runtime library - what for?

What's in MS Visual C++ runtime library? I mean, I googled it, and I always found things like help, app xxxx gives me MS Visual C++ runtime library error, with no explanation. I thought that Windows C runtime libraries come with Windows? Not with…
B.Gen.Jack.O.Neill
  • 8,169
  • 12
  • 51
  • 79
8
votes
3 answers

mixing code compiled with /MT and /MD

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. expecting to link the CRT dynamically). Is it…
slowdog
  • 6,076
  • 2
  • 27
  • 30
8
votes
2 answers

Python input single character without enter

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 something like getch, but I can't get it to work. …
ArgoLake
  • 81
  • 1
  • 1
  • 3
8
votes
2 answers

LoadLibrary() fails to load DLL with manifest and private assembly

I am working on a Windows application (EXE) that uses multiple DLLs. Development is in VCExpress 2005 (VC 8.0), using C only. Some of these DLLs are plug-ins/add-ons/extensions that are dynamically loaded using LoadLibrary according to a…
Twylite
  • 81
  • 1
  • 2
8
votes
1 answer

Is MSVCRT's implementation of fprintf() thread safe?

It seems that glibc's implementation of fprintf() is thread-safe, but is that so for Microsoft's CRT, as well? By thread-safe, I don't mean just crashing, but also that if multiple threads (in the same process) call fprintf(), the texts will not be…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
8
votes
2 answers

MSVCR100.dll not found error even when it is installed

i get the following error when i try to run an exe on a x64 machine that was build for x86 CPU using the MC++ compiler (vs2010) on a x86 machine: i already have visual studio 2012 (along with Visual C++ 2012 Update 4 redistributable- both x86 and…
8
votes
1 answer

Different versions of msvcrt in ctypes

In Windows, the ctypes.cdll.msvcrt object automatically exists when I import the ctypes module, and it represents the msvcrt Microsoft C++ runtime library according to the docs. However, I notice that there is also a find_msvcrt function which will…
Eli Courtwright
  • 186,300
  • 67
  • 213
  • 256
8
votes
3 answers

How to have password echoed as asterisks

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 password entry (i.e. - Sekr3t is echo'd as: * * * * *…
zk-Jack
  • 83
  • 1
  • 1
  • 9
7
votes
1 answer

Reverse-engineering SEH: Why doesn't my IDENTICAL assembler code work like the original?

I'm trying to reverse-engineer the Visual C++ 2008 SEH handler named __CxxFrameHandler3 to provide an implementation which can delegate the result to (the older version of) __CxxFrameHandler in msvcrt.dll. (This page and this page have great details…
user541686
  • 205,094
  • 128
  • 528
  • 886
1 2
3
32 33