Hola a todos:
Cuando intento ejecutar un programa me da el siguiente error:
c:\archivos de programa\microsoft visual
studio\myprojects\pong\pong.cpp(336) : error C2664: 'set_palette' : cannot
convert parameter 1 from 'void *' to 'const struct RGB []'
El codigo del programa es:
#include <stdio.h>
#include <stdlib.h>
#include <allegro.h>
#include "pong.h"
DATAFILE *pong_datafile=NULL;
int main (void)
{
if((pong_datafile=load_datafile("pong.dat"))==NULL)
{
/*Shutdown Allegro*/
allegro_exit();
/*Print error message*/
printf("Error loading \"pong.dat\"%s", allegro_error);
exit(1);
}
set_pallete(pong_datafile[pong_pal].dat);
return 0;
}
Alguien sabe que puede pasar? Gracias por adelantado. Albert
Leer las respuestas