Tag: C++
-
Checklist for Safe Child-Process Handling in Windows Apps - Job Objects, Exit Propagation, stdio, and Watchdog Design
A practical guide to safe child-process handling in Windows applications, covering Job Objects, exit propagation, stdio draining, and watchdog design.
-
How Far Can a Windows App Really Be a Single Binary? What Fits in One EXE and What Still Depends on Windows
A practical guide to what can really be bundled into one Windows executable, where OS dependencies remain, and how to decide before shipping.
-
Shared Memory Pitfalls and Best Practices - Synchronization, Visibility, Lifetime, ABI, and Security First
A practical guide to shared memory pitfalls and safer design, covering synchronization, visibility, lifetime, ABI, permissions, and recovery on Windows and P...
-
How to Measure and Compare Programming Language Speed Fairly - A Practical Guide for C#, C++, Java, and Go
A practical guide to comparing C#, C++, Java, and Go fairly, including benchmark design, warm-up, environment control, statistical reading, and concrete work...
-
How to Burn Images and Text into MP4 Frames with Media Foundation - Source Reader, Drawing, Color Conversion, Sink Writer, and a One-File C++ Sample
A practical way to burn images and text into every MP4 frame with Media Foundation, organized as Source Reader, drawing, color conversion, and Sink Writer, w...
-
How to Convert YUV Frames to RGB with Media Foundation - Source Reader Auto Conversion and Manual Conversion Patterns
A practical guide to converting YUV video frames to RGB with Media Foundation, covering Source Reader auto-conversion to RGB32 and manual NV12 / YUY2 convers...
-
How to Extract a Still Image from an MP4 with Media Foundation - A Single .cpp File You Can Paste into a C++ Console App
How to use the Media Foundation Source Reader to extract the frame nearest a target timestamp from an MP4 and save it as PNG, with a final one-file .cpp samp...
-
How to Turn C# into a Native DLL with Native AOT - Calling UnmanagedCallersOnly Exports from C/C++
A practical guide to publishing a C# class library as a native DLL with Native AOT and exposing UnmanagedCallersOnly entry points that can be called from C o...
-
What Media Foundation Is - Why It Starts to Feel Like COM and Windows Media APIs at the Same Time
A practical introduction to Media Foundation that explains the basic terms of Windows media APIs together with COM concepts such as HRESULT, IMFSourceReader,...