RE: [fpc-pascal]Problem with CASE statement

2004-03-23 Thread Lubomir . Cabla
Thanks. Yes, you're right but i'm using this constants for backward compatibility with Borland Pascal. The problem is in declarations of constant: const xxx = $4400; yyy = $11; SizeOf(xxx) = 2 in FPC 1.0.10 4 in FPC 1.9.x SizeOf(yyy) = 1 in FPC 1.0.10

[fpc-pascal]RE: GTK accelerator handling

2004-03-23 Thread Jeff Pohlmeyer
> I tried to use gtk_window_remove_accel_group(...) but it is not > found by fpc (gtk has it, I've got the name from its docs). > Is is possible in a simple way to get the missing procedure working? Just add this declaration somewhere in your program: procedure gtk_window_remove_accel_group(win

Re: [fpc-pascal]Creating database with SQLiteDataset

2004-03-23 Thread Michael . VanCanneyt
On Tue, 23 Mar 2004, Milos Pejovic wrote: > Michael Van Canneyt wrote: > > >On Mon, 22 Mar 2004, Milos Pejovic wrote: > > > > > > > >>Hi all, > >> > >>I was trying to adapt TDbf table creation demo to SQLiteDataset, but I > >>get this error: > >> > >>An unhandled exception occurred at 0x08055

Re: [fpc-pascal]Creating database with SQLiteDataset

2004-03-23 Thread Milos Pejovic
Michael Van Canneyt wrote: On Mon, 22 Mar 2004, Milos Pejovic wrote: Hi all, I was trying to adapt TDbf table creation demo to SQLiteDataset, but I get this error: An unhandled exception occurred at 0x080557E4 : EDatabaseError : : Dataset is read-only. 0x080557E4 0x0050 I have no idea

Re: [fpc-pascal]Problem with CASE statement

2004-03-23 Thread Matt Emson
> In go32v2 i got a problem with case statement. > With compiler 1.0.10 is this without errors: > > const kbDown = $5000; > kbUp = $4800; > var ch : char; > begin > ch:=ReadKey; > case ord(ch) of > Hi(kbDown): writeln('kbDown'); > Hi(kbUp) : writeln('kbUp'); > end; > end. D

[fpc-pascal]Call DLL in Pascal DOS program

2004-03-23 Thread Christophe Fantoni
Hello people, Since few months, I work on a burning engine for CD/DVD, coded entierely in Pascal. It's really the first burning engine in full Pascal, compiled perfectly in Borland Pascal 7.0 and partialy with FreePascal 1.0.10 (some problems with the DPMI support). My goal is to make a burning en

[fpc-pascal]GTK accelerator handling

2004-03-23 Thread Marc Santhoff
Hi! While using GTK to attach acelerator keys to buttons I came acros this situation: - There are accels overlapping (one notebook tab F1..F4, other F1..F7) - I tried to use gtk_window_remove_accel_group(...) but it is not found by fpc (gtk has it, I've got the name from its docs). My questions

[fpc-pascal]Problem with CASE statement

2004-03-23 Thread Lubomir . Cabla
In go32v2 i got a problem with case statement. With compiler 1.0.10 is this without errors: const kbDown = $5000; kbUp = $4800; var ch : char; begin ch:=ReadKey; case ord(ch) of Hi(kbDown): writeln('kbDown'); Hi(kbUp) : writeln('kbUp'); end; end. New FPC compiler 1.9.3 prod

Re: [fpc-pascal]Call DLL in Pascal DOS program

2004-03-23 Thread Peter Vreman
> very complete to understand the bases. But to make that, I search more > documentation about the EXE generated by the GO32V1 / GO32V2. go32v2 is called djgpp. go32v1 is deprecated. > Have your more documentations ? Any volunteer to help me ? > Or maybe, have you another solution to use DLL fil

Re: [fpc-pascal]high performance counter for dos/tp7

2004-03-23 Thread Sigurd Stordal
On Monday 22 March 2004 12:47, Thomas Schatzl wrote: > Hello, > > > But ehm... it seems your website is locked... unable to view/download > > code etc :) > > > > I thought I'd let you know just in case you forgot to unlock it =D > > No, this is a public website and I checked the URL I gave you, it

[fpc-pascal]Call DLL in Pascal DOS program

2004-03-23 Thread Christophe Fantoni
Hello people,   Since few months, I work on a burning engine for CD/DVD, coded entierely in Pascal. It's really the first burning engine in full Pascal, compiled perfectly in Borland Pascal 7.0 and partialy with FreePascal 1.0.10 (some problems with the DPMI support). My goal is to make a bu