Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Oct 19, 2017 12:55 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: How do i get started on creating plugins for Realbasic?
PostPosted: Sun May 18, 2008 6:18 pm 
Offline

Joined: Sun Sep 09, 2007 4:07 pm
Posts: 11
Now i have been programming for some years now, in a variety of languages, and now i would like to get into creating some plugins for Realbasic (which is the last programming language i have learned and is quite happy about)

I'm guessing these are written in c++, but how (just basic, not in great detail) do i get on with making this as a plugin? There is not much litterateur on how to create plugins for realbasic.. :D

But i just need a little pinpoint on how to get started. Any small advice on where to begin?


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Sun May 18, 2008 6:47 pm 
Offline

Joined: Mon Dec 26, 2005 1:42 pm
Posts: 326
The Plugins SDK is found in the Extras folder inside the Realbasic folder.

Also, Aaron Ballman has documented writing plugins in his blog entries:
http://ramblings.aaronballman.com/2007/11/plugins_can_be_fun_part_one_vi.html
http://ramblings.aaronballman.com/2007/11/win32_plugin_sdk_unlikely_gotc.html
http://ramblings.aaronballman.com/2007/11/plugins_can_be_fun_part_two_g.html

That should get you started.

Good luck.


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Sun May 18, 2008 7:41 pm 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
There are some articles on RBLibrary about plugins

This one actually walks through creating one that works on Windows, Linux and OS X http://www.rblibrary.com/rblibrary/index.php?main_page=product_info&products_id=70

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 23, 2008 7:08 am 
Offline

Joined: Mon Apr 10, 2006 3:02 am
Posts: 52
if you work on windows

you can download my plugin creation software

here http://rgb.free.fr/plugin/PluginCreator.zip

the soft is not finished.

it's freeware software but users can donate money for continue development :)

thanks,


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 23, 2008 8:43 am 
Offline

Joined: Fri Sep 30, 2005 4:48 pm
Posts: 263
Before jumping into the plugin SDK you should ask yourself if you really need a plugin. There are very few situations that actually require a plugin these days, and add-ons written in Rb code are way easier to update and maintain.

_________________
www.chaoticbox.com · REALbasic Stuff
Latest iPhone Game: Silverifsh - pure arcade action.


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 23, 2008 5:28 pm 
Offline

Joined: Sat Oct 01, 2005 12:18 pm
Posts: 1358
I made this a while back, so it might be a little out of date with the new documentation, but there you go anyway
http://jdiwnab.no-ip.org/program/other/ ... torial.php

_________________
Image
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 30, 2008 9:08 am 
Offline

Joined: Sun Jun 24, 2007 12:24 pm
Posts: 441
Location: Madrid
OOh, I like this thread...

I've always been surprised at how little plugins there are for RB considering the availability of ready-made C libraries out there. Einhugur and MBS take advantage of this (I mean this in a good way) but it's still surprising.

I mean mencoder, mpeg123, libtorrent, textcat, etc. I've repeatedly found libraries that would be great as plugins (either because they imply a lot of work, already made or because they're much faster than native RB equivalent code).

To take an example, torrantula is a Realbasic torrent client. The whole thing is made in RB. Obviously it sucks at handling hundreds of TCP sockets, each with its own disk I/O routine, working in usually-large files, efficiently. Had the author been able to plug into libtorrent or aria2c he'd been able to focus on the rest of the program (obviating the curiosity of trying to come up with the client from scratch).

I see this especially useful in larger projects, which may take advantage of much smaller, independently-produced, libraries.

_________________
----
http://eduo.info/
http://gallery.eduo.info/
http://twitter.com/eduo/


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 30, 2008 9:58 am 
Offline

Joined: Fri Sep 30, 2005 4:48 pm
Posts: 263
eduo wrote:
I've always been surprised at how little plugins there are for RB considering the availability of ready-made C libraries out there. Einhugur and MBS take advantage of this (I mean this in a good way) but it's still surprising.

It's not so surprising - you simply don't need a plugin to use most pre-built C libraries (look up "declare" in the language reference).

If you're wrapping a C++ library or manipulating large sets of vector data (pixels, 3D vertexes) then a plugin might make sense but for most C libraries you'll get less overhead using declares and your code will be much easier to maintain. Rb plugin SDK changes break plugins on a regular basis (whether by accident or not) and compiling a plugin for multiple platforms requires some complex virtual logistics.

MBS and Einhugur were around since before Rb had robust support for external methods and their businesses rely on proprietary code which is better secured by using plugins, so I understand why they still do what they do, but a lot of their stuff could be ported to Rb/declares with little trouble (particularly anything that simply wraps system libraries).

_________________
www.chaoticbox.com · REALbasic Stuff
Latest iPhone Game: Silverifsh - pure arcade action.


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 30, 2008 10:18 am 
Offline

Joined: Sun Jun 24, 2007 12:24 pm
Posts: 441
Location: Madrid
Ok. This I didn't know.

Are you saying that I could place a DLL (or a shared library) in the same directory as my app and access it directly using Declare?

Boy did I misunderstand (and wrongfully discarded) that functionality then!

To use one of the examples I mentioned before, if someone wanted to integrate a torrent client in his application he could just include the libtorrent library compiled for each platform with the application itself (same folder as the app, at least) and call it using Declares?

A world of possibilities have opened to my eyes just from that passing comment. I'm glad I commented here. I'm astonished at how misinformed I was as to "Declare"'s functionality then.

_________________
----
http://eduo.info/
http://gallery.eduo.info/
http://twitter.com/eduo/


Last edited by eduo on Mon Jun 30, 2008 10:55 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 30, 2008 10:46 am 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
eduo wrote:
Are you saying that I could place a DLL (or a shared library) in the same directory as my app and access it directly using Declare?

Boy did I misunderstand (and wrongfully discarded) that functionality then!

Yes

eduo wrote:
To use one of the examples I mentioned before, if someone wanted to integrate a torrent client in his application he could just include the [url="http://www.rasterbar.com/products/libtorrent/building.html"]libtorrent library compiled for each platform[/url] with the application itself (same folder as the app, at least) and call it using Declares?

Yes

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: How do i get started on creating plugins for Realbasic?
PostPosted: Mon Jun 30, 2008 10:56 am 
Offline

Joined: Sun Jun 24, 2007 12:24 pm
Posts: 441
Location: Madrid
npalardy wrote:
Yes

...
npalardy wrote:
Yes


***Drool***

How could I miss this? Now I just want the day to be over so I can scoot back home and try a couple of things...

_________________
----
http://eduo.info/
http://gallery.eduo.info/
http://twitter.com/eduo/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group