Click here to Skip to main content
15,921,660 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to create a c++ program consisting of classes and i want that an already created program can be used in it?
How is it possible?
Posted
Comments
Richard MacCutchan 24-Jun-10 11:07am    
Make one of them a DLL, or compile and link them together in a single project, or make one of them a COM server. Lots of possibilities.
[no name] 25-Jun-10 17:24pm    
Reason for my vote of 1
RTFM

You really have to be way more explicit because your question is so vague that it could mean a lot of different things. What are you trying to do exacty ? Calling a function from another program ? Using part of the code of the other program in your own code ? Displaying the other program in a window of your program ? ...

So please describe your problem precisely and if possible with a clear example.
 
Share this answer
 
If you wish to use functions and classes from another program you can just include their files in the project, if you wish to run another program from yours you can use CreateProcess

See this link ....
http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx[^]

But you need to describe what you want to do better because it is not very clear. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900