Relative Content

Tag Archive for c++winapidirectwritesetwindowlong

SetWindowLongPtr Fails but GetLastError and errno are both 0

I am a novice programmer fiddling with the Windows API and attempting to follow the old Windows 7 DirectWrite Documentation (probably shooting myself in the foot with that decision). I’ve entered a rabbit hole of debugging and have become stumped by this SetWindowLongPtr() function. Here is a snippet of what I’m working with: