Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Carbide: how to copy data files to the emulator directory

From Wiki
Jump to: navigation, search
Article Metadata
Created: lpvalente (26 Jun 2007)
Last edited: hamishwillee (03 Jun 2013)


Sometimes it is necessary to use external files in an application, for example, .jpeg files for sprites in a game.

The PRJ_EXPORTS section of the bld.inf file can be used to specify files to be copied to the emulator directory. For example:

"..\data\alien1.jpeg" "\Epoc32\winscw\c\private\eb4e3a98\alien1.jpeg"

That line instructs the build process to copy the alien1.jpeg file from the project data folder to the specified emulator directory. However, when using current versions of Carbide (c++ and vs, for Windows), this section is ignored during the build process.

A possible workaround for this problem is to create a simple script file (.bat under Windows) to compile the project using the command-line tools, which correctly copies the data files to the emulator directory.

Here is the script file content:

bldmake bldfiles
abld build winscw udeb

Then, just click on the script file and the files will be copied. With this workaround, you can avoid having to manually copy the files.

This page was last modified on 3 June 2013, at 07:57.
23 page views in the last 30 days.