1) -> Sid, thx for that piece... but when I change my code into:
Code:
function draw_object(... void* Object ...) {
	int Object_type = (int)(((var)handle(Object)) >> 24);
	Object_type = Object_type << 10;
	if (Object_type==HBYTE_PANEL)
		printf("panel! with %.2f",(int)Object_type);
	else if (Object_type==HBYTE_TEXT)
		printf("text! with %.2f",(int)Object_type);
	else
		printf("nothing! with %.2f",(int)Object_type);
	...
}


-> always the "nothing"-message (with 0.00) is appearing even when I pass a PANEL or TEXT object...


2) -> your long answer is the explanation of the error, which I already did understand - the short answer is the really interesting part: a solution. But a too short solution wink how do I tell the compiler what type I'm using -> how to typecast ?



Last edited by Clemens; 09/12/11 21:19.