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

sureshobabu's Avatar, Join Date: Dec 2006
Newbie Member
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.
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
I guess that's not possible, you may use DLLs (Dynamic Link Library) to achieve the task.
0
mgparrish's Avatar, Join Date: Jan 2007
Newbie Member
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.