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. How to invoke an application executable from DLL.?

How to invoke an application executable from DLL.?

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
13 Posts 5 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.
  • A ashokbngr

    Hi All, I am developing an MFC extension dll.I want to include an application into my dll. can anyone help me out how to call the application through DLL.:confused: Thanks in advance. Ashok Reddy.

    R Offline
    R Offline
    Renjith Ramachandran
    wrote on last edited by
    #3

    CreateProcess() function would help you Loka Samastha Sukhino Bhavanthu..!!! ( May all beings be happy and free )

    1 Reply Last reply
    0
    • A ashokbngr

      Hi All, I am developing an MFC extension dll.I want to include an application into my dll. can anyone help me out how to call the application through DLL.:confused: Thanks in advance. Ashok Reddy.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #4

      if you want to launch a application See http://www.codeproject.com/system/newbiespawn.asp[^]_**


      **_

      whitesky


      A 1 Reply Last reply
      0
      • H Hamid Taebi

        if you want to launch a application See http://www.codeproject.com/system/newbiespawn.asp[^]_**


        **_

        whitesky


        A Offline
        A Offline
        ashokbngr
        wrote on last edited by
        #5

        This is nice article but the thing is ... the sequence is as follows My Application --->MFC EXTENSION DLL -CALLING OPEN API in dll->another application should open as well as I want to commmunicate between these two applications. I will be very thankfull to u and waitinfg for u r reply. Thanks...... Ashok Reddy.

        T 1 Reply Last reply
        0
        • N Naveen

          what u want is to launch an exe, u can use ShellExecute() funtion nave

          A Offline
          A Offline
          ashokbngr
          wrote on last edited by
          #6

          This is one but the thing is ... the sequence is as follows My Application --->MFC EXTENSION DLL -CALLING OPEN API in dll->another application should open as well as I want to commmunicate between these two applications. I will be very thankfull to u and waitinfg for u r reply. Thanks...... Ashok Reddy.

          1 Reply Last reply
          0
          • N Naveen

            what u want is to launch an exe, u can use ShellExecute() funtion nave

            A Offline
            A Offline
            ashokbngr
            wrote on last edited by
            #7

            This is one but the thing is ... the sequence is as follows My Application --->MFC EXTENSION DLL -CALLING OPEN API in dll->another application should open as well as I want to commmunicate between these two applications. I will be very thankfull to u and waitinfg for u r reply. Thanks...... Ashok Reddy

            N 1 Reply Last reply
            0
            • A ashokbngr

              This is one but the thing is ... the sequence is as follows My Application --->MFC EXTENSION DLL -CALLING OPEN API in dll->another application should open as well as I want to commmunicate between these two applications. I will be very thankfull to u and waitinfg for u r reply. Thanks...... Ashok Reddy

              N Offline
              N Offline
              Naveen
              wrote on last edited by
              #8

              ashok3450 wrote:

              I want to commmunicate between these two applications.

              what do u want to communicate? nave

              A 1 Reply Last reply
              0
              • N Naveen

                ashok3450 wrote:

                I want to commmunicate between these two applications.

                what do u want to communicate? nave

                A Offline
                A Offline
                ashokbngr
                wrote on last edited by
                #9

                I want to send messages snd receive messages between applications. Plz help me out. Thanks Ashok Reddy.

                N 1 Reply Last reply
                0
                • A ashokbngr

                  I want to send messages snd receive messages between applications. Plz help me out. Thanks Ashok Reddy.

                  N Offline
                  N Offline
                  Naveen
                  wrote on last edited by
                  #10

                  if u know the name of a window in the process ur going to create, u can get the handle of the window using the FindWindow() function, Once u get the window handle, U can send and receive messages. nave

                  A 1 Reply Last reply
                  0
                  • N Naveen

                    if u know the name of a window in the process ur going to create, u can get the handle of the window using the FindWindow() function, Once u get the window handle, U can send and receive messages. nave

                    A Offline
                    A Offline
                    ashokbngr
                    wrote on last edited by
                    #11

                    Thanks for early reply.. can u send me address or code related to that i.e sending and receivinng messages. Ashok Reddy.

                    N 1 Reply Last reply
                    0
                    • A ashokbngr

                      Thanks for early reply.. can u send me address or code related to that i.e sending and receivinng messages. Ashok Reddy.

                      N Offline
                      N Offline
                      Naveen
                      wrote on last edited by
                      #12

                      i didn't find any links...But it simple... 1. Use RegisterWindowMessage() to register a type of message. 2. Use FindWindow() to find the Window u wanted. 3. Then send the message as usaaal using the postmessage or sendmessage. 4. Overide the WindowProc funtion of the window to which u send the message. Inside that u can check whether the message is same as as that u send using the post/send message. :cool: nave

                      1 Reply Last reply
                      0
                      • A ashokbngr

                        This is nice article but the thing is ... the sequence is as follows My Application --->MFC EXTENSION DLL -CALLING OPEN API in dll->another application should open as well as I want to commmunicate between these two applications. I will be very thankfull to u and waitinfg for u r reply. Thanks...... Ashok Reddy.

                        T Offline
                        T Offline
                        ThatsAlok
                        wrote on last edited by
                        #13

                        ashok3450 wrote:

                        My Application --->MFC EXTENSION DLL -CALLING OPEN API in dll->another application should open as well as I want to commmunicate between these two applications.

                        you have to interprocess communication between them!

                        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                        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