Sign in to follow this  
FGFS

virtual functions from another lib

Recommended Posts

FGFS    345

HI

I can, via virtual functions, access/use functions etc. from another x-plane plugin. Neat, but I wonder if/how I could do alike somehow without

using x-plane plugins but standalones exes.

Many thanks

 

Share this post


Link to post
Share on other sites

Well the simple answer is no then. Less simple answer is you would have to call functions across process boundaries and you would probably have to reverse engineer the exe you are calling into to find the addresses and data structures you need.

Share this post


Link to post
Share on other sites
Bregma    9199

There is an entire industry dedicated to RPC (remote procedure calls) and the technology has been evolving for decades.  Tech like "SOAP", "COM", "CORBA", "EJB" and now "API" are terms you can use to search for this.  That's what those buzzwords mean.

 

If you can guarantee you're going to be running on the same machine using the same architecture and runtime between EXEs, it can get a little easier.  This is exactly how a lot of infection viruses and trojans work.  In the case of games doing this, an excellent example is the DwarfTherapist tool used as an adjunct to Dwarf Fortress.  It's Free software, so you can download and study how it works.  It doesn't actually make function calls (Dwarf Fortress itself is not Free), but it effectively has the same effect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this