thing. If you need something else, take that.
Bye, Holger.
(Programming experiences since 1973.)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
rom the selected
serial port? This is the part of the serial unit I am talking about:
function SerRead(Handle: TSerialHandle; var Buffer; Count: LongInt):
LongInt;
begin
Result := fpRead(Handle, Buffer, Count);
end;
I hope so far, you can help me out wi
orking sample code
to use this function in a working manner. In my example, serread replies
only, what has been written with serwrite right before. Not even
serflush, executed right after serwrite, can solve this problem to me.
Holger
___
fpc-pascal mail
Martin schrieb:
Holger Bruns wrote:
Jürgen Hestermann schrieb:
function SerRead(Handle: TSerialHandle; var Buffer; Count:
LongInt): LongInt;
begin
Result := fpRead(Handle, Buffer, Count);
end;
i don't understand the declaration for "buffer" in the function
below, bec
Jonas Maebe schrieb:
Holger Bruns wrote on Mon, 02 Nov 2009:
Martin schrieb:
you can do:
var buffer: Array of byte;
SetLength(Buffer, 1000);
SerRead(Handle, Buffer[0], 1000);
I checked this out. It works not reliable. Sometimes I get real data,
sometimes the data are corrupted. I have no
up. Embarassing.
Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Holger Bruns schrieb:
I try to implement a direct port access. If this also leads to access
errors, I should give it up. Embarassing.
Accessing ports is limited to ports < 03ffh, more ports cannot be
released with fpioperm. This means to me, successful serial port access
on higher addres
Florian Klaempfl schrieb:
Holger Bruns schrieb:
Holger Bruns schrieb:
I try to implement a direct port access. If this also leads to access
errors, I should give it up. Embarassing.
Accessing ports is limited to ports < 03ffh, more ports cannot be
released with fpioperm. T
Bernd Mueller schrieb:
Holger Bruns wrote:
Holger Bruns schrieb:
I try to implement a direct port access. If this also leads to
access errors, I should give it up. Embarassing.
Accessing ports is limited to ports < 03ffh, more ports cannot be
released with fpioperm. This means to
tried to use make, but make also
replies with error messages.
Regards, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
to get this working. Debugging source code,
which produces long lists of errors and warnings while compiling is a
time consuming piece of work. Is there an alternative out there?
Regards, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
, I can move on.
Best regards, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Jonas Maebe schrieb:
Holger Bruns wrote on Tue, 03 Nov 2009:
I decided to copy all the necessary files for x86.pp and oldlinux.pp
into one directory for compiling these two units. This compilation
failed due to syntax errors. A bunch of warnings also appeared. I
post only the syntax error
pointers are new to me. Therefore I
felt in trouble with it. Secondly, it appears to be necessary to use the
fpc compiler as "root", not simply as a user, I guess.
Best regards, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepasca
ar with it. Todays pascal is far more advanced than turbo pascal
from Borland or UCSD pascal on the old Apple II, and now I have to learn
pascal just as a programming language, which I would see the first time
in my life.
Holger
___
fpc-pascal mailli
ccessfully with serial ports on linux.
ps: Excuse my english. Helping you is very hard: you don't listen.
On a mailing list, I can only read and write. ;-)
Best regards, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://
/dev/ttyS0
on linux. My question is, what do I grab while reading from a device
driver file like /dev/ttyS0? How can I deal with it?
Best regards, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman
ten functions on serial ports are working now.
Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I use it
successfuily. If you feel bothered because I want to write data into
registers of peripheral devices on my personal computer at home, I
cannot find an answer to it. I need to accept your personal point of
view as it is. There is nothing more, which I can do for you.
Holger
Hi,
while writing some Pascal code, I am still looking for a debugger, which
works like the turbo debugger, in a similar way. I would love it to get
a clue.
Best regards, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http
Michael Van Canneyt schrieb:
In reality it's always the FPC team that is f*d when an
incompatibility arises.
I refuse to use Borland again. I have their Delphi and the manuals as
well on my cupboard, but since I saw Lazarus und fpc the first time, I
decided to move on.
H
Hi,
I am currently running the fpc in version 2.2.2-8, and I have some
problems to get iopl and fpiopl working. It seems, the units oldlinux
and x86 are not available to this version. How can I solve this problem?
Cheers, Holger
___
fpc-pascal
:= serread(inhandle, inbuffer[0], 1);
recdata := inbuffer[0]
end;
I repeat this function as long as I need to read data from a serial
port, byte by byte. One interesting error occurs at the 52478th byte:
serread returns 0 instead of 1. How can I get it work properly?
Best regards, Holger
Brad Campbell schrieb:
Holger Bruns wrote:
Hi,
one more question regarding the unit serial. I use the following
function to get one single byte form a serial port, which has been
open before with seropen:
function getdata(inhandle: tserialhandle; var recdata: char): longint;
begin
fillchar
language. The second idea I have is the use of the device
files /dev/ttySx, but how can these files be used to get access to all
of the registers of an uart?
Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
Jonas Maebe schrieb:
On 19 Nov 2009, at 14:30, Holger Bruns wrote:
Since iopl is still not available to fpc in its 64-bit-version, I
should move to c for future port programming.
$ man iopl
...
This call is mostly for the i386 architecture. On many other
architec-
tures it
Turbo Pascal and fpc reported the same error
massage: Variable identifier expected. You simply cannot pass constant
values by reference.
HTH, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
://lists.freepascal.org/mailman/listinfo/fpc-pascal
Gedit, also geany. Works fine with fpc.
HTH, Holger
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
cause I am not logged in
as a root user? How can I solve this?
2. If there is no solution, can I run the windows version of FreePascal with
WINE and compile the programs for Linux (crosscompiling)? If yes, how can I
do this?
Thanks for your awnsers.
Holger
--
+++ GMX - Mail, Messaging &a
because I am not logged in as a root user? How can I solve this?
2. If there is no solution, can I run the windows version of FreePascal
with WINE and compile the programs for Linux (crosscompiling)? If yes,
how can I do this?
Thanks for your awnser
s working? (or is there any
other Unit that allows the use of a PutPixel function in an easy way?
A special GTK Graphic Widget was good, too.)
Thanks,
Holger
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
_
Hi,
are there any alternatives?
I think of a simple Graphic Unit, or a Widget for GTK with some simple
drawing functions. I'm satisfied with a simple PutPixel procedure.
Holger
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepasca
ight (I'm searching still the mistake).
I think I've found now a Unit which is good enough, SDL4FreePascal.
Thanks for your help,
Holger
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
freepascal.org.
Should I work through it from the beginning to the end?
Or are there any other suggestions?
Ciao,
Holger
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hi,
it is not a great important bug, but it could be solved. In Linux, I
discovered that FPC did not remark when I passed a folder as a source
file, it halted with an error.
Holger
PS: Excuse my bad English, but the day was long *g*
___
fpc
Hi,
I have used SDL4FreePascal for some time. Simplysearch it with google.
It worked fine with FPC 1.0.6 under Windows, I have not used it under
Linux, but I guess it is about the same.
Please notice that libsdl is not ported completely.
Holger
Marco van de Voort schrieb:
Are there any
hi,
I'm writing an GTK+ Programm with FPC, and I'd like to print a GdkPixmap
out (on paper, not on screen). Since GTK+ does not provide a printing
interface I'd like to know if there is a plattformindependend (Windows
and Linux) interface available
Hi,
if you are successful, I would be glad to receive the ported Header
files and a small example.
Holger
James Mills schrieb:
Hi,
I can successully compile and test the plugin source listed at
http://xchat.org/docs/plugin20.html written in C.
However I don't like C much and am wonderi
Hi,
I used SDL4FreePascal under Windows with FreePascal 1.0.6 and it worked
fine. Now, I use RedHat 9.0 with FreePascal 1.0.10 and SDL4FreePascal
doesn't work.
When I compile the demos, I get the runtime error 216 at the first
SDLcommand.
Is there a solution?
H
Holger Peters schrieb:
Hi,
I used SDL4FreePascal under Windows with FreePascal 1.0.6 and it
worked fine. Now, I use RedHat 9.0 with FreePascal 1.0.10 and
SDL4FreePascal doesn't work.
When I compile the demos, I get the runtime error 216 at the first
SDLcommand.
Is there a solution?
H
orked with intuitive systems, it
is a bit work to get familiar with it.
Gdb is a console-based debugger.
Holger
(If you've got troubles with vim, mail me)
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Is this a bug or is the mistake on my side?
cu,
Holger
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
iling main3.pp
Panic : Internal compiler error, exiting.
main3.pp(22) Fatal: Internal error
PS: Line 22 is the last line of the file.
Is this a bug or is the mistake on my side?
cu,
Holger
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.fr
Hi,
thank you, a really stupid mistake from me, but it is still not working
when I compile it with fpc main3.pp -gd .
Holger
Michael Van Canneyt schrieb:
On Tue, 20 Jan 2004, Holger Peters wrote:
Hi,
I tried to compile this program:
{$MODE OBJFPC}
program
DomTest3;
uses
DOM
Hi,
is there any ptop.cfg sample file which uses a more delphi like style
than the one which comes with FPC?
Holger
___
fpc-pascal maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hi.
I write my programs in Free Pascal on NotePad, and I don't like to use Lazarus. Is there any possibility to use fpGUI, or doesn't it work without Lazarus?
Holger.
___
fpc-pascal maillist - fpc-pascal@lists.freepasca
46 matches
Mail list logo