On 12/4/07 22:53, "Norman Palardy" <[EMAIL PROTECTED]>
wrote:

> 
> You could use dlopen / dlclose / dlsym to get the pointer and you
> dont need to do a lot of extra work.
> But you have no way to call it from within RB.
> 
> You could write a plugin that would load the dylib and provide an
> interface to the loaded routine.

The problem isnt loading the plugin DLL or API etc, or getting the function
pointer or opening/loading the library, it is finding a way to call the
function that any function pointer refers to. RB allows one to set up and
pass a function pointer based on an RB function ( callback ) to a declare
function. My FR is just basically requesting the converse.

Both are needed - 

A) the ability for a library or RB plugin to be able to invoke a callback
inside an RB App

B) the abiity to invoke a callback inside library or RB plugin itself.

For the time being I shall simply create a wrapper function inside an RB
plugin that I will write, which will in turn call the "pointed to" function


I seem to remember that someone had a some plugin utility for a "generic"
way of being able to call function pointer functions by somehow manipulating
the call stack.

> It's a bit different from the technique in the article I did on
> RBLibrary about making a plugin api for an app but not to far removed.
> That article even had full source and projects for OS X, Windows and
> Linux which you could twist into what you need pretty easily
> _______________________________________________

Regards,

Dan



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to