Re: how to pass a this pointer to another class in another file
"Z.K." <nospam@nospam.net> wrote in message
news:OYMUcCzpIHA.4888@TK2MSFTNGP04.phx.gbl
Igor Tandetnik wrote:
Z.K. <nospam@nospam.net> wrote:
I know this should be easy, but I can't seem to figure it out. I
need access to some of my variables and methods of my CFormView
class from a MFC derived class to access several of the CFormView's
controls.
I'm pretty sure your class is not called CFormView. Rather, you have
a class derived from CFormView. You should declare MyTest::Test3 to
take a pointer to your class, not to CFormView.
Yea, I had thought about that, but when I include the header file to
the class which is a CFormView, I get a huge amount of compiler
errors.
My crystal ball is a little bit cloudy today - hard to read the small
font on your screen. Perhaps you could show what you've done, and the
text of a few error messages?
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925