PocketMatrix forums

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

Adding Resources to Carbide (in an EPK)

How is an EPK file added to the resource list for a carbide symbian s60 project?

I need to be able to build and view the resulting executable in the emulator, the source of which uses an epk file for resources (and won't run without it).

EdgeBuilder can't (afaik) build emulator executables, so I can't use that to create the resulting executable/sit.

Thanks,
-g9
Hi,

Unfortunately we don't have experience with Carbide and can't find an answer. Is there documentation available for the program?

Check if you're able to manually edit a package (.pkg) file. If you can, here is an example how to add an .epk file to the .sis installation package:

Code:

"file.epk"-"!:\private\%appuid%\file.epk"


%appuid% should be changed to your application UID which is unique for every Symbian application. For example: !:\private\0xE0000000\file.epk
Hi,
I use this in my S60 3rd edition project, and it works well.
But when i try to do this in my S60 2nd edition FP3 the application don't start.
If i put the EPK file in another place, everythink works, except the ClassEFile::Open method (normal, the file is not found).

Do you have an idea ?
Thanks

Regards
David
Hi David,

For old series 60 devices you need to change the installation path of your resource files. For a template, look here: http://www.edgelib.com/index.php?node=828 (look at the topmost code block).

For your application it could be:
"test.epk"-"!:\system\apps\your_appname\test.epk"
Hi Edge,

I have already test that. but when i put this line in the helloworld package. The application start and stop imediatly.

"C:\MyApp\res\MyEpk.epk"-"!:\system\apps\helloworld\MyEpk.epk".

Have an idea ?
Regards
David
RE Hi Edge,

Sorry, i have sayd something wrong.
It works well. My problem came from my trace methode that used "fopen". Apparently there is some problem with 'fopen'.

Regards
David