Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread Michael Van Canneyt
On Mon, 5 Oct 2009, Felipe Monteiro de Carvalho wrote: On Mon, Oct 5, 2009 at 3:24 PM, David Emerson wrote: Maybe you could do a sync operation or some such, to force changes to be written to disk. It would probably slow the system down, but you might be able to get it to work. Yes, but th

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread Martin Schreiber
On Monday 05 October 2009 15:44:55 Felipe Monteiro de Carvalho wrote: > > Is it possible to have 2 dataset objects sharing the same memory > database? Or else any ideas of how to solve this problem other then > constantly writing changes to the disk and reloading the read dataset? > tmsebufdataset

Re: [fpc-pascal] multiple inheritence

2009-10-05 Thread David Emerson
On Sat 3 Oct 2009, dmitry boyarintsev wrote: > t_double_list = class (t_list_frame) > private > flist1 : t_list_frame; > flist2 : t_list_frame; > function internal_add (const class_in : class_type) : boolean; > end; The idea behind my concept of t_double_list is that it is essentially one

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread Felipe Monteiro de Carvalho
On Mon, Oct 5, 2009 at 3:24 PM, David Emerson wrote: > Maybe you could do a sync operation or some such, to force changes to be > written to disk. It would probably slow the system down, but you might > be able to get it to work. Yes, but that's quite ineficient. I already have the data in memory

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread Luca Olivetti
En/na Felipe Monteiro de Carvalho ha escrit: The problem now is that the write doesn't go immediately to disk, so How so? If you're using a database server (or sqlite), any connection should see the modifications as soon as the transaction is committed (in fact the data or the journal shoul

Re: [fpc-pascal] Question about ror / rordword...

2009-10-05 Thread Michael Green
Makes perfect sense, thanks for the quick answer :-) Florian Klaempfl wrote: Ror/rol are very sensitive against data type changes so this ensures you get always the desired result. While x shr 1 has the same result if the value fits in x, ror(x,1) has different results if x is a byte, word or dw

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread David Emerson
On Mon 5 Oct 2009, Felipe Monteiro de Carvalho wrote: > The problem now is that the write doesn't go immediately to disk, so > when modifications are done this doesn't modify the displaying of data > which is based on the read dataset. Maybe you could do a sync operation or some such, to force cha

Re: [fpc-pascal] Question about ror / rordword...

2009-10-05 Thread Florian Klaempfl
Michael Green schrieb: > Quick question: Is there any particular reason why the system function > ror() (in /fpc/rtl/inc/systemh.inc) has been divided up into rorbyte, > rordword and rorqword (and respectively for rol() ) instead of being > overloaded? Ror/rol are very sensitive against data type

[fpc-pascal] Question about ror / rordword...

2009-10-05 Thread Michael Green
Quick question: Is there any particular reason why the system function ror() (in /fpc/rtl/inc/systemh.inc) has been divided up into rorbyte, rordword and rorqword (and respectively for rol() ) instead of being overloaded? ___ fpc-pascal maillist - f

Re: [fpc-pascal] Re: Support for C++ library format?

2009-10-05 Thread 章宏九
About C++ to C, you can see Sun developer's paper: Mixing C and C++ Code in the same program (http://developers.sun.com/solaris/articles/mixing.html). Very detailed and useful. 2009/10/5 Marco van de Voort : > In our previous episode, Gilles MARCOU said: >> I believe that using C++ objects directl

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread Michael Van Canneyt
On Mon, 5 Oct 2009, Felipe Monteiro de Carvalho wrote: Hello, I am having a dilema with a dataset based app. I have 2 dataset objects pointing to the same database file, one connected with data-aware controls to allow the user to change the data and the other one only for reading. I need 2 be

[fpc-pascal] Dataset modification and reading at the same time

2009-10-05 Thread Felipe Monteiro de Carvalho
Hello, I am having a dilema with a dataset based app. I have 2 dataset objects pointing to the same database file, one connected with data-aware controls to allow the user to change the data and the other one only for reading. I need 2 because I need to show data based on the database while modify

Re: [fpc-pascal] Re: Support for C++ library format?

2009-10-05 Thread Marco van de Voort
In our previous episode, Gilles MARCOU said: > I believe that using C++ objects directly is not very easy. I have found > some time ago this site about how to do this in Delphi. > > http://rvelthuis.de/articles/articles-cppobjs.html > However, Borland used to publish a C++ compiler at that time.

[fpc-pascal] Re: Support for C++ library format?

2009-10-05 Thread Gilles MARCOU
Hi, I believe that using C++ objects directly is not very easy. I have found some time ago this site about how to do this in Delphi. http://rvelthuis.de/articles/articles-cppobjs.html However, Borland used to publish a C++ compiler at that time. And I believe that this solution is compiler depen

Re: [fpc-pascal] TUN/TAP

2009-10-05 Thread Henry Vermaak
2009/10/3 Jorge Aldo G. de F. Junior : > Can anyone help me decypher the following code : > > int tun_alloc(char *dev) > { > struct ifreq ifr; First, you need to get a pascal definition of struct ifreq, so look in /usr/include/linux/if.h and translate it to pascal (or try and use h2pas).