Witam
mam taki problem jako ze przeszedłem na Visual Express 2008 mój program który dział na VC 6 tutaj niestety wywala błedy:
Pierwszy jaki mam to :
error C2440: '=' : cannot convert from 'tImage *' to 'AUX_RGBImageRec *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
w takiej linijce :
if ((TextureImage[0]=LoadBMP("textures/Sprite/PainSkull.bmp"))
LoadBMP wygląda tak :
AUX_RGBImageRec *LoadBMP(char *Filename) {
FILE *File=NULL;
if (!Filename) {
MessageBox(g_hWnd, "Nie mogę załadować pliku-ów BMP ", "Error", MB_OK);
return NULL;
}
File = fopen(Filename,"rb");
if (File) {
fclose(File);
return auxDIBImageLoad(Filename);
}
return NULL;
}
I nie wiem co jest grane. Zmieniałem w projekcie charset set ale to nic nie dało.
Drugi błąd to :
error C2668: 'pow' : ambiguous call to overloaded function
1> e:\programy\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
1> e:\programy\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
1> e:\programy\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
w linijce :
thisTexture->scaledWidth = (long) pow(2, i-1);
oczywiście służę calym kodem ale nie wiem co tutaj jest grane.