Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - delete *CXTPCommandBars -> compiler error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

delete *CXTPCommandBars -> compiler error

 Post Reply Post Reply
Author
Message
TheWikkinger View Drop Down
Newbie
Newbie


Joined: 08 June 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote TheWikkinger Quote  Post ReplyReply Direct Link To This Post Topic: delete *CXTPCommandBars -> compiler error
    Posted: 08 June 2005 at 11:57pm

Hi,

I am using "Xtreme Toolkit Professional Edition v9.51 MFC for Visual C++".
At "delete m_pCommandBars;" in OnDestroy i get the compiler error "C2248: ... no access on protected element ..."

Any ideas? Here is a snippet of the code i am using:
class CDlgPreview : public CXTPDialog
{
private:
 CXTPCommandBars *m_pCommandBars;
... 
}

BOOL CDlgPreview::OnInitDialog()
{
 CDialog::OnInitDialog();

 m_pCommandBars = CXTPCommandBars::CreateCommandBars();
 ...
}

void CDlgPreview::OnDestroy()
{
 CDialog::OnDestroy();
 delete m_pCommandBars; // --> error C2248
}

Thanks for your help.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2005 at 11:43am

call

m_pCommandBars->InternalRelease();

instead

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.