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
6
votes
1 answer

Working around fls limitations with too many statically linked CRTs?

When loading external DLLs (not under our control) via LoadLibrary, we're hitting a problem where the statically linked CRT in those DLLs are failing to allocate fiber-local storage. This is similar to mskb 193462, except that this is FLS and…
Mook
  • 98
  • 4
5
votes
2 answers

Where is msvcrtd.dll?

Where can I find msvcrtd.dll (the debug CRT), corresponding to \WinDDK\7600.16385.1\lib\Crt\i386\msvcrtd.lib in the Windows Driver Kit?
user541686
  • 205,094
  • 128
  • 528
  • 886
5
votes
1 answer

pip is not working error: "No module named 'msvcrt''

I uninstalled python3.4 and installed python3.9.2. Now pip is not working. python3 -m pip install is showing following error Traceback (most recent call last): File "/usr/local/lib/python3.9/subprocess.py", line 73, in import…
user10340258
  • 339
  • 1
  • 5
  • 15
5
votes
1 answer

Including STL without littering global scope

Is there a way to include STL without having things defined in the global scope like ::size_t? Implementation items like _security_init_cookie are fine with me, as their identifiers are reserved. vcruntime.h is always included and this bothers me.
user13540365
5
votes
3 answers

Do memory deallocation routines touch the block being freed?

Windows HeapFree, msvcrt free: do they cause the memory being freed to be paged-in? I am trying to estimate if not freeing memory at exit would speed up application shutdown significantly. NOTE: This is a very specific technical question. It's not…
Constantin
  • 27,478
  • 10
  • 60
  • 79
5
votes
1 answer

In which cases is the dynamic CRT not already initialized on call to user supplied DllMain?

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. As we've been told: (ref: Dynamic-Link Library…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
5
votes
1 answer

In the MSVC ABI, how do I reliably find the vtable given only a (void*)?

This question is specifically about non-portable MSVC ABI stuff. I'm trying to write the equivalent of C++'s typeid in obviously-nonportable-yet-not-magic C++. For the Itanium ABI (as used on Linux/Mac), it's super easy: const std::type_info&…
Quuxplusone
  • 23,928
  • 8
  • 94
  • 159
5
votes
1 answer

CRT initialization and DLLMain

Quotes: From the document "Best Practices for Creating DLLs" http://download.microsoft.com/download/a/f/7/af7777e5-7dcd-4800-8a0a-b18336565f5b/DLL_bestprac.doc of Microsoft: "DLLs often have complex interdependencies that implicitly define the order…
amanjiang
  • 1,213
  • 14
  • 33
5
votes
1 answer

Compiling Microsoft CRT 11 (msvcrt110.dll) - What is the correct order of includes?

I am trying to compile the Microsoft CRT 11 by myself (The version that comes along with VS2012). I'm aware that until VS2008 this action was completely supported by Microsoft: http://msdn.microsoft.com/en-us/library/k9a8ehy3(v=vs.90).aspx But since…
user972014
  • 3,296
  • 6
  • 49
  • 89
5
votes
4 answers

Why are there multiple C functions for case-insensitive comparison

For comparing any strings without considering their case, there are various C library functions such as strcasecmp(), stricmp() and stricmpi(). What is the difference between these?
userrp1519825
  • 4,453
  • 2
  • 14
  • 13
5
votes
2 answers

Problem with Visual C++ program-- can't find the Debug CRT

I have a friend who's taking over a Visual C++ project from me and is having trouble running it. It's a graphics application and it uses the Qt GUI library. The reason I mention this is because of the error below. He can build and link the program…
larryq
  • 15,713
  • 38
  • 121
  • 190
5
votes
1 answer

exiting a loop by pressing a escape key

I am trying to exit a loop by pressing a escape key but my program doesn't work. Is there a way to do that? My code : import win32api import win32con import time from msvcrt import kbhit,getch def clickerleft(x,y): """Clicks on given position…
user3144427
  • 97
  • 2
  • 6
5
votes
1 answer

Exception in statically linked msvcrt using Visual Studio 2012

There seems to be a problem in the statically linked version of VS2012. Starting a console application on an old system leads to an exception, whenever streams are used, although new systems causes no trouble at all. To reproduce this error it is…
5
votes
4 answers

Side-by-side configuration error (Microsoft.VC80.CRT v8.0.50608.0)

I have an assembly with the following manifest embedded:
Justin
  • 84,773
  • 49
  • 224
  • 367
5
votes
2 answers

Link to the system C library msvcrt.dll

In Windows, there is a default C library msvcrt.dll. Is it possible to write simple C programs that uses functions from msvcrt.dll only? That would relieve the need for installing the recent VC runtime. I think a possible way is to explicitly…
stoictopia
  • 183
  • 7