Error in union REGS fonction

Fermé
sdfsam Messages postés 60 Date d'inscription lundi 18 octobre 2010 Statut Membre Dernière intervention 29 mai 2011 - 29 nov. 2010 à 15:00
bonjour;
j'ai la fonction suivante dans cod en c++ et quand j'essaie de compiler il me rend une erreur sur la ligne [union REGS registre;] disant que

62 C:\Documents and Settings\admin\Bureau\11\gest_err.c in fonction 'setcursor': storage size of 'registre' isn't known

C:\Documents and Settings\admin\Bureau\11\Makefile.win [Build Error] [gest_err.o] Error 1

voila la fonction:

void setcursor(int d,int f)
{
union REGS registre;
registre.h.ah=1;
registre.h.ch=d;
registre.h.cl=f;
int86(0x10,®istre,®istre);
}



merci d'avance