Hi,
CPP : How do i call a function in another program?
the main function is in one program and i want this main function to call a function in another program.
Can anyone please give me the sample code for this? Thanks in advance

under normal circumstances you can't do that.

You can to set up some sort of communications link (a pipe or a shared file or shared memory, or a network link) between the programs and have them co-operate with each other in executing the required functionality.

under normal circumstances you can't do that.

You can to set up some sort of communications link (a pipe or a shared file or shared memory, or a network link) between the programs and have them co-operate with each other in executing the required functionality.

can you please give me the sample code for that?

So you have access to the source code of both programs?

sounds like another attempt to create some kind of bot or clicker for an mmo...

you could just make a header file and include that into you program if your using classes and stuff....of course that was a very general explanation. If u want send me your code and ill look at it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.