168,054 questions
0
votes
0
answers
28
views
JNA CoCreateInstance returns S_OK but ShellLink/IShellLinkW fails, COM pointer is non-null but object unusable
I'm making a Java app that scans the Windows Recent Files folder and resolves .lnk shorcuts to their actual file paths. I'm doing so using JNA the JNA API and simulating IShellLinkW and IPersistFile.
...
0
votes
1
answer
61
views
Windows 11 raw input API bad performance compared to Windows 10
With my code which is just a regular RAW input example.... WM_INPUT, RIM_TYPEMOUSE... I'm getting on Windows 10 the full 1,000Hz of my mouse and on Windows 11 I'm getting about 128Hz.
How to fix this ...
Best practices
1
vote
7
replies
77
views
How to use in the same piece of code two different libraries with exact same declarations
I have two numerical maths libraries given by DLLs (I am under Windows) and header files. (I can't modifiy the headers and anyway there are dozens of them. I also don't have have access to a code that ...
1
vote
0
answers
58
views
How do I send arguments to application in windows launched with shell:appsFolder?
I know you can use the Get-AppxPackage and Get-AppxPackageManifest cmdlets in Powershell to get the package family and it's specific application entry point.
In this example with Windows Media Player ...
3
votes
2
answers
117
views
Cannot get command line code to run via python
I am running python 3.13.5 via PowerShell in windows 10. I can successfully run the folowing command, and now want to run it with a python script
& 'D:\realesrgan\realesrgan-ncnn-vulkan.exe' -i 'D:...
-1
votes
0
answers
116
views
How to debug the C# COM class? [closed]
I have a simple C++ project which uses the CoCreateInstance to access and use some C# code (com-exposed class). The simple code looks like:
// ...
hr = CoCreateInstance(
CLSID_rclsid,
NULL, ...
2
votes
2
answers
117
views
Kotlin script - can't run if full path contains space [closed]
Kotlin compiler is located in C:\kotlinc\bin, when trying to run any script that is located in a path with space - it fails with message
InvalidPathException: Illegal char <:> at index 2: /H:/My%...
-2
votes
0
answers
67
views
Liberty server on Windows prefers link-local IPv6 instead of global IPv6 when using hostname [closed]
I’m running an application on IBM WebSphere Liberty on a Windows server with IPv6 enabled.
We want Liberty to listen on the global IPv6 address, not the link-local one.
To prefer IPv6, I added this ...
0
votes
1
answer
49
views
In DuckDB, can there be proper UTF-8 output in duckbox mode to Windows console? [closed]
I cannot get non-ASCII characters to be properly displayed in DuckDB console, even if the console application supports UTF-8. I have a sample CSV file encoded in UTF-8 containing a few test strings:
...
2
votes
1
answer
78
views
numpy 2.2.6 tries to build on Windows 11 x64 instead of using wheel
originally I was trying to install opencv-python which fails on trying to install numpy:2.2.6
So I am trying to just install this numpy and for some obscure reason it tries to build it! instead of ...
-3
votes
0
answers
28
views
Tensorflow GPU use in python 3.13 [duplicate]
Im trying to use tensorflow with gpu on my windows device, i have python 3.13 venv. Is newer version of tensorflow support gou acceleration on windows. Ive read that it stopped in tensorflow version 2....
0
votes
1
answer
53
views
How to run .py script with windows cmd without having python pop up?
I had this script for automated solving of a little daily game thing. I used to be able to run it by typing cmd into the folder where the script was, and then running the script by entering scriptname....
0
votes
1
answer
24
views
py4j.protocol.Py4JJavaError on windows machine running pyspark code in executing df.show() or df.count() comman
i am new to pyspark.
i have installed java 17 and made sure it works
C:\Windows\System32>java -version
java version "17.0.12" 2024-07-16 LTS
installed python 3.9 and made sure it works
C:\...
0
votes
2
answers
57
views
How to enumerate MMDevice devices that are USB
There are well documentated ways to enumerate MMDevice audio devices such as:
How do you programatically get a list of a computer's recording devices?
Does anyone know a way to tell if a devce is USB ...
Advice
1
vote
7
replies
77
views
Why does PHP on Windows allow a non-existent locale to be set?
If I run var_dump(setlocale(LC_ALL, 'xyz.utf-8'));
on Windows I get string(9) "xyz.utf-8" despite the fact that 'xyz' is not advertised in ResourceBundle::getLocales('') and having ...
Advice
0
votes
1
replies
21
views
Intune and PPKG files with 25H2 not auto applying - FIXED
Had an issue where under 24H2 and 25H2, using a USB to deploy windows with a PPKG file included - Windows would ignore the ppkg file. You would have to press windows key 5 times at OOBE (After ...
0
votes
0
answers
127
views
Windows C++ API BackupRead is stuck(?) when trying to fetch all the streams of a file
I am trying to investigate an issue where the Windows C++ API BackupRead, used in our software, appears to get stuck for few files.
I suspected large file streams to be the reason.
I wrote a small ...
0
votes
0
answers
42
views
OnDraw() not triggered by OnUpdate() until change from CListView to CView
My question is how is a multiple document MFC application whose view was derived from CListView and was changed to the simpler CView in order to enable OnDraw() affected? Does this introduce problems?
...
3
votes
2
answers
97
views
Why do I get a Run-Time Check Failure #2
Im new to C Programming and the Windows API im getting "Run-Time Check Failure #2 - Stack around the variable 'pMyStringAdress' was corrupted." after compilation in Visual Studio
Thats my ...
1
vote
0
answers
88
views
TImage image is being truncated
I have written a Print Preview option for a larger application. Mostly it works to my satisfaction, except sometimes the image is truncated.
The code below is a much cut-down version that shows the ...
3
votes
3
answers
197
views
strlen() returns 1 larger on linux than windows
I am building a c extension for a python module and it needs to work the same on a windows machine and on a raspberry pi.
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#...
-3
votes
0
answers
115
views
Why does VS Code’s external console (cmd.exe) echo my input when running a C++ program and how to change [closed]
My code:
#include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin ...
0
votes
1
answer
92
views
gdi32 painted window not redrawing when unminimizing
I want my window to redraw the pixel put on the screen when WM_PAINT message is called after unminimizing my window. Cause all what i drawn is cleared when minimizing. I tried different thing, i think ...
Advice
0
votes
1
replies
34
views
Why search "vsc" in windows start menu can find out Visual Studio Code?
Windows 10 22H2.
Ask this question because at the same time, type ame can't find out Adobe Media Encoder.
and I don't see vsc.exe defined in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\...
0
votes
0
answers
41
views
Using WlanConnect on a Hotspot without internet connection can get disconnected to prefer an internet enabled one
I have a C app on Windows 11 which connects to a wifi Hotspot A without internet connectivity using WlanConnect. It works, the connection is stable. However, let's say there is another Hotspot B in ...