Jump to content

  • Log In with Google      Sign In   
  • Create Account


virtual functions from another lib


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 FGFS   Members   -  Reputation: 193

Like
0Likes
Like

Posted 21 December 2013 - 05:44 AM

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

 



Sponsor:

#2 Paradigm Shifter   Crossbones+   -  Reputation: 5231

Like
0Likes
Like

Posted 21 December 2013 - 05:58 AM

You can do that on Windows with out of proc COM servers. That is mainly used for embedding documents in other documents (e.g. having a spreadsheet displayed in a word processor document).


"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

#3 FGFS   Members   -  Reputation: 193

Like
0Likes
Like

Posted 21 December 2013 - 06:31 AM

Thanks, but it must be crossplatform and for using c++ functions etc.


Edited by FGFS, 21 December 2013 - 06:32 AM.


#4 Paradigm Shifter   Crossbones+   -  Reputation: 5231

Like
0Likes
Like

Posted 21 December 2013 - 06:38 AM

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.


"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

#5 Bregma   Crossbones+   -  Reputation: 4849

Like
2Likes
Like

Posted 21 December 2013 - 07:02 AM

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.


Stephen M. Webb
Professional Free Software Developer




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS