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
20
votes
5 answers

timegm cross platform

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 implementation? For example what is the difference…
Elvis Dukaj
  • 7,142
  • 12
  • 43
  • 85
19
votes
3 answers

PyCharm: msvcrt.kbhit() and msvcrt.getch() not working?

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 msvcrt.kbhit() always returns 0. For example this…
user4953886
  • 191
  • 1
  • 1
  • 3
17
votes
2 answers

WaitForSingleObject on a file handle?

What happens when you call WaitForSingleObject() on a handle you've created with CreateFile() or _get_osfhandle()? For reasons not worth explaining I would like to use WaitForSingleObject() to wait on a HANDLE that I've created with…
joshk0
  • 2,574
  • 2
  • 25
  • 36
15
votes
2 answers

Why might _CrtSetBreakAlloc not cause a breakpoint?

I'm using Visual CRT's memory leak detection routines from ; when I call _CrtDumpMemoryLeaks one allocation is reported consistently on every invocation of the program: {133} normal block at 0x04F85628, 56 bytes long. Data: < …
Roman Starkov
  • 59,298
  • 38
  • 251
  • 324
14
votes
2 answers

Are Visual C++ dynamic runtime libraries part of the Windows OS nowadays?

Are the dynamic runtime libraries for Visual C++ (more specifically 2008) part of the Windows OS nowadays? I noticed that at least on Windows 8 you no longer need to ship these with your application or have the user install the redistributable…
Daniel Hedberg
  • 5,677
  • 4
  • 36
  • 61
13
votes
5 answers

Why is vector deleting destructor being called as a result of a scalar delete?

I have some code that is crashing in a large system. However, the code essentially boils down to the following pseudo-code. I've removed much of the detail, as I have tried to boil this down to the bare bones; I don't think this misses anything…
Rhubbarb
  • 4,248
  • 6
  • 36
  • 40
12
votes
1 answer

Runtime Library mis-matches and VC++ - Oh, the misery!

It seems that all my adult life I've been tormented by the VC++ linker complaining or balking because various libraries do not agree on which version of the Runtime library to use. I'm never in the mood to master that dismal subject. So I just try…
Jive Dadson
  • 16,680
  • 9
  • 52
  • 65
11
votes
4 answers

How to Enforce C++ compiler to use specific CRT version?

I am using VS2008 for developing a COM dll which by default uses CRT version 9 but I am using TSF (Text service framework) that is not compatible with the new CRT. I think the solution is to use the compatible one so how can I specify the CRT…
Ahmed
  • 7,148
  • 12
  • 57
  • 96
11
votes
6 answers

.crt section? What does this warning mean?

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 while since my Operating Systems course, so I can't…
MGZero
  • 5,812
  • 5
  • 29
  • 46
11
votes
1 answer

check what run-time static library or dll uses

is there a tool in windows SDK to ckeck what CRT a library uses? for example I have a *.lib file, how do check if it's compiled with /MDd flag or /MT? also how to check the same for dll or exe? can this be done with dumpbin?
codekiddy
  • 5,897
  • 9
  • 50
  • 80
11
votes
9 answers

vcredist_x86.dll and version 8.0.50727.4053

Visual C++ 2005 I build on my system use CRT DLLs version 8.0.50727.4053. I believe it is the latest one and was automatically updated by Windows. On user systems, this version of the DLL is not found. I have used vcredist_x86.exe in the past as a…
Paul
  • 2,474
  • 7
  • 33
  • 48
11
votes
1 answer

Using MinGW to build a Windows DLL that depends on Visual Studio CRT (msvcr110.dll) NOT on Windows CRT (msvcrt.dll)

I am trying to build a DLL using MinGW for Windows. I know that by default building using MinGW introduces a dependency on msvcrt.dll that ships with Windows. However, I want my DLL not to have a dependency on msvcrt.dll. Instead I want my DLL's…
Raman Sharma
  • 4,551
  • 4
  • 34
  • 63
10
votes
3 answers

What is the purpose of Microsoft's underscore C functions?

This question is about the same subject as strdup or _strdup? but it is not the same. That question asks how to work around MS's renamings, this question asks why they did it in the first place. For some reason Microsoft has deprecated a whole slew…
Björn Lindqvist
  • 19,221
  • 20
  • 87
  • 122
10
votes
2 answers

fread Only first 5 bytes of .PNG file

I've made a simple resource packer for packing the resources for my game into one file. Everything was going fine until I began writing the unpacker. I noticed the .txt file - 26 bytes - that I had packed, came out of the resource file fine, without…
Sam Blackburn
  • 288
  • 2
  • 9
10
votes
2 answers

How to disable buffer overflow checking in the Visual C++ Runtime?

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 Buffer overrun detected! Program: %s A buffer overrun…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
1
2
3
32 33