I’m trying to follow the SDL_RWops Tutorial and I am only at part 1 of it…
I successfully make the application but have error at run time. It give me access violation at line 33, that is
one = SDL_LoadBMP_RW(rw, 0);
I checked that the file opened successfully.
I tried to load the rw directly from the files by changing line 28 from
rw = SDL_RWFromFP(file, 0);
to
rw = SDL_RWFromFile(“penguin.bmp”, 0);
Then it gives me the access violation immediately (ie, at line 28). I tried to replace the bmp files. It produce errors as before.
The .lib, .dll should be ok… as I tried to compile other demo/tutorial and all shows no error.
Can anybody give me some hints on what went wrong?
FYI, my platfrom is win2k, VC++6 (with sp5). I tried both binary version and the self-build version of the SDL.
Thanks in advance.==================================================================
??? http://sinamail.sina.com.hk