Re: Matt - the C++ magic
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Oct 11, 2006
- 496 views
Jonas Temple wrote: > > Matt, > > Would it be within the realm of possibilities to somehow extract the code you > created to call C++ objects and make it a seperate include file? I've got > some > C++ stuff that I'd like to interface to but IIRC, there's a piece in the > wxeu.dll > that is required. > > So..how about it? The magic you need can be found at: http://www.rapideuphoria.com/fptr.zip This file is what I use for eucom. COM objects are really just C++ objects that follow certain conventions. The hard part is dealing with the name decoration. And if your C++ is built using MSVC, it's probably using a slightly different calling convention, where the 'this' pointer is passed in ecx, rather than on the stack. Matt Lewis