Re: Q: Member variable problem
From: Geoff Jones (geoff_at_NODAMNSPAM.com)
Date: 03/25/04
- Next message: Johan Rosengren: "Re: Hopefully easy dialog / subclassing question"
- Previous message: Alec S.: "Re: ? CDC color adjustment"
- In reply to: Jase: "Re: Q: Member variable problem"
- Next in thread: Jase: "Re: Q: Member variable problem"
- Reply: Jase: "Re: Q: Member variable problem"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Mar 2004 09:16:07 -0000
> Sorry Geoff, but you have never refered to the variable name in an
> appropriate manner that would show that you know they are two different
> entities. You still haven't. You at no time select "m_pSet->m_Name" from
any
> list. You may select m_Name from a list provided with the context m_pSet,
> but that's as close as you will get. If you are still having difficulties,
> then please provide some more context. i.e. are you trying to create the
> variable from the context menu in the class view, from the command button
in
> the class wizard, or by typing in the code directly? Try not to mention
> m_pSet, as this is a pointer to a specific instance of a class. You cannot
> add a member variable to an instance, only to the class declaration.
>
> Jase
>
>
Hi Jase
Thanks for getting back so promptly. I do realise that m_pSet and m_Name are
two different entities i.e. a pointer and variable. As I mentioned in my
last email, I have resolved the problem because it turns out to be that
things have to be done in a different way depending on the version of VC++
being used. However, and because I appreciate that I haven't explained
things fully, others may be interested in seeing the following site:
http://www.mindcracker.com/mindcracker/c_cafe/dao/add_dao_support.asp
At the end of the document there is a graphic which shows the user selecting
the "member variable name" (this is how Microsoft have named the dialog
box - but I understand it is misleading) of m_pSet->m_Search (in this
example). This is written in VC++ 6. My problem occurred because in VC++ 4
you were allowed to enter, manually, "m_pSet->Name" i.e. not from a combo
box, and as we see in VC++ 6 you select "it" from a list BUT in VC++ you
can't enter it manually or select "it" from a list but rather you do it
manually in the member DoDataExchange and, if necessary, use the "auto
complete combo box" which appears during typing "->" to select the
appropriate variable.
Thanks again for all your help.
Geoff
- Next message: Johan Rosengren: "Re: Hopefully easy dialog / subclassing question"
- Previous message: Alec S.: "Re: ? CDC color adjustment"
- In reply to: Jase: "Re: Q: Member variable problem"
- Next in thread: Jase: "Re: Q: Member variable problem"
- Reply: Jase: "Re: Q: Member variable problem"
- Messages sorted by: [ date ] [ thread ]