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 pass value to MFC exe

how to pass value to MFC exe

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
8 Posts 4 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
    maharaja pandian
    wrote on last edited by
    #1

    hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.

    C D W 3 Replies Last reply
    0
    • M maharaja pandian

      hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Why don't you simply return the value from a function ? You call the function from the dll and store the result so it can be displayed in a message box. It is difficult to help you because you don't provide a lot of information about your problem.


      Cédric Moonen Software developer
      Charting control

      M 1 Reply Last reply
      0
      • M maharaja pandian

        hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        You can get access to the arguments that the DLL passed via m_lpCmdLine.


        "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

        "Judge not by the eye but by the heart." - Native American Proverb

        M 1 Reply Last reply
        0
        • M maharaja pandian

          hi all, i want to develop one application in VC++. A win32 dll can make use to call a MFC exe and to pass some argument value to that exe.At last the MFC exe can show the argument values passed by the dll. A messagebox should be show the argument's value ... thanks... invoke(arguments) Dll --------> MFC exe ---->MessageBox(arguments..) Try again and again, At last you will say I don't know the meaning for impossible.,.

          W Offline
          W Offline
          William Wang
          wrote on last edited by
          #4

          u may get some clue from COM(DLL) event. event interface is defined in a share file which is shared by both EXE AND DLL, DLL calls the functions defined by event interface, and exe realizes those functions. life is like a box of chocolate,you never know what you r going to get.

          M 1 Reply Last reply
          0
          • C Cedric Moonen

            Why don't you simply return the value from a function ? You call the function from the dll and store the result so it can be displayed in a message box. It is difficult to help you because you don't provide a lot of information about your problem.


            Cédric Moonen Software developer
            Charting control

            M Offline
            M Offline
            maharaja pandian
            wrote on last edited by
            #5

            hi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.

            1 Reply Last reply
            0
            • D David Crow

              You can get access to the arguments that the DLL passed via m_lpCmdLine.


              "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

              "Judge not by the eye but by the heart." - Native American Proverb

              M Offline
              M Offline
              maharaja pandian
              wrote on last edited by
              #6

              hi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.

              D 1 Reply Last reply
              0
              • W William Wang

                u may get some clue from COM(DLL) event. event interface is defined in a share file which is shared by both EXE AND DLL, DLL calls the functions defined by event interface, and exe realizes those functions. life is like a box of chocolate,you never know what you r going to get.

                M Offline
                M Offline
                maharaja pandian
                wrote on last edited by
                #7

                hi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.

                1 Reply Last reply
                0
                • M maharaja pandian

                  hi, thanks for ur reply.. i want to call a MFC exe from another exe , so that i used shellExecute() to run another exe, at the same time ,i need to pass some parameter values to the another exe, which has to display the values in their corresponding edit box. for e.g., if i passed "NAME","NUMBER","MARK1" the another exe display those above information in their edit box. :) Try again and again, At last you will say I don't know the meaning for impossible.,.

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  So what exactly is your question? I've already told you about m_lpCmdLine.


                  "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                  "Judge not by the eye but by the heart." - Native American Proverb

                  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