Home > Software engineering >  MFC add a class member function wizard how to open the VS17 version
MFC add a class member function wizard how to open the VS17 version

Time:09-19

Watch a video class to add a member function can't find the add dialog could you tell me how to open the below dialog

CodePudding user response:

Open the class view, right-click on the target class, menu select "add" -> member function

Actual add member functions directly on h and. CPP file to add, need not what kind of wizard, as the original class as follows:
 
H:

The class CClassB
{
Public:
CClassB ();
~ CClassB ();
};

.cpp
CClassB: : CClassB ()
{
}


CClassB: : ~ CClassB ()
{
}


Add function after fun01:
.h

The class CClassB
{
Public:
CClassB ();
~ CClassB ();
Public:
Int fun01 (void);
};

.cpp

CClassB: : CClassB ()
{
}


CClassB: : ~ CClassB ()
{
}

Int CClassB: : fun01 (void)
{
return 0;
}



  • Related