Page 1 of 1

CreateSurface problem

PostPosted: May 22, 2006 @ 2:36pm
by xavier69

PostPosted: May 22, 2006 @ 3:19pm
by Presto
HRESULT hr = m_images[index]->CreateSurface(GDSURFACE_SYSTEMMEMORY, &vfs, L"/images/fb_portrait.png");

I don't use GAPIDraw myself, but are you sure the slashes are right? Given that it's a windows environment, and not Unix, perhaps it should be:

HRESULT hr = m_images[index]->CreateSurface(GDSURFACE_SYSTEMMEMORY, &vfs, L"\\images\\fb_portrait.png");

or

HRESULT hr = m_images[index]->CreateSurface(GDSURFACE_SYSTEMMEMORY, &vfs, L"images\\fb_portrait.png");

PostPosted: May 23, 2006 @ 8:11pm
by xavier69
I figured it out. I didn't export the vfs file after I added the images, so although the editor showed the images in there, the resulting vfs file wasn't updated on the device.

So apparently a return code of 0xc8660190 means file not found in archive.

:oops: