CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Aug 2003
    Posts
    162

    Accessing protected function

    How can i access a protected member function in other class??

    afx_msg void OnABC();

    I need to access this function from other class. Any methods?
    I tried to use a public function to access it.

    But i got an error :
    error C2352: 'CmdView::get_ABC' : illegal call of non-static member function
    for using CmdView::get_ABC(); in the other class function.

    Thanks a lot.
    Last edited by ayumi; September 12th, 2003 at 09:46 PM.
    0 error(s), 0 warning(s)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured