168,002 questions
0
votes
1
answer
22
views
Uninstalling an app doesn't delete all the files if the app is running. How do I solve this problem?
I'm building a Windows app, and it was rejected by Microsoft App Store because it didn't delete all the files after uninstalling.
The app is packaged using Java's jpackage and an MSI file. The ...
-1
votes
0
answers
67
views
How to bind SelectedItems in ListBox to ViewModel (Behaivor problem) [duplicate]
I have a ListBox
<ListBox
BorderBrush="Transparent"
FontSize="{Binding ExplorerElementsHeight}"
ItemsSource="{Binding CurrentExplorerContent}"
...
0
votes
0
answers
30
views
I am running Ollama (a local LLM service) on Windows and need to programmatically detect which port it's currently listening on
What I've tried:
Using Get-NetTCPConnection but it returns too much information and I can't reliably filter for Ollama:
Get-NetTCPConnection -State Listen | Where-Object {$_.LocalPort -gt 11400}
...
3
votes
0
answers
2k
views
How to get real display resolution in Delphi 7 regardless of scale factor?
I have some problems with getting the screen resolution in Delphi 7 when the scale is more than 125%.
The code I used for testing:
procedure TForm1.Button1Click(Sender: TObject);
var
MonId: integer;
...
2
votes
2
answers
20k
views
Set prefix/suffix to a Barcode Scanner programmatically
I want to create an application, where I can set, what prefix or suffix i want to send to the Barcode reader. The barcode reader may connect to the PC with USB or RS-232 ports. I mean if I have a ...
2
votes
1
answer
4k
views
OpenCV and TBB error x64
I have the following configuration:
OpenCV 3.2.0-dev
Windows 10.0.14393 AMD64
CMake: 3.7.1
CMake generator: MinGW Makefiles
GCC MinGW 6.3.0
Intel TBB 2017 Update 4
I'...
278
votes
19
answers
409k
views
How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?
I want my batch file to only run elevated. If not elevated, provide an option for the user to relaunch batch as elevated.
I'm writing a batch file to set a system variable, copy two files to a Program ...
0
votes
0
answers
23
views
fabric.js canvas.loadFromJSON hangs indefinitely on one Windows machine but works on another (Node.js + node-canvas)
TL;DR
I’m using fabric.js + node-canvas to export a very large canvas (6600×108000) from a FabricJS JSON.
On one Windows machine,
await canvas.loadFromJSON(fabricJSON) hangs forever:
no error
no CPU ...
186
votes
27
answers
205k
views
How do I check if a given string is a legal/valid file name under Windows?
I want to include a batch file rename functionality in my application. A user can type a destination filename pattern and (after replacing some wildcards in the pattern) I need to check if it's going ...
1
vote
2
answers
1k
views
In 32-bit why is the address space limit 2³¹?
In 32-bit why is the address space limit 231 instead of 232?
0
votes
1
answer
12k
views
Test connection failed because of an error in initializing provider
I get this error when trying to connect to a database server remotely using udl file:
Test connection failed because of an
error in initializing provider.
ORA-12545: Connect failed because
...
2
votes
0
answers
56
views
How to avoid MS Teams to select MJPG as camera data format?
I'm developing a "Python + C++ DLL" application, which calls Windows MediaCapture interface to open and read camera data (in format of NV12 or YUY2) in SharedReadOnly mode. And it must work ...
5
votes
1
answer
726
views
Why are string tables split into sections in an .rc file?
In an .rc file strings are grouped by sections of at most 16 strings.
So in a typical .rc file we usually have something like this:
...
STRINGTABLE // section 1
BEGIN
IDS_SOMEID_1 "Some ...
1
vote
3
answers
4k
views
Can't run as Admin
I have to execute the ewfmgr.exe which can be executed only when the Command window is opened as an Admin.
If I go to Start->type cmd.exe->Right click->Run as Administrator then the following Comand ...
3
votes
1
answer
1k
views
No symbols loaded for c++ in mixed debugging (from Python)
I have a large project where the major part computation-heavy stuff is written in C++, and the "glue code" and the start script are written in Python. The code has been compiled with the VS ...