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 run another object from another project

How to run another object from another project

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
12 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.
  • K Offline
    K Offline
    kanekcwu
    wrote on last edited by
    #1

    So I am using the solution Explorer and I link two projects together. The question I want to ask is how do I run an object that is created from my second project on my first project? Is there any easy way to do that using include? I tried looking through the microsoft library on Project Dependencies but I am still confused. Thanks

    CPalliniC N 2 Replies Last reply
    0
    • K kanekcwu

      So I am using the solution Explorer and I link two projects together. The question I want to ask is how do I run an object that is created from my second project on my first project? Is there any easy way to do that using include? I tried looking through the microsoft library on Project Dependencies but I am still confused. Thanks

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      kanekcwu wrote:

      The question I want to ask is how do I run an object that is created from my second project on my first project?

      :confused:

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

      In testa che avete, signor di Ceprano?

      K 1 Reply Last reply
      0
      • K kanekcwu

        So I am using the solution Explorer and I link two projects together. The question I want to ask is how do I run an object that is created from my second project on my first project? Is there any easy way to do that using include? I tried looking through the microsoft library on Project Dependencies but I am still confused. Thanks

        N Offline
        N Offline
        Nathan Holt at EMOM
        wrote on last edited by
        #3

        kanekcwu wrote:

        So I am using the solution Explorer and I link two projects together. The question I want to ask is how do I run an object that is created from my second project on my first project? Is there any easy way to do that using include? I tried looking through the microsoft library on Project Dependencies but I am still confused. Thanks

        The answer depends on what kind of projects you are using. It's easiest if you are using an object in a static library. Then you need to use the include files from the library project and link the library into the calling project. With other kinds of projects, it becomes more complicated. Could you explain in more detail? Nathan

        K 2 Replies Last reply
        0
        • N Nathan Holt at EMOM

          kanekcwu wrote:

          So I am using the solution Explorer and I link two projects together. The question I want to ask is how do I run an object that is created from my second project on my first project? Is there any easy way to do that using include? I tried looking through the microsoft library on Project Dependencies but I am still confused. Thanks

          The answer depends on what kind of projects you are using. It's easiest if you are using an object in a static library. Then you need to use the include files from the library project and link the library into the calling project. With other kinds of projects, it becomes more complicated. Could you explain in more detail? Nathan

          K Offline
          K Offline
          kanekcwu
          wrote on last edited by
          #4

          I am using an MFC project. I am trying to run a video player on my MFC project and therefore is having problems. Thanks

          H 1 Reply Last reply
          0
          • N Nathan Holt at EMOM

            kanekcwu wrote:

            So I am using the solution Explorer and I link two projects together. The question I want to ask is how do I run an object that is created from my second project on my first project? Is there any easy way to do that using include? I tried looking through the microsoft library on Project Dependencies but I am still confused. Thanks

            The answer depends on what kind of projects you are using. It's easiest if you are using an object in a static library. Then you need to use the include files from the library project and link the library into the calling project. With other kinds of projects, it becomes more complicated. Could you explain in more detail? Nathan

            K Offline
            K Offline
            kanekcwu
            wrote on last edited by
            #5

            Both of my projects areMFC

            N 1 Reply Last reply
            0
            • CPalliniC CPallini

              kanekcwu wrote:

              The question I want to ask is how do I run an object that is created from my second project on my first project?

              :confused:

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

              K Offline
              K Offline
              kanekcwu
              wrote on last edited by
              #6

              As in I have two projects different projects in MFC in a solution. I want to call the dialog created by the second project in my first project.

              H D 2 Replies Last reply
              0
              • K kanekcwu

                Both of my projects areMFC

                N Offline
                N Offline
                Nathan Holt at EMOM
                wrote on last edited by
                #7

                kanekcwu wrote:

                Both of my projects areMFC

                I assume that you mean MFC executable projects, as opposed to MFC extension dlls. I have never used MFC automation, but I think you can use that to make methods in one executable callable. Another possibility would be to convert one of your projects to an MFC extension dll project (which has some issues), or an ATL project (which would provide much better automation support than MFC). Nathan

                1 Reply Last reply
                0
                • K kanekcwu

                  As in I have two projects different projects in MFC in a solution. I want to call the dialog created by the second project in my first project.

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

                  But why you want to run a dialog of a project on other project,do you have any idea?

                  1 Reply Last reply
                  0
                  • K kanekcwu

                    I am using an MFC project. I am trying to run a video player on my MFC project and therefore is having problems. Thanks

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

                    Do you want to play a movie file and whats problem?

                    K 1 Reply Last reply
                    0
                    • H Hamid Taebi

                      Do you want to play a movie file and whats problem?

                      K Offline
                      K Offline
                      kanekcwu
                      wrote on last edited by
                      #10

                      Yes I basically want to play a movie file with my project... I have a project that gives me data on when to play the movie. I just need to make the movie play it at those times... How do i do that?

                      H 1 Reply Last reply
                      0
                      • K kanekcwu

                        Yes I basically want to play a movie file with my project... I have a project that gives me data on when to play the movie. I just need to make the movie play it at those times... How do i do that?

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

                        For play movie files you can use of MCI functions and they are powerful and easy to use,but I think for this case you dont need to two project.

                        1 Reply Last reply
                        0
                        • K kanekcwu

                          As in I have two projects different projects in MFC in a solution. I want to call the dialog created by the second project in my first project.

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

                          kanekcwu wrote:

                          I want to call the dialog created by the second project in my first project.

                          See here.

                          "Love people and use things, not love things and use people." - Unknown

                          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                          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