call a method in another project
-
I have a multiple object solution. How do I call from project2 a method in project1? I thought it is project1.method1();. Also, do I need to add header and other stuff to project1 so that it knows how to find method1? If there is some sample code available on line, that would be easiest. The projects are a mixture of C#, C++, and C. I am most interested in the C or C++ angle. I would have search for the solution, but I have no idea what keyword to begin with. Thanks. glam
-
I have a multiple object solution. How do I call from project2 a method in project1? I thought it is project1.method1();. Also, do I need to add header and other stuff to project1 so that it knows how to find method1? If there is some sample code available on line, that would be easiest. The projects are a mixture of C#, C++, and C. I am most interested in the C or C++ angle. I would have search for the solution, but I have no idea what keyword to begin with. Thanks. glam
I meant multiple project solution. glam
-
I have a multiple object solution. How do I call from project2 a method in project1? I thought it is project1.method1();. Also, do I need to add header and other stuff to project1 so that it knows how to find method1? If there is some sample code available on line, that would be easiest. The projects are a mixture of C#, C++, and C. I am most interested in the C or C++ angle. I would have search for the solution, but I have no idea what keyword to begin with. Thanks. glam
> How do I call from project2 a method in project1? In C/C++
CreateRemoteThread
should do it. > Also, do I need to add header and other stuff > to project1 so that it knows how to find method1? Simply pass the address ofThreadFunc
from project1 to project2 via some kind of IPC (Interprocess Communication). RK