J
jt
Being a newbie in C++ and comming from C, I can't find information on how to
access a class member function outside its class.
Below is a snippet of the class and its member function: look at
"AddCallPages"
=============================================================
class CPsnstatuspttView : public CFormView
{
protected: // create from serialization only
CPsnstatuspttView();
DECLARE_DYNCREATE(CPsnstatuspttView)
public:
//{{AFX_DATA(CPsnstatuspttView)
enum { IDD = IDD_PSNSTATUSPTT_FORM };
CEdit m_edit_msgs_ctrl;
CString m_edit_messages;
//}}AFX_DATA
// Attributes
public:
CPsnstatuspttDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPsnstatuspttView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
CString m_ConnectPort;
CString m_ConnectHost;
void AddCallPages(void); .. <------------------------- this function I
would like to call from another module
=========================================================================
Or is there a different easier way to do this outside the class maybe?
Thank you for your help.
JT
access a class member function outside its class.
Below is a snippet of the class and its member function: look at
"AddCallPages"
=============================================================
class CPsnstatuspttView : public CFormView
{
protected: // create from serialization only
CPsnstatuspttView();
DECLARE_DYNCREATE(CPsnstatuspttView)
public:
//{{AFX_DATA(CPsnstatuspttView)
enum { IDD = IDD_PSNSTATUSPTT_FORM };
CEdit m_edit_msgs_ctrl;
CString m_edit_messages;
//}}AFX_DATA
// Attributes
public:
CPsnstatuspttDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPsnstatuspttView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
CString m_ConnectPort;
CString m_ConnectHost;
void AddCallPages(void); .. <------------------------- this function I
would like to call from another module
=========================================================================
Or is there a different easier way to do this outside the class maybe?
Thank you for your help.
JT