Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Call another program from my project ??

Call another program from my project ??

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mughi
    wrote on last edited by
    #1

    I have Help->Contents menu in my project. And I have a help.hlp file. What I need is : On click of the contents menu, I need to display this help.hlp file. How do i do it ?? Could someone help me on this, please. I thank in advance. Mughi

    G 1 Reply Last reply
    0
    • M Mughi

      I have Help->Contents menu in my project. And I have a help.hlp file. What I need is : On click of the contents menu, I need to display this help.hlp file. How do i do it ?? Could someone help me on this, please. I thank in advance. Mughi

      G Offline
      G Offline
      GermanGeorge
      wrote on last edited by
      #2

      ::WinHelp(0,".\\MY.HLP",HELP_CONTEXT,19028);

      M 1 Reply Last reply
      0
      • G GermanGeorge

        ::WinHelp(0,".\\MY.HLP",HELP_CONTEXT,19028);

        M Offline
        M Offline
        Mughi
        wrote on last edited by
        #3

        Its working. Thanks for your support. And by the way, I would like to know on how to run any other program, not only HLP files but also to invoke other files like documents, executables, etc., Once again, I thank you for your support.

        G J 2 Replies Last reply
        0
        • M Mughi

          Its working. Thanks for your support. And by the way, I would like to know on how to run any other program, not only HLP files but also to invoke other files like documents, executables, etc., Once again, I thank you for your support.

          G Offline
          G Offline
          GermanGeorge
          wrote on last edited by
          #4

          there are two ways: if you do NOT need control over the other programm use WinExec if you need the control, to determine, wheter the other programm is still running use CreateProcess / OpenProcess / WaitForSingleObject

          M 1 Reply Last reply
          0
          • M Mughi

            Its working. Thanks for your support. And by the way, I would like to know on how to run any other program, not only HLP files but also to invoke other files like documents, executables, etc., Once again, I thank you for your support.

            J Offline
            J Offline
            Jitendra gangwar
            wrote on last edited by
            #5

            ShellExecute (...) Try above mantioned Win32 Shell API. Jitendra :)

            M 1 Reply Last reply
            0
            • G GermanGeorge

              there are two ways: if you do NOT need control over the other programm use WinExec if you need the control, to determine, wheter the other programm is still running use CreateProcess / OpenProcess / WaitForSingleObject

              M Offline
              M Offline
              Mughi
              wrote on last edited by
              #6

              thanks for your support cheers

              1 Reply Last reply
              0
              • J Jitendra gangwar

                ShellExecute (...) Try above mantioned Win32 Shell API. Jitendra :)

                M Offline
                M Offline
                Mughi
                wrote on last edited by
                #7

                thanks for your support cheers

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups