
Yes.
But as I've mentioned above I need to build up one file containing some tile set, for example office.dat.
And then to load images form it (not all but only needed).
Sure to load them I'll need to use this:
inSurf = LoadImage(pDisplay, &buffer[x], &buffer[y] );
Of course now I use the easy one LoadImage( _T("some.gif") ), but I draw now some more tiles, and it would be not only safety, but also useful(some of them less than a 1024 bytes) to store them in one data file.
And please don't say me about intresources or one big surface.
Have you tested your function:
Surface* LoadImage( const uint8_t* pBegin, const uint8_t* pEnd );
from an image.h file.
If yes, then what code you used for testing and, I suppose, loading an image?