Congrats Martin, MSEide+MSEgui is getting better every day.
Julio
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I have written this function where I use serwrite (unit serial).
If I call
serial.serwrite(prn,pchar(f.bufptr),f.bufPos);
like this, it puts out garbage.
How do I trick the compiler not to "convert a pointer to a pointer"?
This works.
Function rs232DeviceInout(var f:textRec):integer32;
Var
> I have written this function where I use serwrite (unit serial).
> If I call
>
> serial.serwrite(prn,pchar(f.bufptr),f.bufPos);
>
> like this, it puts out garbage.
That's odd. It is supposed to write "bufpos" bytes, the first 4 (or 8 on
64-bit) are the exact values of the pointer (p.bufptr
Hi,
Is there a way to define const members for a class, as for example in
TClass = class
public
const i : integer;// and hopping to be able to set it within
the constructor…
end;
?
Thank you in advance
___
fpc-pasc
> Is there a way to define const members for a class, as for example in
>
> TClass = class
> public
>const i : integer;// and hopping to be able to set it within
> the constructor?
It's already there
taclass = class
fi:integer;
public
Thanks a lot for the prompt response. I 'm a total novice in Object
Pascal. I will have a look to the classes' properties…
Marco van de Voort wrote:
Is there a way to define const members for a class, as for example in
TClass = class
public
const i : integer;// and hopping to b
> Thanks a lot for the prompt response. I 'm a total novice in Object
> Pascal. I will have a look to the classes' properties?
Yes. Properties can be read-only. Moreover, it is Delphi and FPC compat in
all recent, and even not so recent versions.
___
Can't find examples for socket programming besides
http://www.bastisoft.de/pascal/pasinet.html
Does anyone knows of any other samples/links?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-p