trying to run subroutine from a different file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • petesquawk
    New Member
    • Sep 2009
    • 15

    trying to run subroutine from a different file

    I am trying to run the following code in dspMC_AxisWorks Dlg.cpp from trial.h. I have a button and when I press the button, I want it to execute bool CdspMC_AxisWork sDlg::ValidExec Data().

    If anyone could give me direction on how to solve this problem it would be greatly appreciated.

    //trial.h

    #pragma endregion
    private: System::Void button1_Click(S ystem::Object^ sender, System::EventAr gs^ e) {
    CdspMC_AxisWork sDlg::ValidExec Data();
    }

    //trial.cpp
    #include "trial.h"

    int main()
    {

    }

    // dspMC_AxisWorks Dlg.cpp : implementation file

    // include statements are here but not shown

    bool CdspMC_AxisWork sDlg::ValidExec Data()
    {
    //code
    }
Working...