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 over the next few weeks. Thanks for all your past and future contributions.
Carbide: how to copy data files to the emulator directory
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:
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:
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.