Skip to main content
gamedev.net
🔒 Locked

IMG_ReadXPMFromArray

Started by negflar Jun 5, 2006 at 4:17 PM 0 replies 350+ views
Original Post
negflar
negflar
Hello, I'm trying to load a xpm image that i have converted from a bmp image with ImageMagick. The code is:

#include "image.xpm"
SDL_Surface *image = NULL;
image = IMG_ReadXPMFromArray( image ); //in image.xpm, the array is called image[]

when i try to compile this code in visual c++, i have this error windows: Unhandled exception at 0x00385285 in prog.exe: 0xC0000005: Access violation reading location 0x000000 What's this? tank's

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.