V
Vince
Hi,
I have a simple Cdialog app with a generic class in it like this :
class CCardObj
{
public:
CCardObj();
virtual ~CCardObj();
BOOL LoadCardMapping();
};
class CBorneDlg : public CDialog
{
public:
CBorneDlg(CWnd* pParent = NULL);
protected:
CCardObj m_Card;
....
DECLARE_MESSAGE_MAP()
}
BOOL CBorneDlg::OnInitDialog()
{
CDialog::OnInitDialog();
BOOL bRet = FALSE;
bRet = m_Card.LoadCardMapping();
if ( ! bRet){
AfxMessageBox("Impossible de lire le mapping de la carte");
this->OnCancel();
return FALSE;
}
For my tests LoadCardMapping always return FALSE so I call OnCanel that kill
the dialog.
But my I trace my app the CCardObj is not detroyed.
Why ?
I have a simple Cdialog app with a generic class in it like this :
class CCardObj
{
public:
CCardObj();
virtual ~CCardObj();
BOOL LoadCardMapping();
};
class CBorneDlg : public CDialog
{
public:
CBorneDlg(CWnd* pParent = NULL);
protected:
CCardObj m_Card;
....
DECLARE_MESSAGE_MAP()
}
BOOL CBorneDlg::OnInitDialog()
{
CDialog::OnInitDialog();
BOOL bRet = FALSE;
bRet = m_Card.LoadCardMapping();
if ( ! bRet){
AfxMessageBox("Impossible de lire le mapping de la carte");
this->OnCancel();
return FALSE;
}
For my tests LoadCardMapping always return FALSE so I call OnCanel that kill
the dialog.
But my I trace my app the CCardObj is not detroyed.
Why ?