To give a better picture of my problem:
Type
tQSDL_Surface
= Class (SomeClass)
Protected
fFlags : UInt32; {LongWord}
Function GetFlag(aBit: UInt32): Boolean;
Function SetFlag(aBig: UInt32; aBool: Boolean);
Public
Constructor Create();
Des
I appreciate the help but I'm not sure if you understand what it is I'm
trying to do.
SetFlag() and GetFlag() do binary operations on the flags controling an
SDL Surface.
Passing the BitMask to the GetFlag() will return weither or not the bit
is on in the flags variable.
Passing the BitMask and
Ran into a problem of where I'm not sure how the code will work once I'm
finished and I'd rather not write all this if its not going to work:
I want to provide access to Bit-Flags that control a class of mine:
ig:
Property SWSurface : Boolean Index SDL_SWSurface
Read GetFlags Write SetFlags;
I
Thanks Micheal & Peter, I kinda figured that was the case.
I think I'll just move it to a sub-directory like you suggested
peter because I'd rather not have to re-edit the raw Makefile
every time I generate it.
Thanks again!
This newsboard is part of what makes FPC so damn great!
All of you guys
Is there a way to get FPC Make to enter its target DIRS before compiling
the units in the current directory?
I've got a unit that depends on another unit being compiled first that
is in a sub-directory, even though I list the dirs first Make trys to
compile the current dir first.
Thx.. ^_^
^_^ Thats how its working at the moment and I've known that FPC doesn't
do that kinda definition on the fly. My real question was why not?
On Wed, 2004-02-18 at 21:34, Adam Victor Nazareth Brandizzi wrote:
> You can also define a function that returns the record you need:
>
> function NewMyRec(
If the function you wish to call is apart of another unit you can call
i.g.:
UnitName.Close(sin);
UnitName.Close(sout);
** That may work from within the same unit but I'm not certain. **
Free pascal is great about name spaces and allowing you to specify which
function you wish to call.
On
nifty feature.. but hey.. I was just
wondering.
On Mon, 2004-02-16 at 04:46, Shawn Tan Ser Ngiap wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Monday 16 February 2004 00:40, Jon D. Sawyer wrote:
>
> > Const ARec : tMyRec = (X:12; Y:25);
> >
>
If I have this type:
Type tMyRec = Record X, Y: Integer; End;
and can do this:
Const ARec : tMyRec = (X:12; Y:25);
why can't I do this?
var
AnotherRec: tMyRec;
begin
AnotherRec := (X:12; Y:25);
end.
** Feel free to smack me around.
___
fpc-pas