Home > Back-end >  MFC cycle
MFC cycle

Time:10-03

Made a single step before implementation of function
Each click of a button realize part of function
But now want to step in, or click on the button all the functions in order to achieve
Here is a single step implementation code, seek expert advice on how to modify the code??

Void CMVPCIDlg: : OnSteachreastart ()
{
Long m_ac m_dc, m_v, m_xp m_yp, m_zp, m_tp, m_kp;
Long m_data;
Open3 & gt;> PATHNAME1;
M_data=https://bbs.csdn.net/topics/1;
If (STRCMP (PATHNAME1, "PATH $")==0)
{
Open3 & gt;> PATHNAME1;
If (STRCMP (PATHNAME1, "0")==0)
{
Open3 & gt;> M_ac;
Open3 & gt;> M_dc;
Open3 & gt;> M_v;
Open3 & gt;> M_xp;
Open3 & gt;> M_yp;
OnLMlineXY (m_ac m_dc, m_v, m_xp m_yp);
M_LMAcc=m_ac;
M_LMDec=m_dc;
M_LMVel=m_v;
M_LMDesPosX=m_xp;
M_LMDesPosY=m_yp;
The UpdateData (FALSE);

}

Else if (STRCMP (PATHNAME1, "1")==0)
{
Open3 & gt;> M_ac;
Open3 & gt;> M_dc;
Open3 & gt;> M_v;
Open3 & gt;> M_zp;
Open3 & gt;> M_kp;//output empty
OnLMlineZ (m_ac, m_dc m_v, m_zp);
M_lDesPosZ=m_zp;
M_lVelZ=m_v;
The UpdateData (FALSE);

}

}
Else if (STRCMP (PATHNAME1, PATHEND "$")==0)
{
Open3. Close ();
Cstrings tell;
Tell. The Format (" finished ");
AfxMessageBox (tell);

}

The else
{
Cstrings tell;
Tell. The Format (" please read the processing path to the file=OpenPathFile ");
AfxMessageBox (tell);
}

}
  • Related