Salut j'ai un petit problème avec l'allocation dinamique sur VC++ 6
je cherche la correspondance entre "malloc" et "new"
voilà la l'allocation que je veux convertir:
unsigned char* pAbc=NULL;
int y,n;
{}
pAbc=(unsigned char*) malloc(y*n+1);
je la ma même allocation avec new.
j'ai essayé : image= new (unsigned char*) (y*n+1);
ET j'obtiens l'erreur : CANNOT CONVERT INT TO UNSIGNED CHAR *