Skip to main content

Questions tagged [c]

C is a general-purpose computer programming language used for operating systems, games and other high performance work and is clearly distinct from C++. Questions about programming in C are off topic and will be closed or migrated. Consider asking your question at Stack Overflow instead.

2 votes
1 answer
277 views

How Wireshark is able to pick network traffic from within Windows10 coming from WSL2

My task is to create 2x programs written in C/C++ which can communicate with each other from within WSL2 and Windows 10. I'm able to send traffic from WSL2 to Windows 10, however I cannot manage to ...
user23461877's user avatar
0 votes
0 answers
18 views

C-function fwrite in 'r+'-mode on Samba share

Since the switch from samba protocol SMB1 to SMB2, it seems that fwrite can't act in "r+"-mode on files on a mounted samba share anymore. Errno is set to EOPNOTSUPP (Operation not supported)....
manµ's user avatar
  • 3
0 votes
1 answer
146 views

How do browsers based on Chromium import passwords from Chrome?

How do browsers based on chromium import passwords from Chrome? Browsers like Vivaldi Brave, Edge, Opera, etc… all have feature to import passwords from Chrome, and some even have ability to import ...
Neptotech -vishnu's user avatar
2 votes
2 answers
2k views

Formatting of braces for C++ in Visual Studio Code

I've C/C++ extension of Microsoft as my default formatter. When I save/run my code the opening curly braces automatically move to newline instead of staying in sameline. How can I prevent this? (It ...
Shub's user avatar
  • 200
2 votes
1 answer
2k 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
66 views

How can I disable C Lang File Permission notification everytime I debug a program

I am trying to debug a simple c program and everytime I run the debug VS Code gives me this notification saying the program I am running is trying to get access to Desktop (surely it means the path ...
deepyes02's user avatar
  • 316
0 votes
1 answer
371 views

Detect if device is accessed using VNC [closed]

I like to check if our application on remote host is being accessed via VNC Viewer or other similar product of VNC. There are security preferences in our application which should restrict access to ...
Mahesh's user avatar
  • 348
0 votes
0 answers
1k views

Visual Studio Code not running code in terminal

I'm trying to run my C code, but I keep getting this message in the terminal instead of the output I want. I think it has something to do with installing MinGW incorrectly (or putting the wrong route ...
Alli Saenz's user avatar
2 votes
1 answer
490 views

wxWidgets installation lacks setup.h file. Why?

I've just upgraded my machine to OpenSuSE Leap 15.5. In order to install a Python-based app named DisplayCAL, I need to setup the recent version of Python, wxWidgets, and the wxPython bindings. Python ...
Neppomuk's user avatar
  • 301
0 votes
1 answer
252 views

How to solve `fileName::stripInvalid() called for invalid fileName CalibreLibrary` in OpenFOAM?

I installed OpenFOAM on my Linux Mint. When I run simpleFoam, the following prompt appears: ~ ❯❯❯ simpleFoam /*---------------------------------------------------------------------------*\ ========= ...
Milo's user avatar
  • 3
1 vote
1 answer
1k views

VScode not showing errors in real time

Is there any way to set VScode in a way that it shows errors in real time? So far I can only see them after compiling. I'm running VScode with WSL and I have C/C++ themes installed. I already made ...
c.leblanc's user avatar
  • 111
1 vote
0 answers
772 views

C/C++ compiler from command line

I want to install GCC or another C/C++ compiler entirely from the command line in Windows. I've looked at Winget and and Chocolaty but I've only found GNU ARM products. How do I install a C/C++ ...
neo-code's user avatar
0 votes
1 answer
130 views

What is the purpose of lex and yacc?

I'm currently trying to develop a compiler of my own using the C language. I came across this thread that says that learning lex and yacc will help in building compilers. However, I don't understand ...
Franz Zapanta's user avatar
1 vote
0 answers
48 views

What C calls does mdls use? [closed]

I am hoping to get mdls information from C calls, as I am using a different programme's FFI to make C calls. (In particular, I am after the kMDItemContentTypeTree key.) I have tried using getxattr, ...
Jake Ireland's user avatar
3 votes
1 answer
5k views

Is it possible to scan for Bluetooth devices without the bluetoothd daemon running?

I am working on an embedded system and I need to scan for Bluetooth devices. I want to do this with my own program, which I can do using the hci_get_route() and supporting hci functions from the BlueZ ...
Synthetix's user avatar
  • 259

15 30 50 per page
1
2 3 4 5
21