1. RE: Problem with BZip2 library
- Posted by cheetah_heels at myrealbox.com Oct 15, 2003
- 424 views
Greg, Thanks!! This works beautifully. Maybe you could post it to the = Archive... Andrew Hall -----Original Message----- From: Greg Haberek [mailto:g.haberek at comcast.net]=20 Subject: Re: Problem with BZip2 library Attached is a re-write I did of this library, its written in english and doesn't rely on any extra libraries, like Aku's does. The bzip2 dll file = is still required. Try using this, it may work better for you. =A0 (this is pulled from the file:) -- available functions: -- --=A0[func]=A0bzlibVersion() --=A0[func]=A0bzopen(sequence fname, sequence mode) --=A0[func]=A0bzread(atom fn, integer len) --=A0[func]=A0bzwrite(atom fn, sequence buffer) --=A0[func]=A0bzflush(atom fn) --=A0[proc]=A0bzclose(atom fn) --=A0[func]=A0bzerror(atom fn, integer errnum) --=A0[func]=A0bzgetc(atom fn) --=A0[func]=A0bzgetx(atom fn, integer bytes) --=A0[proc]=A0bzputs(atom fn, sequence s) =A0 =A0 ----- Original Message -----=20 From: cheetah_heels at myrealbox.com=20 To: EUforum=20 Sent: Monday, October 13, 2003 12:28 AM Subject: Aku: Problem with BZip2 library Aku (or anyone else who can help): =A0 I=92m having trouble getting your BZ2 library working with Eu 2.4.=A0 = I=92m still a beginner, so I don=92t quite understand the problem, but here=92s the = ex.err: =A0 -----------------------------ex.err----------------------------- C:\Program Files\Euphoria\include\dll.e:54 in function define_c_func()=20 Invalid return type=20 =A0=A0=A0 lib =3D 268435456 =A0=A0=A0 routine_name =3D {66'B',90'Z',50'2',95'_',98'b',122'z',108'l',105'i',98'b', 86'V',101'e',114'r',115's',105'i',111'o',110'n'} =A0=A0=A0 arg_sizes =3D {} =A0=A0=A0 return_type =3D 268369921 =A0 ... called from C:\Documents and Settings\LeakTrac Software\Desktop\dlla.e:32 in procedure funcbaru()=A0=20 =A0=A0=A0 fildll =3D {98'b',122'z',50'2'} =A0=A0=A0 namafunc =3D = {66'B',90'Z',50'2',95'_',98'b',122'z',108'l',105'i',98'b', 86'V',101'e',114'r',115's',105'i',111'o',110'n'} =A0=A0=A0 partype =3D {} =A0=A0=A0 parbalik =3D 268369921 =A0=A0=A0 dll_pfil =3D 268435456 =A0=A0=A0 dll_ri =3D <no value> =A0 ... called from C:\Documents and Settings\LeakTrac Software\Desktop\bz2.e:171=20 =A0 Global & Local Variables =A0 =A0C:\Program Files\Euphoria\include\misc.e: =A0=A0=A0 pretty_end_col =3D <no value> =A0=A0=A0 pretty_chars =3D <no value> =A0=A0=A0 pretty_start_col =3D <no value> =A0=A0=A0 pretty_level =3D <no value> =A0=A0=A0 pretty_file =3D <no value> =A0=A0=A0 pretty_ascii =3D <no value> =A0=A0=A0 pretty_indent =3D <no value> =A0=A0=A0 pretty_ascii_min =3D <no value> =A0=A0=A0 pretty_ascii_max =3D <no value> =A0=A0=A0 pretty_fp_format =3D <no value> =A0=A0=A0 pretty_int_format =3D <no value> =A0=A0=A0 pretty_line =3D <no value> =A0 =A0C:\Program Files\Euphoria\include\file.e: =A0=A0=A0 SLASH =3D 92'\' =A0=A0=A0 my_dir =3D -2 =A0 =A0C:\Program Files\Euphoria\include\machine.e: =A0=A0=A0 mem =3D 660992 =A0=A0=A0 check_calls =3D 1 =A0 =A0C:\Program Files\Euphoria\include\get.e: =A0=A0=A0 input_file =3D <no value> =A0=A0=A0 input_string =3D <no value> =A0=A0=A0 string_next =3D <no value> =A0=A0=A0 ch =3D <no value> =A0 =A0C:\Program Files\Euphoria\include\database.e: =A0=A0=A0 current_db =3D -1 =A0=A0=A0 current_table =3D -1 =A0=A0=A0 db_names =3D {} =A0=A0=A0 db_file_nums =3D {} =A0=A0=A0 db_lock_methods =3D {} =A0=A0=A0 current_lock =3D <no value> =A0=A0=A0 key_pointers =3D <no value> =A0=A0=A0 db_fatal_id =3D 0 =A0=A0=A0 mem0 =3D 661040 =A0=A0 =A0mem1 =3D 661041 =A0=A0=A0 mem2 =3D 661042 =A0=A0=A0 mem3 =3D 661043 =A0=A0=A0 memseq =3D {661040,4} =A0 =A0C:\Program Files\Euphoria\include\msgbox.e: =A0=A0=A0 lib =3D 2010382336 =A0=A0=A0 msgbox_id =3D 0 =A0=A0=A0 get_active_id =3D 1 =A0 =A0C:\Documents and Settings\LeakTrac Software\Desktop\bz2.e: =A0=A0=A0 BLUE =3D 1 =A0=A0=A0 CYAN =3D 3 =A0=A0=A0 RED =3D 4 =A0=A0=A0 BROWN =3D 6 =A0=A0=A0 BRIGHT_BLUE =3D 9 =A0=A0=A0 BRIGHT_CYAN =3D 11 =A0=A0=A0 BRIGHT_RED =3D 12 =A0=A0=A0 YELLOW =3D 14 =A0=A0=A0 input_file =3D <no value> =A0=A0=A0 input_string =3D <no value> =A0=A0=A0 string_next =3D <no value> =A0=A0=A0 ch =3D <no value> =A0=A0=A0 check_calls =3D 1 =A0=A0=A0 SLASH =3D 92'\' =A0=A0=A0 my_dir =3D -2 =A0=A0=A0 tp =3D <no value> =A0=A0=A0 tp2 =3D <no value> =A0=A0=A0 pppath =3D 92'\' =A0=A0=A0 hapuscon_kernel32 =3D 2011561984 =A0=A0=A0 hapuscon_freeconsole =3D 2 =A0=A0=A0 hapuscon_tp =3D 0 =A0=A0=A0 euob_hasil =3D 0 =A0=A0=A0 aku_getval_tp =3D <no value> =A0 =A0C:\Documents and Settings\LeakTrac Software\Desktop\machine2.e: =A0=A0=A0 ppi =3D 647696 =A0 =A0C:\Documents and Settings\LeakTrac Software\Desktop\dlla.e: =A0=A0=A0 daftardllterdeklarasi =3D {} =A0=A0=A0 rib_dll =3D -1 =A0=A0=A0 dllbalik =3D <no value> ---------------------------end ex.err---------------------------- =A0 Can you help?=A0 Thanks in advance! =A0 Andrew Hall =A0 --^^--------------------------------------------------------------- This email was sent to: cheetah_heels at myrealbox.com TOPICA - Start your own email discussion group. FREE!