Flype UserLibraries for PureBasic 4.0

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

First, in 'exbar.pbi' :

line 17: Global *ListExbar
line 62: FreeListEx(*ListBarEx)

*ListExbar <> *ListBarEx

Maybe the error comes from here, and somewhere else.

You should use 'EnableExplicit' to track all unconsistent vars.

try and tell me. :wink:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Frontier
User
User
Posts: 74
Joined: Thu Dec 22, 2005 2:43 pm
Location: Chios, Greece
Contact:

Post by Frontier »

Hello Flype,

Thank you very much for your extremely useful libraries :D

I have one question however: the SysTrayIconEx library is incompatible with Unicode executables in PB 4, therefore it does not display correctly the text (and title) within the balloon.

Is it possible to fix that somehow?
Dr. Dri
Enthusiast
Enthusiast
Posts: 243
Joined: Sat Aug 23, 2003 6:45 pm

Post by Dr. Dri »

Frontier wrote:Hello Flype,

Thank you very much for your extremely useful libraries :D

I have one question however: the SysTrayIconEx library is incompatible with Unicode executables in PB 4, therefore it does not display correctly the text (and title) within the balloon.

Is it possible to fix that somehow?
i have the same problem with my userlibs... if i compile the lib with unicode, then it won't work in a ascii program...

i didn't see anything in the sdk about that

Dri :(
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hum, you're right. i will see.
it might be resolved. it depends on tailbite and/or windows.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Dr. Dri wrote:i have the same problem with my userlibs... if i compile the lib with unicode, then it won't work in a ascii program...

i didn't see anything in the sdk about that

Dri :(
We all have the same unicode problem with our userlibraries. Thread-safe can be resolved with a subsystem (different library but with same functions), never tested this with unicode (not much use with Win9x).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

hum, you're right. i will see.
it might be resolved. it depends on tailbite and/or windows.
well, i tried but i didn't manage to make it work in unicode mode.
source code is provided so if someone can find how to resolve this problem. i tried many things without result. :oops:

sorry.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Dr. Dri
Enthusiast
Enthusiast
Posts: 243
Joined: Sat Aug 23, 2003 6:45 pm

Post by Dr. Dri »

gnozal wrote:We all have the same unicode problem with our userlibraries. Thread-safe can be resolved with a subsystem (different library but with same functions), never tested this with unicode (not much use with Win9x).
I know that but PB native libs work in either ascii and unicode mode... So we should be able to do so, right ? But i didn't find anything about that in the sdk.

Dri :(
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

*** NEW ***

SubSystem MySQL 5.1 for PB4.0 - BETA STAGE.

License :

It's a free and open-source mysql database userlibrary.
At the moment, in beta stage, all modifications, extensions, corrections, ideas should be posted/explained here for the interest of the purebasic communauty.

Image

This project comes from the PureBasic Summer Of Code - French Forum.

French forum Link :
http://purebasic.forum-gratuit.com/viewtopic.php?t=5075


At the moment, it is still not compiled (with tailbite).
So only sources are provided.

usage

1/ Open the 'database_test_xx.pb' files.
2/ Configure the line OpenDatabase(id, "localhost", "root", "pwd", ["dbname"])
3/ And run in debug mode.

Command set

Code: Select all

;-
;- Database.lib - Minimal Set
;-

ExamineDatabaseDrivers()   
NextDatabaseDriver()
DatabaseDriverName()
DatabaseDriverDescription()

InitDatabase()
DatabaseError()
IsDatabase(database.l)
CloseDatabase(database.l)

OpenDatabaseRequester(database.l)
OpenDatabase(database.l, host.s, user.s, passwd.s, db.s = "")

DatabaseColumns(database.l)
DatabaseColumnName(database.l, column.l)
DatabaseColumnType(database.l, column.l)

DatabaseQuery(database.l, query.s)
DatabaseUpdate(database.l, query.s)

PreviousDatabaseRow(database.l)
FirstDatabaseRow(database.l)
NextDatabaseRow(database.l)

GetDatabaseLong(database.l, column.l)
GetDatabaseQuad(database.l, column.l)
GetDatabaseFloat(database.l, column.l)
GetDatabaseDouble(database.l, column.l)
GetDatabaseString(database.l, column.l)

;-
;- Database.lib - Extended Set
;-

DatabaseRows(database.l)

DatabaseQueryString(database.l, query.s)
DatabaseQueryLong(database.l, query.s)
DatabaseQueryQuad(database.l, query.s)
DatabaseQueryFloat(database.l, query.s)
DatabaseQueryDouble(database.l, query.s)
DatabaseQueryDate(database.l, query.s)
DatabaseQueryFormatDate(database.l, query.s, mask.s)

GetDatabaseDate(database.l, column.l)
GetDatabaseFormatDate(database.l, column.l, mask.s)
GetDatabaseBinary(database.l, column.l, bAllocateMemory.l = #False)
GetDatabaseLength(database.l, column.l)

ExamineDatabaseProcesses(database.l)
NextDatabaseProcess(database.l)
DatabaseProcess(database.l, field.l)

ExamineDatabaseTables(database.l, wild.s = "")
NextDatabaseTable(database.l)
DatabaseTable(database.l)

ExamineDatabaseFields(database.l, table.s, wild.s = "")
NextDatabaseField(database.l)
DatabaseField(database.l)

DatabaseDbList(database.l, userList.s(), wild.s = "")
DatabaseTableList(database.l, userList.s(), wild.s = "")
DatabaseProcessList(database.l, userList.DATABASE_PROCESS())

Debug, Tests, Comments, Extends, Validating... are very welcome.


DOWNLOAD :

see the 'SubSystem MySQL 5.1 for PB4.0 !!! BETA !!!' in the 1rst post.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Exciting stuff! Thanks Flype.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Yes, isn't it... :D

Final objective is - once the model is validated - to do the same for PostGreSQL, SQLite, FireBird, And so on...
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

About the MySQL SubSystem, we need Bug trackers :twisted:

Image
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Post by blueb »

Flype...
Final objective is - once the model is validated - to do the same for PostGreSQL, SQLite, FireBird, And so on...
Yahoo! :)

I need all three. I just bought a book on PostgreSQL and I'd like to use it with Pure.

Regards,

blueb
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

blueb wrote:Flype...
Final objective is - once the model is validated - to do the same for PostGreSQL, SQLite, FireBird, And so on...
Yahoo! :)

I need all three. I just bought a book on PostgreSQL and I'd like to use it with Pure.

Regards,

blueb
do you use my postgreSQL wrapper or not ?
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Dr. Dri
Enthusiast
Enthusiast
Posts: 243
Joined: Sat Aug 23, 2003 6:45 pm

Post by Dr. Dri »

i just found that everything is in the library sdk readme for unicode stuff... the function only need a Unicode flag and a unicode version of the function.

Dri :oops:
User avatar
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Post by blueb »

Flype,

Yes, I just downloaded it and will play with it this week-end.

Thanks again,

--blueb
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Post Reply