Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Including RB code (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Debugging plugins, again...
Next thread: linker bug on RB 2007r3


macosx and unix paths   -   GOLD
  Including RB code   -   Theodore H. Smith
   Re: Including RB code   -   Alexander Cohen
   Re: Including RB code   -   Theodore H. Smith
    Re: Including RB code   -   Christian Schmitz

Including RB code
Date: 21.06.07 21:22 (Thu, 21 Jun 2007 21:22:04 +0100)
From: Theodore H. Smith
Hi people,

I'd like to write one or two functions in my ElfData plugin, using RB
code. Seeing as RB is much easier to write certain things with, and
also gives just as fast results in certain cases.

I've identified a few cases where some stuff would be just as fast
using RB code as C++ code. Mostly this is where my plugin does all
the hard work anyhow ;) as the RB code calls my ElfData code.

So is this possible? Can I write a plugin partly in RB code?

What I want to do, is add some kind of sort, split and join
functionality to my plugin. It's trivial to write in RB, but much
harder in C++.

Re: Including RB code
Date: 21.06.07 22:29 (Thu, 21 Jun 2007 17:29:35 -0400)
From: Alexander Cohen
You could write the functions in rb and pass the addresses of those
functions to your plugin, then the plugin could just call those
function when it needs them.

AC

On 21-Jun-07, at 4:22 PM, Theodore H. Smith wrote:

> Hi people,
>
> I'd like to write one or two functions in my ElfData plugin, using RB
> code. Seeing as RB is much easier to write certain things with, and
> also gives just as fast results in certain cases.
>
> I've identified a few cases where some stuff would be just as fast
> using RB code as C++ code. Mostly this is where my plugin does all
> the hard work anyhow ;) as the RB code calls my ElfData code.
>
> So is this possible? Can I write a plugin partly in RB code?
>
> What I want to do, is add some kind of sort, split and join
> functionality to my plugin. It's trivial to write in RB, but much
> harder in C++.
>
> --
> http://elfdata.com/plugin/
> "String processing, done right"
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

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

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

Re: Including RB code
Date: 21.06.07 23:03 (Thu, 21 Jun 2007 23:03:09 +0100)
From: Theodore H. Smith
No....

my plugin doesn't need those functions...

I'm trying to bundle up stuff into my plugin. I want to add some RB
code to my plugin, that is all. It's like a packaging step. Instead
of providing the module and the plugin, I can provide just the plugin
that wraps them neatly into one thing.

On 21 Jun 2007, at 22:29, Alexander Cohen wrote:

> You could write the functions in rb and pass the addresses of those
> functions to your plugin, then the plugin could just call those
> function when it needs them.
>
> AC
>
> On 21-Jun-07, at 4:22 PM, Theodore H. Smith wrote:
>
>> Hi people,
>>
>> I'd like to write one or two functions in my ElfData plugin, using RB
>> code. Seeing as RB is much easier to write certain things with, and
>> also gives just as fast results in certain cases.
>>
>> I've identified a few cases where some stuff would be just as fast
>> using RB code as C++ code. Mostly this is where my plugin does all
>> the hard work anyhow ;) as the RB code calls my ElfData code.
>>
>> So is this possible? Can I write a plugin partly in RB code?
>>
>> What I want to do, is add some kind of sort, split and join
>> functionality to my plugin. It's trivial to write in RB, but much
>> harder in C++.
>>
>> --
>> http://elfdata.com/plugin/
>> "String processing, done right"
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

Re: Including RB code
Date: 22.06.07 00:01 (Fri, 22 Jun 2007 01:01:28 +0200)
From: Christian Schmitz
Theodore H. Smith <<email address removed>> wrote:

> No....
>
> my plugin doesn't need those functions...
>
> I'm trying to bundle up stuff into my plugin. I want to add some RB
> code to my plugin, that is all. It's like a packaging step. Instead
> of providing the module and the plugin, I can provide just the plugin
> that wraps them neatly into one thing.

Well, there is no entry point for this, so forget it.

You can of course make things going with calling RB functions.

Some of my plugin functions work by just doing what RB code does by
calling my own functions from other part of the same plugin.

Gruß
Christian

-