Quote Originally Posted by savage
How are you compiling these demos? Are you using Delphi compatability mode? Which I believe is -Sd compiler directive.

Can you post what command line parameters you are using.
Hey, Im sorry Im not sure where to find the 'command line parameters' that Im using, because I never change those. ops:

I don't know if this is it, bt I had a look in the 'parsing' section of the 'compiler options' and there was indeed a box saying 'Delphi compatible(-Sd)', i ticked it but I still get an error on the same line.
The difference is that now it says:
Code:
lesson7.pas(136,54) Error: Unknown record field identifier "X"
Btw, "TextureImage" is defined as
Code:
TextureImage: PSDL_Surface;
and the latter is defined (in sdl.pas) as
Code:
PSDL_Surface = ^TSDL_Surface;
So does that mean there is no such thing as an x variable in the TSDL_Surface record?

----
Quote Originally Posted by JSoftware
@ would be my guess
Well, I had tried that before! haha
But I think @ is used to reference, and the problem Im having is that the variable is already a pointer! And the parameter needs to be a longint! so thats not it...

Thanks anyways