Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Property Page Tab titles Pin
David Crow5-Dec-05 9:47
David Crow5-Dec-05 9:47 
AnswerRe: Property Page Tab titles Pin
PJ Arends5-Dec-05 14:54
professionalPJ Arends5-Dec-05 14:54 
Questionerror C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 9:14
newbie53455-Dec-05 9:14 
AnswerRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
Maximilien5-Dec-05 9:39
Maximilien5-Dec-05 9:39 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 10:01
newbie53455-Dec-05 10:01 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
Maximilien5-Dec-05 10:19
Maximilien5-Dec-05 10:19 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 11:03
newbie53455-Dec-05 11:03 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
toxcct5-Dec-05 22:38
toxcct5-Dec-05 22:38 
damn !

maximilien already answered, but i'd really like to say this.

error C2228: left of '.ShowWindow' must have class/struct/union type
isn't the compiler message explicit enough ?
ok, you're a "newbie". let's start back.

left of '.ShowWindow' : m_partnum.ShowWindow(SW_HIDE);
i hope so you see that the compiler talks about m_partnum.
but you declared it as an integer (int m_partnum;).
int is NEITHER (as the message tells) a class nor a struct nor a union but a native type of the language (here C++)
so you cannot apply the '.' operator to an int variable in which no such operator is defined.

moreover, what you what to do is applying this on a control (showing or hiding a particuliar control). you must have a variable or the type (or subtype) in which the ShowWindow() member function is defined (here CWnd).

almost all the controls inherits from CWnd, so a CEdit, a CButton, a CComboBox will also have their ShowWindow() Method...


TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20]
QuestionRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
David Crow5-Dec-05 9:40
David Crow5-Dec-05 9:40 
AnswerRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 10:02
newbie53455-Dec-05 10:02 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
David Crow5-Dec-05 10:39
David Crow5-Dec-05 10:39 
GeneralRe: error C2228: left of '.ShowWindow' must have class/struct/union type Pin
newbie53455-Dec-05 11:02
newbie53455-Dec-05 11:02 
Questionnmake launches Visual Studio 2003 Pin
Ian Bowler5-Dec-05 8:35
Ian Bowler5-Dec-05 8:35 
QuestionLooking to learn Pin
geniusintraining5-Dec-05 8:16
geniusintraining5-Dec-05 8:16 
AnswerRe: Looking to learn Pin
Bob Stanneveld5-Dec-05 9:37
Bob Stanneveld5-Dec-05 9:37 
QuestionControl Messges to Parent?? Pin
SublimeRide5-Dec-05 7:26
SublimeRide5-Dec-05 7:26 
QuestionRe: Control Messges to Parent?? Pin
David Crow5-Dec-05 7:51
David Crow5-Dec-05 7:51 
AnswerRe: Control Messges to Parent?? Pin
SublimeRide5-Dec-05 9:20
SublimeRide5-Dec-05 9:20 
QuestionScheduling Serial Port Access Pin
jheddings5-Dec-05 6:48
jheddings5-Dec-05 6:48 
QuestionAccepting a file Pin
islheg5-Dec-05 6:11
islheg5-Dec-05 6:11 
QuestionRe: Accepting a file Pin
David Crow5-Dec-05 6:26
David Crow5-Dec-05 6:26 
AnswerRe: Accepting a file Pin
islheg6-Dec-05 4:27
islheg6-Dec-05 4:27 
QuestionRe: Accepting a file Pin
David Crow6-Dec-05 4:40
David Crow6-Dec-05 4:40 
AnswerRe: Accepting a file Pin
islheg7-Dec-05 4:46
islheg7-Dec-05 4:46 
GeneralRe: Accepting a file Pin
David Crow7-Dec-05 5:36
David Crow7-Dec-05 5:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.