Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Jan 29, 2020 3:44 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: plugins for windows (DLLs ) : Is C++ needed to create them?
PostPosted: Mon Mar 07, 2011 12:19 pm 
Offline

Joined: Thu Nov 08, 2007 4:59 am
Posts: 392
Location: Germany
Hello,

I just have read an article about creating RB plugins in the RB developer magazin

It is said that for windows a plugin is basically a .DLL (native, no .NET) and that such .DLL can be copied into the RB plugin directory.

I'm curious:
The plugin SDK contains samples for C++... but I wonder how I could create a windows plugin (in other words : a .DLL) using other languages than C++ - for example Delphi or maybe even another BASIC compiler that can create .DLL files... ?

The SDK contains header files for C... so I guess these files must be somehow translated to be used in other languages.
What that be a difficult task or possible at all?

Heinz


Top
 Profile  
Reply with quote  
 Post subject: Re: plugins for windows (DLLs ) : Is C++ needed to create th
PostPosted: Mon Mar 07, 2011 12:35 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
spacewalker wrote:
Hello,

I just have read an article about creating RB plugins in the RB developer magazin

It is said that for windows a plugin is basically a .DLL (native, no .NET) and that such .DLL can be copied into the RB plugin directory.

I'm curious:
The plugin SDK contains samples for C++... but I wonder how I could create a windows plugin (in other words : a .DLL) using other languages than C++ - for example Delphi or maybe even another BASIC compiler that can create .DLL files... ?

The SDK contains header files for C... so I guess these files must be somehow translated to be used in other languages.
What that be a difficult task or possible at all?

Heinz


Plugins for REAL Basic are C/C++ (wich end on the .rbx file type) These can not be build with other languages i think.

DLL's are windows only as you said, they are not like plugins, as you have to use declares with dll's in order to use them in RB. You can build them in VB.NET, C#.NET, Delphi, C, C++(.NET) and so on but only use with windows.

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: plugins for windows (DLLs ) : Is C++ needed to create th
PostPosted: Mon Mar 07, 2011 1:11 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Plugins ARE dll files - ie., they are dynamic library files for the platform: .dll on Windows, .so on linux, .dylib on Mac. They are collected into an .rbx file that contains a lib file for each platform. The file for the correct platform is included in the app when you compile.

There is no real restriction on the language used to create the dll, as long as it creates a format that is compatible with RB - the traditional "C" style dll - and includes the entry points required by RB (as defined in the C headers).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group