1) How has the code to look like, when I want to
-> [converting the handle to a var that contains the index number,] right shift it by 24, then left shift the resulting int by 10?
[/quote]
int type = (int)(((var)handle(myObject)) >> 24);
type = type << 10;
if(type == HBYTE_PANEL)
{
...
}
etc..
2) And for my function above I forget the problem of the following compiler error:
'pos_x': is not a member of 'VOID'
Object.pos_x = PositionX;
(something I don't know where to start finding the solution...)
Short answer: Typecast it to the appropriate type
Long answer: Void is a typeless type without any informations, the compiler doesn't know where the offset to the member with the name .x is. You have to tell the compiler what type you are working with so the compiler knows where the offset is.