How to run another object from another project
-
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
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 -
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
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
-
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
-
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
-
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 -
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
-
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.
But why you want to run a dialog of a project on other project,do you have any idea?
-
I am using an MFC project. I am trying to run a video player on my MFC project and therefore is having problems. Thanks
Do you want to play a movie file and whats problem?
-
Do you want to play a movie file and whats problem?
-
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?
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.
-
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.
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