I am porting some Win32 code to Win64. The old code uses PrintDlg(), and runs fine on all versions of Windows (32 and 64 bit). The new code does not!
If I set up an all-zeroes PRINTDLG structure in my Win64 application, placing "120" in the lStructSize field, and call PrintDlg(), no dialog is shown, and the application crashes.
However, if I run the exact same image from within Visual Studio 2017 Pro, the dialog works as expected, every time!
Any thoughts about (a) why it works in VS, but crashes when run directly? And (b), what the heck I can do to fix it?!
Brian