Page 1 of 1 1
Topic Options
#139752 - 2005-05-16 07:55 PM KiXtart Binary - taking a new look at it
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
someone might remember me publishing that kixbin.dll some time ago and then it just vanished.
well, I started working on the project once again and thus decided to publish a semi-working (sure it works fine, but the functions are way too lame still) version of KiXtart Binary

obviously you need to register it with regsvr32 before use.
_________________________
!

download KiXnet

Top
#139753 - 2005-05-19 08:53 PM Re: KiXtart Binary - taking a new look at it
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
1.1
- writing not supported yet
- reading of other than strings only 1 element at a time (a.k.a, no safe-arrays yet)

hmm...
kixtart seems to report vartype = 17 wrong... or was it 16.
anyways, char is the proper vartype and kixtart claims it to be byte.
and for unicode char, kixtart reports integer.

ruud?
_________________________
!

download KiXnet

Top
#139754 - 2005-05-19 11:22 PM Re: KiXtart Binary - taking a new look at it
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Lonk,

Do you have this available?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#139755 - 2005-05-20 02:12 PM Re: KiXtart Binary - taking a new look at it
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is link above.
_________________________
!

download KiXnet

Top
#139756 - 2005-05-20 02:46 PM Re: KiXtart Binary - taking a new look at it
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doh! Do I need contacts? Thanks!
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#139757 - 2005-05-20 03:03 PM Re: KiXtart Binary - taking a new look at it
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I do have build 3 already that supports writing but there is slight issue.
thought that basic test could be to read bytes and writes bytes but with that method multibyte ansi textfile turned into a unicode like wide-multibyte ansi file.
so, something is screwing things up and it looks like the dispatch-interface itself is responsible.
_________________________
!

download KiXnet

Top
#139758 - 2005-05-22 07:11 PM Re: KiXtart Binary - taking a new look at it
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
KiXtart Binary 1.2 (build 3)
- added write support

the documentation is not up to date but the sample scripts and Typelib Viewer should reveal it all.
_________________________
!

download KiXnet

Top
#139759 - 2005-05-22 07:49 PM Re: KiXtart Binary - taking a new look at it
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
nice - nice docs too. How about providing methods to read/write values of a type, for example:

$Double = $File.ReadDouble($fh,1)

Or how about this - Have $FileSystem.Open return an object that is a "File", then just do the read/writes like this:

$File = $FileSystem.Open("x.bin")

$Double = $File.ReadDouble()

and maybe the record pointer can advance automatically by the size of a double.

-Shawn

Top
#139760 - 2005-05-22 08:05 PM Re: KiXtart Binary - taking a new look at it
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
they are there.
reading and writing specific types are optional args, like shown in the "_writer" sample.
it reads the whole file as single bytes (file type 17, iirc) and writes it to another file unaltered.
_________________________
!

download KiXnet

Top
#139761 - 2005-05-22 08:06 PM Re: KiXtart Binary - taking a new look at it
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and what comes to that readDouble notation...
it was there in the old builds but it bloated way too much the code, when on the other hand one can use the same Read() and Write() methods for all types.
_________________________
!

download KiXnet

Top
#139762 - 2005-05-23 09:45 AM KiXtart Binary - Extending the Extendable
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
just updated the docs that were way out for some of the oldest methods.
quess that partly explains shawn's little odd reply.
_________________________
!

download KiXnet

Top
#139763 - 2005-05-23 03:53 PM KiXtart Binary 1.2.1 - Extending the Extendable
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
KiXtart Binary 1.2.1 out.
just a little has changed.
- fixed a buggie boo in file.write(), hopefully
- added binary.changeVarType() method
_________________________
!

download KiXnet

Top
#139764 - 2005-05-28 01:44 AM Re: KiXtart Binary 1.2.1 - Extending the Extendable
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
as got my new dsl line finally, the addy is now:
http://personal.inet.fi/cool/jooel/kixbin/KiXtartBinary.zip
_________________________
!

download KiXnet

Top
#139765 - 2005-06-02 01:16 PM Re: KiXtart Binary 1.2.1 - Extending the Extendable
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
found the original thread for cRFC
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=119575
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.069 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org