IDCMP Events
05-Apr-88 20:11:23
Sb: #117345-IDCMP Events
Fm: Steve Faiwiszewski 74106,425
To: Art Steinmetz 76044,3204
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
GetMsg() actually returns an address. Since all pointers are compatible with
ADDRESS ('cause that's what they really are anyway),
MsgPtr := GetMsg(….
MsgPtr can be declared to be any type of pointer you'd like. However, when
dealing with intuition, you would want to declare it as IntuiMsgPtr to make
sure the compiler will let you access all the right fields that are in the
IntuiMessage record pointed to by MsgPtr. When dealing with other kinds of
messages, you would – of course – want to declare MsgPtr as a pointer to the
appropriate record.
– Steve –