Hello
Im using the following piece of code to display the print dialog:
pd.lStructSize = sizeof(PRINTDLG);
pd.hDevMode = NULL;
pd.hDevNames = NULL;
pd.hwndOwner = hDlg;
pd.Flags = PD_RETURNDC;
pd.hInstance = hInst;
PrintDlg(&pd);
When I run my program in Debug mode all works fine. However, when I run my program in Release mode the print dialog fails to display. Any ideas why?
Thanks
Im using the following piece of code to display the print dialog:
pd.lStructSize = sizeof(PRINTDLG);
pd.hDevMode = NULL;
pd.hDevNames = NULL;
pd.hwndOwner = hDlg;
pd.Flags = PD_RETURNDC;
pd.hInstance = hInst;
PrintDlg(&pd);
When I run my program in Debug mode all works fine. However, when I run my program in Release mode the print dialog fails to display. Any ideas why?
Thanks