Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. implicitly deleted because a base class invokes a deleted or inaccessible function 'CDialog::CDialog(const CDialog &)'

implicitly deleted because a base class invokes a deleted or inaccessible function 'CDialog::CDialog(const CDialog &)'

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 13229093
    wrote on last edited by
    #1

    Code is here
    // CSiBatchJobMigrationDlg dialog

    CSiBatchJobMigrationDlg::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

    S 1 Reply Last reply
    0
    • U User 13229093

      Code is here
      // CSiBatchJobMigrationDlg dialog

      CSiBatchJobMigrationDlg::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

      S Offline
      S Offline
      Stephane Capo
      wrote on last edited by
      #2

      Hello, I suppose that this should be better : SiBatchJobUpdateDlg updateDlg(this);

      U 1 Reply Last reply
      0
      • S Stephane Capo

        Hello, I suppose that this should be better : SiBatchJobUpdateDlg updateDlg(this);

        U Offline
        U Offline
        User 13229093
        wrote on last edited by
        #3

        Thanks you !!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups