What is??

Everything else that doesn't fall into one of the other PB categories.
i.candide
User
User
Posts: 13
Joined: Tue Jan 02, 2007 1:43 pm
Location: Orange County, California, USA

What is??

Post by i.candide »

Good Morning,

I have read coders comments on EasyVENT and PureCOLOR. What are these? Will it make coding easier, faster, or do things not specifically addressed by PureBasic?

Enjoy the day,
Earl
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

Those are UserLibraries.
pre-compliled code that support additional commands.

PB consists of native libraries as there are the 2D-lib or the Sprite&Screen-lib,
that have seperate chapters in the PB help.

a UserLib is an additional library you can copy into your LIB-folder to use the additional commands within your code.

they will be compiled into your exe, so you dont need the lib to execute it.
that is the magnificent difference to a DLL, wich have to be released together with your exe.

to use UserLibs or not is a matter of taste.

for readers of your code it makes a difference, since they may not know the additional commands.
for users of your exe it makes no difference, since the code is compiled into your application.
oh... and have a nice day.
i.candide
User
User
Posts: 13
Joined: Tue Jan 02, 2007 1:43 pm
Location: Orange County, California, USA

Post by i.candide »

Thank you. Enjoy the day. Earl
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

you're welcome, Earl.
have a nice evening.
Kaeru
oh... and have a nice day.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Hi Earl,

just to add that EasyVENT is not quite a 'user library' in the Purebasic sense. It is a library in the sense that it can be used in your own projects to add functionality which is above and beyond that offered by Purebasic, but it comes in the form of a source code include file. This means that you can alter the library code directly if you wish as it remains open for you to use in any way you wish.
You can use the EasyVENT library by simply adding the command

Code: Select all

XIncludeFile "Easyvent.pbi"
to your own project.

Whether you prefer libraries in their original source code form or as a pre-compiled PB user library, is really a matter of individual preference. I personally prefer source code etc.

Just thought I'd throw this into the pot! :)
I may look like a mule, but I'm not a complete ass.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

thanx srod. :oops:
I didn't look at it.... just assumed it's a Lib like PureCOLOR, too...
oh... and have a nice day.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

:)
I may look like a mule, but I'm not a complete ass.
Post Reply