This site is no longer active and is available for archival purposes only. Registration and login is disabled.

CreateSurface problem


CreateSurface problem

Postby xavier69 » May 22, 2006 @ 2:36pm

John Schisler
CTO / Chief Programmer

The PDA Initiative
http://www.pdainitiative.com
xavier69
pm Member
 
Posts: 12
Joined: Oct 21, 2004 @ 6:47pm


Postby Presto » May 22, 2006 @ 3:19pm

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");
<a href="http://www.pocketadventures.com/travel.asp"><img src="http://www.pocketadventures.com/images/ttc_banner.gif" border="0"></a>
User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby xavier69 » May 23, 2006 @ 8:11pm

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:
John Schisler
CTO / Chief Programmer

The PDA Initiative
http://www.pdainitiative.com
xavier69
pm Member
 
Posts: 12
Joined: Oct 21, 2004 @ 6:47pm


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron