class CServerDlg : public CDialog
{
// Construction
public:
CServerDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CServerDlg();
// Dialog Data
enum { IDD = IDD_ODBCSERV_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
virtual BOOL OnInitDialog();
CConnectDlg m_dlgCon;
CTreeCtrl* m_tree;
CDatabase m_db;
CRecordset m_rs;
// Generated message map functions
private:
IStorage * pStor;
IStream * pTreeSerial;
IStream * pConStrSerial;
HRESULT hr;
protected:
//afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
DECLARE_MESSAGE_MAP()
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnHelpAbout();
afx_msg void OnFileClose();
afx_msg void OnBnClickedButtonClose();
afx_msg void OnDataAddconnection();
afx_msg void OnFileSaveAs();
};
в конструкторе
CServerDlg::CServerDlg(CWnd* pParent /*=NULL*/)
: CDialog(CServerDlg::IDD, pParent),
m_rs(&m_db), pStor(NULL)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
коментю pStor(NULL) - всё нормально