ok thx..
but I think in GDK, there are allready fonction:
void dbLoadImage ( char* szFilename, int iID )
{
LoadEx ( szFilename, iID );
}
DARKSDK void LoadEx ( LPSTR szFilename, int iID, int iTextureFlag, int iDivideTextureSize )
{
if(Load( szFilename, iID, iTextureFlag, false, iDivideTextureSize )==false)
{
char pCWD[256]; _getcwd ( pCWD, 256 );
char pErr[256]; sprintf ( pErr, "CWD:%s\nLOAD IMAGE %s,%d,%d,%d", pCWD, szFilename, iID, iTextureFlag, iDivideTextureSize);
RunTimeError(RUNTIMEERROR_IMAGELOADFAILED,pErr);
}
}
if the fonction return false.. a Message is sent...