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
4
votes
2 answers

visual c++ 2010 link against older runtime?

Sorry if this has been asked. Just like I can select in C# project that I want it to build for .NET 2.0 runtime, is it possible for native c++ project to be built against older CRT, let's say one from visual studio 2005? I would like this because I…
Kugel
  • 19,354
  • 16
  • 71
  • 103
4
votes
1 answer

How did MinGW implement C++ Library support?

According to my observation, MinGW use MSVCRT for C, and libstdc++ for C++. If so, how could they work together? And, why not uniform C and C++ support, no matter MSVCRT + MSVCPRT or glib + libstdc++. I think the mixin between MSVCRT and libstdc++…
Eugene
  • 137
  • 2
  • 9
4
votes
4 answers

in .Net 4: PInvokeStackImbalance Exception

I was using the strlen function from msvcrt.dll in a .Net 3.5 project. More specifically: private unsafe static extern int strlen( byte *pByte ); After migrating to .NET 4.0, if I use this function it throws a PInvokeStackImbalance…
SDReyes
  • 9,798
  • 16
  • 53
  • 92
4
votes
4 answers

How does PATH environment affect my running executable from using msvcr90 to msvcr80?

#include int main( int argc, char *argv[] ) { GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_show (window); gtk_main (); return 0; } I tried putting…
Gtker
  • 2,237
  • 9
  • 29
  • 37
4
votes
4 answers

CRT, do we still need to redistribute it?

Do we still need to bother with vcredist.exe when distributing windows native applications ? Does any of these come bundled with Win-7 ? If not, are there any technical reasons these are not shipped to people via e.g. windows update - insteadof…
leeeroy
  • 11,216
  • 17
  • 52
  • 54
4
votes
2 answers

Why does the MSCVRT library generate conflicts at link time?

I am building a project in Visual C++ 2008, which is an example MFC-based app for a static C++ class library I will be using in my own project soon. While building the Debug configuration, I get the following: warning LNK4098: defaultlib 'MSVCRT'…
neuviemeporte
  • 6,310
  • 10
  • 49
  • 78
4
votes
2 answers

Python Windows `msvcrt.getch()` only detects every 3rd keypress?

My code is below: import msvcrt while True: if msvcrt.getch() == 'q': print "Q was pressed" elif msvcrt.getch() == 'x': sys.exit() else: print "Key Pressed:" + str(msvcrt.getch() This code is based on this…
evamvid
  • 831
  • 6
  • 18
  • 40
4
votes
2 answers

Advantages of msvcr100 over msvcrt

I'd like to ask whether or not there is an advantage in msvcr100 over msvcrt and what would the advantages be. When compiling with the msvc compiler, the executable I get is linked to msvcr100, so it requires MS Visual C++ Redistributable to be…
4
votes
2 answers

How to detect key press when the console window has lost focus

My application sends a mouse click to an area of the screen outside my console window using win32api.mouse_event. This causes my window to lose focus so I can't detect key presses using msvcrt.kbhit. My question is, how to implement something like…
user2122589
  • 275
  • 1
  • 5
  • 17
4
votes
0 answers

Download VC++ 2008 Merge Modules without installing VS2008?

Is it possible to download the merge modules for VC++ 2008 (CRT) without having Visual Studio? I have an old Visual Studio 6 project and an old Install Shield Installer. I am using some third-party dlls that are dependent on MSVCR90.DLL among others…
jacobsee
  • 1,438
  • 4
  • 18
  • 34
4
votes
3 answers

MinGW MSYS, MSVCRT, and the TZ environment variable

In short, how to make both MSVCRT and MinGW MSYS share the TZ environment variable without conflicts? Or, how to make both support timezones without conflicts? Further information In order to have date command of MSYS displaying correct local time,…
user1726010
4
votes
2 answers

Any up-to-date references for replacing the MS CRT?

I've used this as a reference, but it doesn't appear to be complete. When I set /NODEFAULTLIB, I get linker errors about missing __except_list, __load_config_used, and a few other things apparently related to SEH. It's easy enough to get…
defube
  • 2,395
  • 1
  • 22
  • 34
3
votes
1 answer

Absurd values to main(int argc, char** argv)

I had on old C++ project starting a Console-application. With a breakpoint in main(int argc, char** argv) started program.exe -debug. According to the debugger argc became 32 and the strings in argv had weird random-like values. When execution…
leiflundgren
  • 2,876
  • 7
  • 35
  • 53
3
votes
3 answers

Memory Allocation in Static vs Dynamic Linking of C Runtime

My program's architecture involves plugins (dlls) and the exe (obviously). We are the only plugin provider. I was told that allocating memory in a plugin and then freeing it in the exe code was a potential problem if we statically linked the c…
MrPhilTX
  • 113
  • 2
  • 9
3
votes
2 answers

Ignore specific libraries for crt libraries?

In a very old code base, we have some build settings for our visual C++ project settings that are confusing and seemingly not necessary. Our C++ projects are built with visual studio (Currently using vs 2010) and in the linker options there are a…
C.J.
  • 15,637
  • 9
  • 61
  • 77