Probiers mal folgendermaßen
Code:
 float anpassX;
 anpassX = 209.0 / 10000.0; //Image1->Width / tbX->Max
oder auch
Code:
 float anpassX;
 anpassX = (float) 209 / (float) 10000; //Image1->Width / tbX->Max
zum zweiten Problem:
Code:
unsigned short int x, y;
unsigned char ux, uy, lx, ly;

 uy = (unsigned char) (y>>8);
 ly = (unsigned char)  (y & 0x00ff);
MfG Kjion