I have looked everywhere for information on how to bundle up classes into a DLL in Xojo, but can find nothing on the subject. Have I missed it, or does Xojo not support DLL creation?
If it can’t create DLLs, what is the best practice for sharing business logic with multiple user interfaces? I have done development in VB5, VB6, and DotNet, but I am struggling to get over the hump with Xojo.
[quote=333899:@Sean Scott]I have looked everywhere for information on how to bundle up classes into a DLL in Xojo, but can find nothing on the subject. Have I missed it, or does Xojo not support DLL creation?
If it can’t create DLLs, what is the best practice for sharing business logic with multiple user interfaces? I have done development in VB5, VB6, and DotNet, but I am struggling to get over the hump with Xojo.[/quote]
I have used VB. Net DLLs a few years ago in conjunction with Xojo. It is not very difficult to do.
If you need or want to create dll’s then you could take a look at Powerbasic, not as user friendly as XOJO as far as visual design goes, and only Windows but it can create dll’s.
I’d suggest PureBasic because it’s cross-platform, I don’t know much about PowerBasic but I’m pretty sure it’s Windows only. Imo the GUI designer is PureBasic’s weakest point but for shared libraries or servers I think it’s excellent.
I have a license for PureBasic (x86 and x64 cross-platform) and PowerBASIC (x86 Windows only) since a few years ago. PureBasic is alive but PowerBASIC is dead.
PureBasic, founded in 1998, still live and kicking and based in France.
But as far as I know you still have to create a separate project for each platform.
[quote=333935:@Joost Rongen]But as far as I know you still have to create a separate project for each platform.[/quote]I’m sorry Joost but that’s just plain wrong, the source code is the same. It’s true the Windows IDE only compiles Windows binaries. the Linux IDE only compiles Linux binaries, etc… but your source code is the same and your license includes the right to use the IDE for all supported platforms.
PureBasic is onetime payment. It can make .dylib .so and .dll it’s not a cross-compiler so you need to make .dll on windows. I use it for making libraries and it can include c code (converted) and data resources (embed) in your libraries and executables.
PowerBasic, ohh well forget about it. It’s powerfull but you can do the same in xojo. And the price is higher.
It’s actually like xojo but it can’t cross compile but uses the same source to compile as you wish. Using the same platform; you need to run it on windows to dev windows .dll or .exe and so on
[quote=333960:@Michel Bujardet]Hum…
The original question is : “I have looked everywhere for information on how to bundle up classes into a DLL in Xojo”
Unless I am mistaken, none of the languages discussed allows bundling up Xojo classes within a DLL
May be time to let the plugging rest … Otherwise I am afraid this will end in a locked thread …[/quote]Paul answered that question in the very first response.
And let me remind you of your first contribution:[quote=333916:@Michel Bujardet]I have used VB. Net DLLs a few years ago in conjunction with Xojo.[/quote]