Page 1 of 1
What is??
Posted: Thu Feb 08, 2007 6:07 pm
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
Posted: Thu Feb 08, 2007 6:16 pm
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.
Posted: Thu Feb 08, 2007 6:26 pm
by i.candide
Thank you. Enjoy the day. Earl
Posted: Thu Feb 08, 2007 6:28 pm
by Kaeru Gaman
you're welcome, Earl.
have a nice evening.
Kaeru
Posted: Fri Feb 09, 2007 1:07 am
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
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!

Posted: Fri Feb 09, 2007 10:13 am
by Kaeru Gaman
thanx srod.

I didn't look at it.... just assumed it's a Lib like PureCOLOR, too...
Posted: Fri Feb 09, 2007 11:41 am
by srod