samhocevar / portable-file-dialogs

💬 Portable GUI dialogs library, C++11, single-header
Do What The F*ck You Want To Public License
1.03k stars 99 forks source link

Doesn't compile on latest MSVC 2019 Community edition #60

Closed lakinwecker closed 3 years ago

lakinwecker commented 3 years ago

https://gist.github.com/lakinwecker/c9b1178d0559b4febcd4c5aeaec7a1ab

Something about the windows includes/defines is not working. I'm not versed enough in windows development to understand why. Hoping it's a simple fix.

I tried adding an #include <wingdi.h> before including this library, as some googling suggests that this is where LPLOGFONTA is defined, but it didn't fix it.

lakinwecker commented 3 years ago

I figured it out. I was compiling with -DNOGDI which prevents wingdi.h from being included properly. Closing, as this is not a bug in the library. Sorry for the noise.