I know that it seems to be a trivial question.
But I did not find how to set the printing mode to landscape before displaying
the CPrintDialog, with VC++ 6.00.
I tried to change the DEVMODE structure with GetDevMode method but I always got
an error: The memory could not be written.

Help highly appreciates.
JH MORIN.