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

Discussion in 'C++' started by sureshobabu, Dec 19, 2006.

  1. sureshobabu

    sureshobabu New Member

    Joined:
    Dec 19, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    I guess that's not possible, you may use DLLs (Dynamic Link Library) to achieve the task.
     
  3. mgparrish

    mgparrish New Member

    Joined:
    Jan 7, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    OLE can do this.

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice