Can you compile to a .dll in PureBasic?

Everything else that doesn't fall into one of the other PB categories.
karmacomposer
Enthusiast
Enthusiast
Posts: 113
Joined: Sun Jul 29, 2012 2:51 pm

Can you compile to a .dll in PureBasic?

Post by karmacomposer »

Hi everyone. I just found PureBasic and am interested in it. Among other things, I am looking to develop virtual instruments (vst and vsti) which are .dll files that run in a sequencer or DAW.

Can I use PureBasic for this? How would I compile to a .dll then?

I assume I can create DataBase apps (Mac and PC) with PureBasic - can it handle MySQL? Any other database types it can handle (Access, Postgresse, DBMS, etc)?

Also, I noticed there are not a lot of gadgets (controls) in both the free and paid visual form designers. Can I use any control (gadget) or does it have to be specially made for PureBasic? If I can use any, how would I import or install them?

Are there any 3rd party professional (read - can use to create GOOD LOOKING software - NOT amateurish) products for PureBasic of worthable note?

Thanks everyone.

Mike
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: Can you compile to a .dll in PureBasic?

Post by jassing »

Yes, you can create dll's -- it's very easy -- you declare a function/procedure as a dll exported function and then tell the compiler to compile to dll format. Done.
karmacomposer
Enthusiast
Enthusiast
Posts: 113
Joined: Sun Jul 29, 2012 2:51 pm

Re: Can you compile to a .dll in PureBasic?

Post by karmacomposer »

jassing wrote:Yes, you can create dll's -- it's very easy -- you declare a function/procedure as a dll exported function and then tell the compiler to compile to dll format. Done.
Thank you. Good. So creating virtual instruments is possible - maybe.

How about the other questions concerning gadgets (controls) and database?

Mike
Zach
Addict
Addict
Posts: 1678
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Can you compile to a .dll in PureBasic?

Post by Zach »

You can use any gadget that is natively accessible by the Operating System API (for the OS you are using)..
You can also use third party DLL's, if they provide Purebasic support, or if you can write a wrapper to use it in PB.
Keep in mind, the form designers pretty much use what they choose to put in and support. Most of use write our GUI's and event loops by hand, I think, because it is not very hard to do it in PB.. Some people use the designers to create basic skeletons which they modify and expand on by hand later, as well.

I am a ProGUI user, it is a third party GUI suite actively developed by PrincieD. He is doing exciting things with it and when it is a mature product it will probably be the best GUI set available for Purebasic (it still has a long way to go).. To be fair, he doesn't have a lot of Gadgets available right now, because he is developing a lot of the underlying support structure for things to come in the future (he's releasing an update soon that will add Direct2D rendering for the GUI elements, for instance).
You can visit his site at http://www.progui.co.uk

It's for Windows only (it may be cross-platform eventually, can't remember), but keep in mind any Gadget it doesn't have likely has a native Windows gadget that you can still use (sometimes it requires work-arounds, but usually it works just fine)

I think the initial investment, while kind of expensive, will pay off in the long run as it gets more mature (and the price might go up later!)

If you know how to make your own GUI gadgets (subclass and expand upon Native OS gadgets for instance) then you can make your own and use those too, I guess.. I'm sure there is a lot more work involved in that area though..

Your database questions are pretty much covered in the documentation.. PB has a database library that allows you to create and access several different DB types, SQlite being one of those.
Post Reply