Skip to main content

All Questions

0 votes
0 answers
24 views

visual studio 2022 hangs on printf

(Not VScode!) Sometimes when i'm working on my console c/c++ application, and run it by clicking on "Local Windows Debugger", it hangs/freezes on printf or any function that outputs to ...
Cgates Cgates's user avatar
3 votes
0 answers
88 views

Unhandled exception termination ignored while debugger is attached

I've encountered weird behavior of debugger on Windows (MSVC17), which I managed to replicate with code as simple as #include <iostream> int main() { throw std::exception(); std::cout &...
Brykyz's user avatar
  • 695
0 votes
1 answer
36 views

Visual Studio: Which configuration is used for complile when using Ctrl-F7?

I asked this question in the VS Development Community a couple of years ago, but never got an answer - and MS closed it because they didn't understand the question. I frequently use ctrl-F7 in VS2017 ...
GlobalEngineer's user avatar
0 votes
0 answers
24 views

How do I persuade the visual studio resource editor to honour extra include paths

I have a header file I generate in a Visual Studio project which contains some #defines for use in some resources. I can add the header file to the resource-only include list in a .rc file and it ...
Tom Tanner's user avatar
  • 9,364
0 votes
1 answer
34 views

Does pragma comment link same library multiple times if same comment is written multiple times?

In visual studio, does pragma comment link same library multiple times if written multiple times? Or comments second onwards ignored? I've checked comment but it doesn't seem to be clearly stated.
yoonsoh's user avatar
  • 65
0 votes
0 answers
61 views

In Visual Studio how to install older version of VC Tools through the terminal?

I have Visual Studio 2022, 17.6.0, and Tools 14.36.32532. Now on CI agent I need to downgrade (please don't ask for reasons) on 14.35. I tried that with vcvars tool C:\Program Files\Microsoft Visual ...
Veljko's user avatar
  • 59
1 vote
0 answers
30 views

How to see what the warning is in "the following warning is treated as an error"

When I compile in MSVC with: /Wall /WX I get many more warnings in the Output window, like 8000. Then when compilation fails due to something wrong the errors show in the Error List window, and they ...
Zebrafish's user avatar
  • 15.2k
0 votes
0 answers
48 views

How to disable VS2022's auto-format of whitespace in function parameters?

When I type the following into a .cpp document: please(let, me, keep, my, spaces); Visual Studio will reformat the text into: please(let,me,keep,my,spaces); I've gone into Tools -> Options -> ...
Anne Quinn's user avatar
  • 13.1k
0 votes
0 answers
39 views

Failure while installing Python requirements in Windows System

I am using pip for installing requirements of my project. Below is the error I get when I run the command pip install -r requirements.txt _frozenlist.c C:\Program Files\Python312\include\pyconfig.h(59)...
Vihar's user avatar
  • 3,831
-2 votes
2 answers
124 views

How do I build c++ project to be ran from another computer in visual studio 22?

I have written a program using c++ in Visual Studio 2022 that I would like to build and send to somebody else to run on their computer. How do I go about doing this? I've scoured the internet and I've ...
Dat 1 channels's user avatar
0 votes
1 answer
48 views

Visual Studio ARM64 128 bit integer?

With Intel processors Visual Studio has __m128i and various intrinsics like _mm_set1_epi8, etc.. What is available for the ARM64 target? TIA!!
user3161924's user avatar
  • 2,391
0 votes
0 answers
100 views

What does it mean if VisualStudio says there are memory leaks, but object dump is empty?

I recently updated to Visual Studio 2022, Version 17.12.3. When I run my application in debug mode (F5 to open the application and then close it immediately) I get the following in the Output window: ...
Michael Thompson's user avatar
3 votes
1 answer
92 views

Missing MSVC initializer list use before initialization error

How can I make MSVC/visual studio give an error about the member m_second being used before being initialized below? This is similar but different to C5038 an error about the initialization order (...
jozxyqk's user avatar
  • 17.5k
0 votes
0 answers
37 views

Pass Command-Line Arguments When Debugging with CMake In Visual C++

I have a "Hello World" C application created as a Visual C++ CMake project. I debug this project in WSL (Windows Subsystem for Linux) Ubuntu Linux. The project runs fine, but now I need to ...
vico's user avatar
  • 18.3k
1 vote
0 answers
37 views

Emulating FPU in MSVC for x86

Is it possible to emulate FPU instead of using real one in application compiled with MSVC? Analogously to GCC where you just provide -mno-sse -msoft-float.
synnek1337's user avatar

15 30 50 per page
1
2 3 4 5
210