-#if ( defined(__WXOS2__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
- MyDialog *dialog = new MyDialog;
- if (dialog->LoadNativeDialog(this, _T("dialog1")))
- {
- dialog->SetModal(true);
- dialog->ShowModal();
- }
- dialog->Close(true);
+#if ( defined(__WXPM__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
+ MyDialog dialog;
+ if (dialog.LoadNativeDialog(this, _T("dialog1")))
+ {
+ dialog.ShowModal();
+ }