Calling a function in an application A from an application B using its name

This is a discussion on Calling a function in an application A from an application B using its name within the C Programming forums, part of the General Programming Boards category; Hello I am sorry if this is a dumb question but is conceivable to call a function in a running ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Calling a function in an application A from an application B using its name

    Hello

    I am sorry if this is a dumb question but is conceivable to call a function in a running application A from another application B using only the know function name and if so how can this be done? I am aware of GetProcAddress and dlsym to find the address of a symbol in a dynamic library that is loaded by the calling application but that does not work here

    thanks

    Yohan

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,791
    How about putting the function inside a DLL loaded by both app A and app B?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 01:53 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Function calling woes
    By RedZippo in forum C Programming
    Replies: 6
    Last Post: 01-08-2004, 11:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21