Skip to main content
20 votes
Accepted

Executing a shell command OS-independently

Just use system() While system() is often abused, here it is exactly what you want. It's a standard C function, so it's very ...
G. Sliepen's user avatar
  • 55.7k
6 votes

Executing a shell command OS-independently

simplifications? You didn't describe the constraints this project is working under. If a python interpreter is available, you could readily achieve your goal by using "import graphviz". The ...
J_H's user avatar
  • 25.6k
3 votes
Accepted

Convert FoxPro/dBase DATETIME field to Win32 SYSTEMTIME struct

meaningful identifier CONST DOUBLE dConvert = 2440587.5; Simonyi and Spolsky would tell you that this is not the original Apps Hungarian Notation. It does not ...
J_H's user avatar
  • 25.6k
2 votes
Accepted

Windows: Programmatically uninstall the NumberPad from ASUS ZenBook

Low hanging fruits: L"{4d36e96b-e325-11ce-bfc1-08002be10318}" looks like a magic number to me. If I understand correctly, it is a GUID of NumberPad; if ...
vnp's user avatar
  • 56.4k
1 vote

Executing a shell command OS-independently

This is not an OS Independent solution. This is a 2 OS dependent solution, and will only work in *nix-like systems and (maybe) Windows. Might work in Android. Might not. Also, you have one codebase, ...
CapnJack's user avatar
1 vote

wtpdmt - Windows thread preemption duration measurement tool (C++)

GetTickCount64 is not great, the result is in milliseconds which is already not amazing but the actual resolution is about 10x worse than that. If the actual ...
harold's user avatar
  • 9,559

Only top scored, non community-wiki answers of a minimum length are eligible