Progi1984 - Programs & Userlibs

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Progi1984 - Programs & Userlibs

Post by Progi1984 »

A list of my prods in an alone thread :

Wrappers
GoogleCode : RWrappers

Code: Select all

Collection of all RWrappers.
__________________________________________________________________________________________________________________
Userlibs
RImage_4_10.zip
Image
Size : 99Ko

Code: Select all

Functions which allows you to extract some informations about images like BMP and JPeG
_______________________

RPack.zip
Image
Size : 72Ko

Code: Select all

Management of TAR Files
_______________________

RTask_4_10.zip
Image
Size : 60Ko

Code: Select all

Easy management of Windows Tasks (Windows only)
_______________________

RVersion_4_10.zip
Image
Size : 43Ko

Code: Select all

Permits to get the version or the licence key of an installed software
_______________________

REventLog_4_10.zip
Image
Size : 85Ko

Code: Select all

Permits you to read and write in the Windows EventLog.
_______________________

RLibPlus.zip
Image
Size : 360Ko

Code: Select all

The old name for this userlib is LibEditorPlus. This userlib has been upgraded et is applied in others gadgets.
_______________________

RCam_0.1_V4.10.zip
Image
Size : 34Ko

Code: Select all

Permits you to use webcams
__________________________________________________________________________________________________________________

RJSON.zip
Image
Size : 20Ko

Code: Select all

Permits you to parse your JSON tree files in a PB XML Tree
__________________________________________________________________________________________________________________


Applications
ProgiRVB_1.0.zip
Image
Size : 99Ko

Code: Select all

Software for color conversion
_______________________
Last edited by Progi1984 on Sun Sep 07, 2008 10:26 pm, edited 11 times in total.
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

Release of some userlibs (Compiled for 4.10 Beta 2):

Wrapper SQLite->DB_SQLite_0_1.zip
Image

Code: Select all

Functions of the library Database but for SQLite
RImage->RImage_4_10.zip
Image

Code: Select all

Functions which allows you to extract some informations about images like BMP and JPeG
RPack->RPack_4_10.zip
Image

Code: Select all

Mamagement of TAR Files
RTask->RTask_4_10.zip
Image

Code: Select all

Easy management of Windows Tasks (Windows only)
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Post by Sveinung »

Can't get your Rpack lib to work. :oops:
BTW all your constants return 0 (debug #RPack_Type_Tar)

Regards
Sveinung
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

OK...

Have you the RPack userlib in the directory PureLibraries\UserLibraries\ ?
Have you the RPack_Res.res in the directory Residents\ ?
Have you restart your PB compiler ?
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Post by Sveinung »

Sorry! I missunderstod the doc. My misstake

Sveinung
User avatar
Sveinung
Enthusiast
Enthusiast
Posts: 142
Joined: Tue Oct 07, 2003 11:03 am
Location: Bergen, Norway

Post by Sveinung »

And thank you for the lib :D

Sveinung
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

@Sveinung : so, i must explain better the installation of my differents lib... :)

Thank you for using it :)
And at the beginning of august, some others news :)
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Great stuff. Love the SQLite work.. Thank you!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Any chance of a Unicode version of this SQLite lib?

I have some NULL values in int fields and such, and this code crashes with "invalid memory" :

Code: Select all

ProcedureDLL.l SQLite_GetDatabaseLong(database.l, Column.l)
  
	Protected *self.S_SQLite_Object = DATABASE_ID(database) 
  
  If *self
	  
    Address = *self\Result_Handle
	  AddrInc = *self\Result_Cols * 4 
	  
    If Column > *self\Result_Cols - 1
	  	Column = *self\Result_Cols -1
	  EndIf
    
	  If Column < 0
	  	Column = 0
	  EndIf
  	
    For Row.l  = 0 To *self\Result_Pos
			Address  + AddrInc
    Next
      
    ProcedureReturn Val(PeekS(PeekL(Address + Column  * 4)))
      
  EndIf
  
EndProcedure
I can understand why, too, since for NULL values there would be no value at the memory address specified.

Also, what's up with the peekl, peeks, then val()? Unicode related?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

The trick is to use MemoryStringLength in SQLite_GetDatabaseLong to test for a string of zero length before returning. That way you can handle NULLs in number columns.

Code: Select all

ProcedureDLL.l SQLite_GetDatabaseLong(database.l, Column.l)
  
	Protected *self.S_SQLite_Object = DATABASE_ID(database) 
  
  If *self
	  
    Address = *self\Result_Handle
	  AddrInc = *self\Result_Cols * 4 
	  
    If Column > *self\Result_Cols - 1
	  	Column = *self\Result_Cols -1
	  EndIf
    
	  If Column < 0
	  	Column = 0
	  EndIf
  	
    For Row.l  = 0 To *self\Result_Pos
			Address  + AddrInc
    Next
    
    peaked_long.l = PeekL(Address + Column  * 4)
    
    mem_length.l = MemoryStringLength(peaked_long)
    
    If mem_length > 0
     
      peaked_string.s = PeekS(peaked_long)
     
      val_peaked.l = Val(peaked_string)
    
      ProcedureReturn val_peaked
    
    Else
    
      ProcedureReturn 0
    
    EndIf
   
  EndIf
  
EndProcedure
Same with the Float returning functions, too.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

Sorry but I have two weeks of holidays....

And i 'm going to have at home Internet ...

So in a week, I work on it to release (if I arrive to do that) a Unicode version :)
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

If you have anything started or any ideas as to what needs to be done please share them as I've already gotten started but admit I'm clueless about Unicode!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

Release of September 2007

Wrapper SQLite->DB_SQLite_0_2.zip
Image
Taille : 183Ko

Code: Select all

Description : Functions of the library Database but for SQLite (with support Unicode)
_______________________

ProgiRVB->ProgiRVB_1.0.zip
Image
Taille : 99Ko

Code: Select all

Software for color conversion
_______________________

Wrapper : HaruPDF->RWHaruPDF_2.0.8.zip
Image
Taille : 979Ko

Code: Select all

Wrapper for HaruPDF ( http://libharu.sourceforge.net/ )
_______________________

Wrapper : ISL->RWISL_2.5.zip
Image
Taille : 198Ko

Code: Select all

Wrapper for ISL (Images Style Library) ( http://www.paurex.com/?products&prod=isl )
_______________________

Wrapper : SDL->RWSDL_1.2.11.zip
Image
Taille : 1619Ko

Code: Select all

Wrapper for SDL ( http://www.sdl.org )
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

nice progi1984, seems good.
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
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Very good work, Progi1984.
You are restless. :D
Post Reply