Blitz (325/459)

From:Bippy M
Date:22 Jan 2000 at 21:55:36
Subject:Newtype Structures

Hiya Guys,

I'm a little confused regarding NEWTYPES.. I know what they are (In a basic
form), but I've been looking through some source Curt sent me a few months
ago, and am a little confused.. Take a look

The code was to show the use of Tags and opening a screen..

Right the following Netype I assume holds the info passed from the Asl
screenmode requestor. What I'm confused about is how does the program know
to pass the Display info to the DisplayID, and Displaywidth to
DisplayWidth.l... What would happen if I swapped the newtype around, and
say put DisplayWidth.l first, and then DisplayID.l.. Would the data still
be passed to the correct entry, or would they be mixed up..

NEWTYPE.SMode ;for the mode requester
DisplayID.l
DisplayWidth.l
DisplayHeight.l
DisplayDepth.w
OverscanType.w
End NEWTYPE

Basically what I'm asking is.. Do commands that pass the results to a
Newtype Structure require the info to be in a certain way, or does it not
matter? If the latter how does the command know where to pass its data?

Also if it's the first how do I know what order to create the newtype?

Secondly what does the following do, could someone explain please?

*sreq.SMode=0
*sreq=AllocAslRequest_(2,&SMRtags(0)\ti_Tag)
ok.b=AslRequest_(*sreq,&SMRtags(0)\ti_Tag)

I am trying to understand Tags and OS Stuff so I can get away from using
Blitz's internal commands.. and pointers STILL flummox me :(

T'ra

Bip



x----------------| BippyM@Stingent.freeserve.co.uk |-----------------x
| |
| Current Projects: |
| Overflow (Pipemania Clone) [..^.......] 30% |
| Packer2Packer Suite [.^........] 20% |
| |
x----------------| BippyM@Stingent.freeserve.co.uk |-----------------x

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie