implicitly deleted because a base class invokes a deleted or inaccessible function 'CDialog::CDialog(const CDialog &)'
-
Code is here
// CSiBatchJobMigrationDlg dialogCSiBatchJobMigrationDlg::CSiBatchJobMigrationDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSiBatchJobMigrationDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSiBatchJobMigrationDlg)
m_sDatabase = _T("");
m_leaveDevRow = TRUE;
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_pMenu = new CMenu;
}Giving me error in below line
SiBatchJobUpdateDlg updateDlg = SiBatchJobUpdateDlg(this);
Code was working fine in VS2010 but getting this error after migration from vs2010 to vs2017
-
Code is here
// CSiBatchJobMigrationDlg dialogCSiBatchJobMigrationDlg::CSiBatchJobMigrationDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSiBatchJobMigrationDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSiBatchJobMigrationDlg)
m_sDatabase = _T("");
m_leaveDevRow = TRUE;
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_pMenu = new CMenu;
}Giving me error in below line
SiBatchJobUpdateDlg updateDlg = SiBatchJobUpdateDlg(this);
Code was working fine in VS2010 but getting this error after migration from vs2010 to vs2017
Hello, I suppose that this should be better : SiBatchJobUpdateDlg updateDlg(this);
-
Hello, I suppose that this should be better : SiBatchJobUpdateDlg updateDlg(this);
Thanks you !!!