Execute a program from TMainMenu drop down item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pep
    New Member
    • Jun 2007
    • 6

    Execute a program from TMainMenu drop down item

    Hi to u all

    l've written a Mean program which rans perfectly well, but my issue was l
    wanted to execute from the MainMenu, so that when l choose say Mean
    from the menu it executes it, how can l connect it?

    Any idea would be grateful
    thanks
    Pep
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    #2
    Originally posted by pep
    Hi to u all

    l've written a Mean program which rans perfectly well, but my issue was l
    wanted to execute from the MainMenu, so that when l choose say Mean
    from the menu it executes it, how can l connect it?

    Any idea would be grateful
    thanks
    Pep
    Are you using MSVC, or something else?

    Comment

    • pep
      New Member
      • Jun 2007
      • 6

      #3
      I'm using Borland C++ Builder 5 running on Vista Ultimate

      thanks

      Comment

      • Sick0Fant
        New Member
        • Feb 2008
        • 121

        #4
        Originally posted by pep
        I'm using Borland C++ Builder 5 running on Vista Ultimate

        thanks
        I should first of all ask, are you using a dialog resource as your window, or are you designing your own?

        Comment

        • pep
          New Member
          • Jun 2007
          • 6

          #5
          l designed my own menu called Meanpr with a caption MeanProgram,
          one thing is that l looked through some of those threads and l found this
          expression
          Code:
          system("F:\\Mean\\MVNew.exe")
          The program does open, but it opens C:\windows\syst em32\cmd.exe prompt as well, Is there a way preventing it from openning?

          thanks

          Pep

          Comment

          • pep
            New Member
            • Jun 2007
            • 6

            #6
            Originally posted by pep
            l designed my own menu called Meanpr with a caption MeanProgram,
            one thing is that l looked through some of those threads and l found this
            expression
            Code:
            system("F:\\Mean\\MVNew.exe")
            The program does open, but it opens C:\windows\syst em32\cmd.exe prompt as well, Is there a way preventing it from openning?

            thanks

            Pep
            Does anyone find the solution to my problem yet?

            thanks

            pep

            Comment

            • Parul Bagadia
              New Member
              • Mar 2008
              • 188

              #7
              You can call it in main; that's how we connect any function to some other function.
              Mean is a name of function i guess.

              Comment

              Working...