Problem mit CPrintDialog
-
Hallo,
wenn ich folgenden Code aufrufe bekomme ich vom Compiler diese Fehlermeldung:
"Kein geeigneter Standard-Konstruktor verfügbar"void CMyFormView::Print() { CPrintDialog* pPrintDialog = new CPrintDialog; pPrintDialog->DoModal(); }Kann mir jemand weiterhelfen?
-
Das liegt wohl daran daß CPrintDialog kein Standard-Dialog hat.
Du musst dich bei CPrintDialog entscheiden ob du einen PrintDialog oder PrintSetupDialog haben willst.
void CMyFormView::Print() { CPrintDialog* pPrintDialog = new CPrintDialog( FALSE ); pPrintDialog->DoModal(); }Siehe: http://msdn2.microsoft.com/en-us/library/32762a1z(VS.80).aspx
-
Danke! Hab ne lösung gefunden.
-
maRKus23 schrieb:
Danke! Hab ne lösung gefunden.
lol