Skip to main content
-1 votes
0 answers
26 views

class cpp file in vscode

I have install Linux recently and change start to use vscode in Linux , but when I use it to make a project , It didn't read the class .cpp files and give me an error. this is the CMakeLists.txt ...
Ahmed Shawareb's user avatar
0 votes
0 answers
118 views

Why can't I establish a connection in between winsock and socket in a cross-platform setting?

I'm writing a cross-platform socket class using Winsock (on Windows) and BSD sockets (on Linux). The goal is a C++20 server–client setup that can send data both ways. It works perfectly when both ...
somethingfishy's user avatar
-4 votes
0 answers
72 views

Change Windows Data and Time programmatically [closed]

I need to change the system local date and time from an application but to do this, application must run with administrative privileges. The application is a stand-alone kiosk application that starts ...
michele allara's user avatar
4 votes
1 answer
90 views

Asio's signal handling under multithreaded scenarios

In Linux OS's multithread process, the signal isn't guaranteed to deliver to specific thread. And I wonder, when I use asio::signal_set::async_wait. Is this asynchronous operation guaranteed to ...
Searcher's user avatar
  • 107
-1 votes
0 answers
119 views

C++ Password Masking [closed]

How do I mask a password in my c++ program on cross-platform? I tried using the conio.h library but it never worked and tried other libraries too but still no good results. I have applied all methods ...
Francis Entsie's user avatar
1 vote
1 answer
148 views

Why does my ASCII animation keep scrolling down instead of updating in place on Windows console?

I’m trying to create a simple ASCII 3D spinning cube animation in the Windows console using C++: #include <iostream> #include <cmath> #include <cstring> #include <windows.h> #...
Gia Phu Tang's user avatar
1 vote
0 answers
41 views

Visual Studio 2022 Build Insights trace file empty

I'm trying to analyse our build and see if anything can be sped up and using Build Insights including "Collect template instantiation". This works for small portions of the solution, but it ...
rubenvb's user avatar
  • 77.1k
0 votes
1 answer
95 views

Double variable is assigned 0 when stepping over (F10) C++ code in debug in Visual Studio 2022, XMM0 register problem

I experienced problem with assigning values to double variables when stepping over (F10) my code. This happened only when I used step-by-step (F10). If I used run (F5) with breakpoints the assigning ...
theWall's user avatar
  • 29
1 vote
0 answers
80 views

C++/Qt: QODBC always ignores first row

I am doing an app for a client and he wants to read data from .xlsx, .csv and .xls. For CSV files, I have already created a data parser, and for XLSX files, I had used QXlsx. With large files (>1M ...
Adrián Mon Maroto's user avatar
-3 votes
0 answers
34 views

How to use clang libraries in qtcreator? [duplicate]

I'm making some experiments with AST building, so I need to use clang library in my application. I follow this tutorial: https://bastian.rieck.me/blog/2015/baby_steps_libclang_ast/. I've added this to ...
jdenv's user avatar
  • 49
-3 votes
0 answers
161 views

in C++ is it faster to use a map than to do quicksort? [closed]

Lets say I have an interview question that requires sorting a vector It wouldn't be a sorting question, but like a DP problem. If I just did a for loop through the vector and assigned the value at ...
Mich's user avatar
  • 3,696
1 vote
1 answer
74 views

SFML Window fails to initialise

I'm trying to get started with SFML (3.0.2) in C++, but the window fails to initialise. The window appears, but I can't interact with it and it disappears after a few seconds, so something must be ...
Rafael Amelines's user avatar
3 votes
2 answers
125 views

"no matching function for call" in initialiser list for char [] [duplicate]

I have the below code. The first push_back fails, the second, with a constant string, works. #include <vector> #define MAX_LENGTH 10 struct bar { int barInt; char barChar [...
Peter VARGA's user avatar
  • 5,287
1 vote
0 answers
137 views

Is the Windows Audio Session API thread safe?

Is the Windows Audio Session API (WASAPI) thread safe? Is it okay to call IAudioClient::Start from one thread and then call IAudioClient::GetCurrentPadding and IAudioRenderClient::GetBuffer from a ...
eyelash's user avatar
  • 3,956
2 votes
0 answers
167 views

How to cleanly shut down a real-time work queue?

I'm using the Windows Real-Time Work Queue API to do audio playback using WASAPI. The queue is created using RtwqLockSharedWorkQueue and work is submitted using RtwqPutWaitingWorkItem. From the ...
eyelash's user avatar
  • 3,956

15 30 50 per page
1
2 3 4 5
54327