Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   Invoke a function from another running program (EXE) in C/C++ (http://www.go4expert.com/forums/invoke-function-running-program-exe-c-t2287/)

sureshobabu 19Dec2006 10:15

Invoke a function from another running program (EXE) in C/C++
 
i have a doubt in C++. lets asume A.exe is running and it has two functions A() and B(). i have another program B.exe, which needs to call some functions say A() in A.exe (which is already running).

how can we achieve this, what concept we need to use??

if u have some sample code, or tutorial or forums link, give me those reference.

pradeep 19Dec2006 14:34

Re: Invoke a function from another running program (EXE) in C/C++
 
I guess that's not possible, you may use DLLs (Dynamic Link Library) to achieve the task.

mgparrish 7Jan2007 08:30

Re: Invoke a function from another running program (EXE) in C/C++
 
Quote:

Originally Posted by pradeep
I guess that's not possible, you may use DLLs (Dynamic Link Library) to achieve the task.

OLE can do this.

Else you can create a "chat" between 2 prgms. via a file, just like chat servers do for people.


All times are GMT +5.5. The time now is 22:03.