Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a 32 bit MFC Print Application that uses StartDoc API for printing. In 32 bit OS, i didn't configure any Default Print Driver, then on File Print I selected Microsoft XPS Document Writer. A "Save as File" Dialog pops up which runs in the same Process as that of Application.
Now I have tried to run the same Application in 64 bit OS. Here also i didn't configure any Defualt Print Driver. On File Print I selected Microsoft XPS Document Writer. A "Save as File" Dialog pops up which runs in a different Process from the Application. In this sceneario, File Save As Dialog is becoming Modeless which is yeilding undesired results - I'm able to access the "Cancel Printing" dialog (the same cannot be accessed on 32-bit OS as File Save As is MODAL) and on clicking 'cancel' in this dialog, the Application hangs ( becomes unresponsive ). If i click close button of printing dialogue, application crashes.
If I now navigate to the "Save as File" Dialog, and click Cancel or Save, I can proceed.

How can I make "Save as File" Dialog modal in 64-bit OS?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900