Questions tagged [c++]

C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. Programming questions are off-topic and should be asked at http://stackoverflow.com/

Filter by
Sorted by
Tagged with
2 votes
1 answer
107 views

How to get disk model and serial number for the disk Windows is installed on

You can use wmic diskdrive get model,serialnumber to get the model and the serial number of the disks currently plugged in, which are unique if you use both of them (if you use only serial number, ...
Devorious's user avatar
0 votes
0 answers
50 views

C++ RdKafka::Producer looses queued messages when broker restarts

Testing my Kafka producer I found out that it cannot survive a short lasting Kafka outage. I stop the server, make some minutes pause and start it again while my client produces messages. After server ...
ed_soft's user avatar
  • 11
0 votes
1 answer
200 views

How do you set the target and not the target path of a .lnk file programmatically with powershell or c++?

How do you set the target and NOT the targetPath of a .lnk file ? I can't find any .dll I can use in powershell or c#. Most people might try and tell to use wshshell to set the .targetpath of the .lnk ...
Dana M's user avatar
  • 11
0 votes
1 answer
55 views

Get notified whenever a file is downloaded via chrome

I want to perform some action whenever a file is downloaded by chrome and chrome only(no IE no Edge and no Firefox). Now I know of two ways to do this: Keep watching the downloads directory and ...
arielBodyLotion's user avatar
1 vote
1 answer
228 views

how to allow using only specific usb flash drive in windows

The company I work for sells devices that run Windows 10/11, I need the device only use our company's usb flash drive, the total requirements are: When other U disk is inserted, it should not be ...
Brett Li's user avatar
0 votes
0 answers
115 views

How to use a --proxy-server flag in Chromium browser

I am attempting to use the --proxy-server flag in the Chromium source code on Windows like this: --proxy-server=protocol://username:password@host:port However, when I run any website on Chromium, it ...
Simran Singh's user avatar
0 votes
0 answers
83 views

SNMP - AgentX master disconnected us during getnext & walk

My observations are as follows. I can run an SNMP get request as many times on as many different oids, and the request will return the value. But as soon as run a GetNext request, I see NET-SNMP ...
Ryan w's user avatar
  • 103
3 votes
1 answer
215 views

Using X11 (X-Windows) programmatically from Windows

For testing purposes I am trying to run C++ code, using the X11 API under Windows. I understand that an X Server must be running and I have installed Xming for this purpose. But the problem is that I ...
Yves Daoust's user avatar
0 votes
0 answers
23 views

OpenCV -- how to interpret contents of cv::imread object

I am new to OpenCV and have tried to copy the contents of a cv::imread object to an array. When I print the contents, however, I get a bunch of characters like this ^N ^X ^Y ^Q ^[ ^U How am I to ...
osilverstone96's user avatar
0 votes
2 answers
784 views

How do I install Intel C++ Compiler without admin privileges?

I was trying to install Intel C++ on my computer. I downloaded the offline installer for Windows (w_dpcpp-cpp-compiler_p_2023.0.0.25932_offline, 1.3 GB) from intel.com. Then while trying to run the ...
NameError's user avatar
  • 101
1 vote
0 answers
348 views

Clang disable Case Sensitive header file inclusion

In Linux when invoking clang compiler with clang++ with Command for the code, main.cpp: #include "Sample.h" int main() { return 0; } include/sample.h # HEADER FILE IMPLEMENTATION ...
Veno's user avatar
  • 119
1 vote
0 answers
720 views

How to monitor file changes on a Linux device using inotify and cpp? [closed]

I have cpp application running on an embedded-linux device. Now, I want the application to report if there is a change in a file on the device. I came across std::filesystem library and inotify(...
Preeti 's user avatar
  • 121
0 votes
0 answers
151 views

Running CuraEngine from command line, returns empty GCode file

I have been attempting to get CuraEngine running from the command line in order to use an interactive python script with it through the subprocess import that python has. I call the directory that ...
BiLeVi's user avatar
  • 1
1 vote
1 answer
37 views

How can I, as a noob to advanced text editing, write a script to automate converion from one enum to another?

The title is pretty poor, sorry about that. I am using two assembler/disassembler libraries and both have separate register enums. The libraries are Zydis and Capstone. In capstone the register enum ...
EatingTechnobladesRemainsAt3am's user avatar
1 vote
2 answers
3k views

How to download GDB from minGW correctly?

I am using GDB, downloaded from MinGW Installation Manager(I doubt it's installed correctly), to debug C++, and GDB cannot be found in the path below used to debug. C:\msys64\mingw64\bin Other exes ...
schizophrenia 's user avatar
2 votes
1 answer
1k views

Programs failing to compile on aarch64 with `features.h: No such file or directory`

I'm having trouble compiling some applications on my PineNote. The common thread is: /usr/include/bits/libc-header-start.h:33:10: fatal error: features.h: No such file or directory 33 | #...
Sammaron's user avatar
0 votes
0 answers
44 views

Firefox address bar trying to open files

I frequently Google search the meaning of C++ functions and variables. For example, I want to google search std::destroy_at to navigate to the cppreference page. In Chrome, typing std::destroy_at into ...
user1735791's user avatar
0 votes
1 answer
2k views

How to completely uninstall Visual Studio 2022?

I've tried uninstalling from both control panel in Windows 10 and in the VS Installer (by clicking "More" there and then "Uninstall"). Have also searched in File Explorer to delete ...
user avatar
5 votes
0 answers
706 views

How to change windows settings programmatically?

The following are the categories of settings in windows: Each has their own set of sub settings (sometimes nested too), as shown in the following picture: Whenever I format my computer I change a ...
YozNacks's user avatar
  • 151
1 vote
1 answer
1k views

How to install libc++.so in Fedora

I wanted to use aapt on my C the error code was: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory With some research I found out that libc++....
Ben Kinigadner's user avatar
0 votes
1 answer
673 views

Notepad++ : How to find multiple instances of a string on the same line and replace the entire line with found strings

For example: Suzy sells sea shells for USD$55 and USD$65 and USD$20 Dave sells all kinds of junk for USD$30 Philip sells CDs for USD$40 and USD$10 Output needs to be: 55, 65, 20 30 40, 10 The ...
Rvaidyaraj's user avatar
1 vote
0 answers
389 views

Large performance penalty when compiling in container

Summary When building a large C/C++-based code base, the build in a Docker container takes about 3.5 times longer than the build in the OS. The issue can be mitigated by declaring all 3rd party ...
demirole's user avatar
1 vote
1 answer
5k views

Cannot find g++ after msys2 install

I want to install g++ so I can compile and run C++ code in VScode. I started by trying to follow the VSCode-provided guide which states I need to install mysys. I tried installing msys2 per the given ...
Solebay Sharp's user avatar
0 votes
1 answer
61 views

How to install bc2cnf in ubuntu?

I would like to use the bc2cnf tool to generate CNF for a digital circuit. Please let me know how to install and run the bc2cnf tool (from the BC package) in ubuntu using the terminal. Thanks in ...
Partha's user avatar
  • 3
0 votes
1 answer
663 views

how can sort my files in windows with custom filter?

I have roughly 80 files in that files all files have # number like (in file name's last portion has #1,#2,#3 like) I want to sort this with # order how can I do that. Please see image for more ...
Jp Ways's user avatar
2 votes
1 answer
4k views

Pip error - Cannot open include file: 'basetsd.h': No such file or directory

[SOLVED] Answer in comments! I am trying to install these requirements (jaydebeapi==1.2.3) in Python and facing the issue bellow. The main message of error is: "Cannot open include file: 'basetsd....
Nakano's user avatar
  • 21
2 votes
1 answer
785 views

How to create new build system on sublime text 4

I used sublime text 3. I created a new build system for C++ to take input from the command line. Recently I installed windows 10. So I have to install sublime text again. Now the version of the ...
Satyajit Roy's user avatar
0 votes
0 answers
90 views

Clion vs Visual Studio Community 2019 for c++ dev work

So Iam having a hard time choosing between visual studio 2019 community and clion, mainly because Iam debating if I should get m1mac mini or a windows machine. Can someone explain the main difference ...
Mj _'s user avatar
  • 11
0 votes
0 answers
228 views

Windows: How to convert binary database file (compressed with zlib) to human-readable string data? (ProcrastiTracker .PT file)

The current question is derived directly from this one, as my general problem is how to process the data collected by the ProcrastiTracker program. Once installed on a Windows machine, ...
Emman's user avatar
  • 101
0 votes
1 answer
194 views

Why does changing the executable in a powershell line cause it to not work?

No doubt I have done something very simple wrong but I cant figure it out. I'm no expert, I'm writing my dissertation and am using .bat files with a series of PowerShell instructions to convert and ...
Liron Chen's user avatar
0 votes
1 answer
438 views

Package incompatibility between 32bit C++ and 64bit python

I am working on a project where I need to compile a C++ wrapper on a ARM processor while also working on a python project which uses the C++ wrapper. It's on a Rock Pi E with 64 bit Debian 10. For the ...
Giberia's user avatar
0 votes
0 answers
416 views

Linux xfce4 with login user command

I have a Linux Ubuntu 20.04 computer running Xubuntu. I am in the process of writing a c ++ program that consists of a completely new login screen. This login screen also works and I can check whether ...
Tamino Elgert's user avatar
0 votes
0 answers
41 views

Visual C++ 2008 Redistributable Setup keeps appearing in root of E:\

Should I be worried? is this malware? I deleted it once but it appeared again, I have no idea what is causing this.
user avatar
0 votes
1 answer
60 views

How can I get passed this zipHMMlib build error on Ubuntu?

I've installed the latest Ubuntu Server on an Oracle VirtualBox 64-bit machine instance, with host machine Windows 10 and 64-bit OS. I installed a "slim" desktop environment using a random ...
MathCrackExchange's user avatar
0 votes
1 answer
413 views

How does one obtain PROCESS_ALL_ACCESS rights to a running process?

I have made (ok copy/pasted) a hack to the game, AssualtCube. Part of the hack involves using OpenProcess() to get a handle with PROCESS_ALL_ACCESS rights to ac_client.exe. This works fine in Visual ...
EatingTechnobladesRemainsAt3am's user avatar
0 votes
0 answers
721 views

How do I transfer CPP code into Linux-service?

I am Building an agent in C++ that alerts me if anyone has entered a USB on Linux-based computers. When I'll finish, I need it to run the code on few Linux-based computers as a service. How do I ...
user avatar
0 votes
1 answer
292 views

Using Visual Studio C++ remote debugging for Linux on a non-MSBuild, non-CMake project

Visual Studio has features to support cross-platform projects, allowing a developer to build, run and debug a Linux program from within Visual Studio, by connecting to and executing on either the ...
bames53's user avatar
  • 217
0 votes
1 answer
5k views

Add function to ~/.zshrc

I'm trying to apply the following : https://stackoverflow.com/questions/58549853/compiling-header-files-for-c-using-vscode-code-runner But I'm stuck/missdo on the part to copy and paste the function ...
siid_14's user avatar
0 votes
0 answers
280 views

Installilng GiNaC and CLN on windows

I planned to move to Arch Linux but for the time being I'm unfortunately stuck with Windows. I want to install GiNaC. In its installation page it says to install CLN first so that is also something I ...
cushionball's user avatar
0 votes
1 answer
223 views

ARM processor + zynq-7000 compilation platform in Linux C++? [closed]

I worked on a project that was built by C++ and compiled on a linux ARM based zynq-7000 platform. What kind of platform is this? I know a zynq-7000 (or UltraScale) is a newer FPGA. I also worked a lot ...
Linda's user avatar
  • 3
1 vote
1 answer
315 views

VisualStudio IntelliSense/Resharper C++ doesn't work for .mm files

I've been working on a C++ file with the extension .mm. VisualStudio 2019's IntelliSense wasn't working, so I installed Resharper C++, but it was still not giving me any code completion or other ...
Svend Hansen's user avatar
0 votes
0 answers
65 views

if one byte has leaked in a page of 4kb in physical ram,then after swapping to disk does it will count as 4kb is used instead of one byte?

We have an 64 bit application running on windows, for the fact we know it is leaking very few bytes of memory in the c++ code.But for a setup which has 16gb physical ram and 32gb pagefile.sys. ...
Jagadeesh Boggarapu's user avatar
0 votes
0 answers
391 views

Questions on ungoogled-chromium compile time

I started the ungoogled-chromium install from the aur last night, went to bed, and woke up and it's still only about 3/4 of the way complete. I was expecting it to take awhile, but I did not think it ...
alrob's user avatar
  • 125
0 votes
1 answer
2k views

Convert UTF-8 characters to their extended ASCII code

I have a file with unicode characters and I am trying to convert specific characters such as these black characters in notepad++ to get their ASCII value. For example, in the picture I have the DCS ...
Ilyes 's user avatar
1 vote
1 answer
372 views

Class not registered C++ Builder

Got installed new IDE for C++ development named C++ builder community and see what I got: class not registered AssemblyName: Borland.Build.Tasks.Common.dll ClassID: {9351FD3F-XXXX-XXXX-XXXXXXXX} I am ...
Muhammad Ali's user avatar
2 votes
0 answers
474 views

bash script works really slow after updating Mac OS from Mojave to Big Sur

Yesterday I updated my MacBook Pro Mid 2015 from Mac OS Mojave to Mac OS Big Sur, and today I have noticed that my bash script for stress-testing C++ programs works really slow. My script runs this ...
Yan's user avatar
  • 21
0 votes
1 answer
1k views

Unable to start the C/C++ language server. IntelliSense features will be disabled

After updating my C++ intellisence by microsoft I am getting the below error message while compiling with ctrl+shift+b Unable to start the C/C++ language server. IntelliSense features will be disabled....
Udesh's user avatar
  • 852
1 vote
1 answer
7k views

Installation failed for gdb in kali linux

$ sudo apt-get install gdb Reading package lists... Done Building dependency tree Reading state information... Done Package gdb is not available, but is referred to by another package. This may ...
Udesh's user avatar
  • 852
1 vote
0 answers
395 views

ALFA wifi network card Monitor Mode on Mac OS

I recently bought an ALFA AWUSO36EAC and I want to use it for packet injection and monitor mode on Mac OS. I was told that this is a better page to ask about Network Card related questions. I have ...
Sam Moldenha's user avatar
0 votes
1 answer
101 views

Can g++ compilers be used to build linux software on macos?

On windows I am able to develop for linux using WSL2. I ususally use CLion which allows me to switch between msvc and g++ with a flip of a switch. Is it possible to do the same thing on Mac? If so, ...
CiaranWelsh's user avatar
  • 2,656

1
2 3 4 5
8