PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Issue reading file in Mobile 6 Platform

if (ef.Open("gfx.epk", EFOF_READ ))
{
if (!ef.PackAuthorize(0))
*module = MODULE_CLEANUP;
}

I have written this code and it works fine when building for Desktop PC but not for Windows mobile 6.
Shuayb wrote:if (ef.Open("gfx.epk", EFOF_READ ))
{
if (!ef.PackAuthorize(0))
*module = MODULE_CLEANUP;
}

I have written this code and it works fine when building for Desktop PC but not for Windows mobile 6.


Can anyone help! The problem is when I want to create surface and give address of the file(image) it reads in Windows Desktop build but doesnot in Windows Mobile!
Hi,

Please make sure the package file is on your Windows Mobile device as well. Locate the executable in ActiveSync and copy the file there.

Also, make the package file part of your .cab setup file when your game is released.
edge wrote:Hi,

Please make sure the package file is on your Windows Mobile device as well. Locate the executable in ActiveSync and copy the file there.

Also, make the package file part of your .cab setup file when your game is released.


Sir, I am not only using mobile but also tried to get it run in Visual Studio and built for mobile 6 SDK. All the things are working well events, rectangle drawing and coloring but the only problem is when I pass the address of the image to load like "c:\\image.png" or "image.png"(i have copied image where the .exe is located) it returns error 7 on CreateSurface(), but the image is located at both the places!
edge wrote:Hi,

Please make sure the package file is on your Windows Mobile device as well. Locate the executable in ActiveSync and copy the file there.

Also, make the package file part of your .cab setup file when your game is released.


Bundles of thanks! for helping. Now it is working.