[fpc-pascal]Problem with CASE statement
Peter Vreman
peter at freepascal.org
Wed Mar 24 10:23:05 CET 2004
> Hi,
>
> yes i know this re-typing word(xxx), it is OK.
>
> Second - new FPC v1.9.x for statement
>
> var p:pointer
> p:=Ptr(a,b);
>
> shows error "Incompatible types: got "FarPointer" expected "Pointer"".
>
> I found i can declare var p:farpointer;
> but i did not found any description for this type of pointer
> how can i use it.
Farpointer is to support mem[] and ptr(seg,offset)^ to access the real
mode memory. The type is incompatible with Pointer so you can't accidently
use Move() etc. You need the special functions from go32 to access the
real mode memory.
More information about the fpc-pascal
mailing list