Re: [fpc-pascal]file or fileexists?
This is the code. Assign(arq_s,'matriculas.arq'); if (not FileExists('matriculas.arq')) then Rewrite(arq_s) else Append(arq_s); write(arq_s,reg_matricula); Close(arq_s); Which unit is FileExists() in? Do I have to add some unit to have it working? Edvaldo Almeida [EMAIL PROTECTED] [EMAIL PROTECTED] Em Seg, 2004-01-05 às 10:14, Peter Vreman escreveu: > I've been trying to use the function file() to detect if a certain file > is in the current path, but i've been receiving an error message. > > What is the correct funtion? I've already used fileexists(), but it's > not correct also. Please post the code you used. FileExists() does not print an error message. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]file or fileexists?
Edvaldo Almeida wrote ---8<--- > Which unit is FileExists() in? Do I have to add some unit to have it > working? --->8--- in sysutils. __ Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]udp file transfer
Hi all!, I'm working on a file transfer application for my company. It will be a small win32 app that will transfer (huge) mpeg files through a satelite link. Since the latency is high, i'm planning to use UDP. Any code/units/pointers highly appreciated. cheers, -Krish ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]udp file transfer
> I'm working on a file transfer application for my company. It will be a > small win32 app that will transfer (huge) mpeg files through a satelite > link. Since the latency is high, i'm planning to use UDP. > > Any code/units/pointers highly appreciated. If you use a FPC 1.9.x version (if not: consider it), see ICS. (www.overbyte.be for docs) A shadow ICS lib has been entered into the CVS, directory projects/contrib/ics ICS is windows only for now. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal]date not 1903
Hi! I use StrToDate to read a date. When the string is e.g. '2-12-03', fpc will read the date 02-12-1903. Is there a way, to tell fpc, I want the year 2003 and not 1903 (without changing the string)? I use fpc 1.0.10 under Linux. Thanks for hints, RUDOLF -- Rudolf Harney __ Nachrichten, Musik und Spiele schnell und einfach per Quickstart im WEB.DE Screensaver - Gratis downloaden: http://screensaver.web.de/?mc=021110 ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]udp file transfer
> > I'm working on a file transfer application for my company. It will be a > > small win32 app that will transfer (huge) mpeg files through a satelite > > link. Since the latency is high, i'm planning to use UDP. > > > > Any code/units/pointers highly appreciated. > > If you use a FPC 1.9.x version (if not: consider it), see ICS. (www.overbyte.be for > docs) > > A shadow ICS lib has been entered into the CVS, directory projects/contrib/ics > > ICS is windows only for now. That should not be a problem. Is the CVS thing a port of the original ? (the one u mentioned in #fpc ?) coz, I dont see FPC mentioned at http://www.overbyte.be . As for the GUI, is Lazarus ready on win32 ? I need a form with a few input fields + button + file chooser . cheers, -Krish > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]udp file transfer
sorry for a silly Q, > A shadow ICS lib has been entered into the CVS, directory projects/contrib/ics I just did a "cvd -z3 update -dP" to the current fpc tree but I did not find any contrib dir in the tree. where exactly is this ? cheers, -Krish ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]udp file transfer
> > > I'm working on a file transfer application for my company. It will be a > > > small win32 app that will transfer (huge) mpeg files through a satelite > > > link. Since the latency is high, i'm planning to use UDP. > > > > > > Any code/units/pointers highly appreciated. > > > > If you use a FPC 1.9.x version (if not: consider it), see ICS. (www.overbyte.be > > for > > docs) > > > > A shadow ICS lib has been entered into the CVS, directory projects/contrib/ics > > > > ICS is windows only for now. > That should not be a problem. Is the CVS thing a port of the original ? Yes. > (the one u mentioned in #fpc ?) Yes. > coz, I dont see FPC mentioned at http://www.overbyte.be . > Patches were accepted, but Francois hasn't made a new demo since I did the port. This is very inconvenient for me, since I'm not allowed to publish some of his later additions. The port is fairly trivial though, see http://www.stack.nl/~marcov/ics.html for some of my notes. Note that the port covers the non visual parts only. > As for the GUI, is Lazarus ready on win32 ? > I need a form with a few input fields + button + file chooser . That should afaik be possible, but better ask on the lazarus list. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]udp file transfer
> sorry for a silly Q, > > > A shadow ICS lib has been entered into the CVS, directory projects/contrib/ics > > I just did a "cvd -z3 update -dP" to the current fpc tree but I did not find any > contrib dir in the tree. where exactly is this ? It's not the fpc/ tree, but the projects tree (the one that among others contains lazarus) so cvs -z3 co projects, or if you have lowbandwidth and space cvs -z3 co projects/contrib or even cvs -z3 co projects/contrib/ics If you can spare the bandwidth I suggest you at least check out projects/contrib/ the contrib/winapi directory contains some nice winapi headers (Jedi, Marcel van Brakel) ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]udp file transfer
> > A shadow ICS lib has been entered into the CVS, directory projects/contrib/ics > > I just did a "cvd -z3 update -dP" to the current fpc tree but I did not find any > contrib dir in the tree. where exactly is this ? ok. I found it. plz. ignore my previous msg. cheers, -Krish ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]file or fileexists?
Thank you. Edvaldo Em Ter, 2004-01-06 às 08:33, Rudolf Harney escreveu: Edvaldo Almeida wrote ---8<--- > Which unit is FileExists() in? Do I have to add some unit to have it > working? --->8--- in sysutils. __ Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]udp file transfer
> > sorry for a silly Q, > > > > > A shadow ICS lib has been entered into the CVS, directory projects/contrib/ics > > > > I just did a "cvd -z3 update -dP" to the current fpc tree but I did not find any > > contrib dir in the tree. where exactly is this ? > > It's not the fpc/ tree, but the projects tree (the one that among others contains > lazarus) > > so > > cvs -z3 co projects, > > or if you have lowbandwidth and space > > cvs -z3 co projects/contrib > > or even > > cvs -z3 co projects/contrib/ics > > > If you can spare the bandwidth I suggest you at least check out projects/contrib/ > > the contrib/winapi directory contains some nice winapi headers (Jedi, Marcel van > Brakel) > done. thx for the quick and useful info. cheers, -Krish ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal