Zeph Le 16/10/2002 à 21:37Edité par Boo le 16/10/2002 à 21:37 Orion > si, ça marche très bien...
Voilà ma routine complete :
if((sup_var=vat_heap(vat_open(tsc_arg[1]))) && *(unsigned char*)(sup_var+(*(unsigned short*)sup_var+1))==PIC_TAG)
{
exe_alng(*(unsigned short*)(sup_var+4));
exe_alng(*(unsigned short*)(sup_var+2));
}
Traduction :
SYM_ENTRY symptr=vat_open(variable); // Obtient un SYM_ENTRY sur la variable
char *varptr=vat_heap(symptr); // Obtient un pointeur char par l'handle de la variable
if(varptr)
{
exe_alng(*(unsigned short*)(varptr+4)); // Memorise la dimention X
exe_alng(*(unsigned short*)(varptr+2)); // Memorise la dimention Y
}

All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez
par ici :)
bitmap=(BITMAP *)(ptrcharvar+2);
Kevin Kofler Le 17/10/2002 à 13:03Edité par Kevin Kofler le 17/10/2002 à 13:38 Et pour l'autre méthode, c'est:
Px=*((unsigned short*)ptrcharvar+2);
Py=*((unsigned short*)ptrcharvar+1);
ou:
Px=*(unsigned short*)(ptrcharvar+4);
Py=*(unsigned short*)(ptrcharvar+2);
qu'il faut mettre.
Oups, il manquait des parenthèses dans le premier exemple ci-dessus...
J'ai corrigé, peut-être que c'était ça ton problème.
En principe, les routines ci-dessus marchent. Tu peux aussi regarder le source de TICT-Explorer à tout hasard.