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
1
vote
1 answer

error C3861: '__scrt_initialize_crt': identifier not found

Following this question, I am trying to compile the code below: // main.cpp #include int main(int argc, char **argv) { unsigned long long myVar; __security_init_cookie(); myVar = __scrt_initialize_crt(1); return…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
1
vote
1 answer

/clr and /experimental:module are incompatible options

Does someone knows what is the reason that I can't use the /clr options with the /experimental:module option with the msbuild compiler? Is there some way to bypass it? Thanks.
Alex Vergara
  • 1,766
  • 1
  • 10
  • 29
1
vote
1 answer

Why is my "import msvcrt" statement not working?

I am writing this code in python (on my windows 10 machine) : import msvcrt a = getch() and I'm getting this error when I try to run it using python3: Traceback (most recent call last): File "Simon.py", line 2, in import…
Joey
  • 11
  • 1
  • 3
1
vote
2 answers

How to build a Qt C++ application that doesn't need VC Redistributables on a pc to run

I am building an application using Qt C++ and I want it to run on windows computers without having to install VC Redistributables. Apparently when user tries to run the application an error pops that says that VCRUNTIME140.dll is missing.
FouLiNuX
  • 51
  • 6
1
vote
1 answer

Get class name based on address of its instance in another process

I'm looking for anything that can help me deviate string GetRTTIClassName(IntPtr ProcessHandle, IntPtr StructAddress). The function would use another (third-party) app's process handle to get names of structures located at specific addresses in its…
1
vote
2 answers

Using 'esc' to close PySimpleGUI window

I have a PySimpleGUI window that I want to maximise, eventually without a title bar. I want to use the 'esc' key to close the window. Here's my (simplified) code: import msvcrt import PySimpleGUI as sg layout = [[sg.Text(size=(40, 1),…
Kit McCarthy
  • 41
  • 1
  • 5
1
vote
0 answers

MSVCRT enter key bug?

Basically, I am playing around with the msvcrt library in Python, and my code is giving me weird results. When I have a 'getch' string that is the enter key ('\r') returned from a function, my main while loop automatically picks the returned ('\r')…
Daniel Zhou
  • 11
  • 1
  • 3
1
vote
0 answers

msvcrt.getch() not responding to killing its thread

I have a thread with msvcrt.getch() I want to kill it. but if i try to kill it and it's on msvcrt.getch() it will not terminate. It will only terminate once the msvcrt.getch() line is complete. Anyway to stop this from happening?
1
vote
1 answer

How to run a function (in Python) when user presses a specific key?

I tried this from msvcrt import getch while True: key = ord(getch()) if key == 27: #ESC print("You pressed ESC") elif key == 13: #Enter print("You pressed key ENTER") but it works only in terminal, i want to run a…
Himanshu Kawale
  • 389
  • 2
  • 11
1
vote
0 answers

How does MSVC++ CRT include files depending on the main function type?

When you compile a program using MSVC and Microsoft's CRT you'll notice it auto-magically figures out where your main function is, what the prototype is and calls into it. This doesn't have much to do with calling conventions (as posted before in a…
f4rw3llvv
  • 53
  • 5
1
vote
2 answers

How to disable CRT completely

How can I completely disable all of the run-time error messages provided by Visual Studio? I mean, not have them be included in my app at all. I handle the errors myself in a vectored exception handler, and I do not want to have to keep calling…
orORorOR
  • 143
  • 9
1
vote
0 answers

Is msvcrt a static or dynamic library?

I was reading in MSDN ( here ) about the different CRT libraries in Windows. According to it, msvcrt.lib is a: Static library for the native CRT startup for use with DLL UCRT and vcruntime. while ucrt.lib is a: DLL import library for the…
Z E Nir
  • 332
  • 1
  • 2
  • 15
1
vote
0 answers

Does a stack allocation through _malloca trigger an alloc hook set through _CrtSetAllocHook

For a realtime audio signal processing application, we want to make sure that no heap memory allocations are performed from within the realtime threads. As an internal debugging tool used during development, we set up an heap allocation hook…
PluginPenguin
  • 1,576
  • 11
  • 25
1
vote
1 answer

Getting stdout pointer in assembly

I want to call c function 'fputc', so that I need FILE pointer (in my case it's stdout). I know that I can use putc equivalent, but I'm curious if it is even possible to get pointer to stdout in asm. In c or c++ I would write something like 'stdout'…
1
vote
1 answer

Problem in code while using Python msvcrt

Only getting a blank screen, what is wrong? import msvcrt while(1): choice = msvcrt.getch() if(choice =='a'): print('a') elif(choice =='s'): print('s')
user11717179