Problems using #resource

Discuss PocketC for CE (including Desktop Edition)

Postby foo_mark on Sat Oct 19, 2002 6:20 pm

Did anybody had problems using #resource preprocessor statement?

This is what I wrote:
#define BMPJUMP000 200
#resource BMPJUMP000 "app.bmp"

And this is what I get as error:
Problem @ File \MyDocuments\app.pc Line 5
error occured in #resource statement

I don't know if this is a problem with the Casio E-100, or there is something wrong with the libraries that I have. I checked to see if I mispelled the file, but there wasn't any typo.
Posts: 3
Joined: Wed Oct 16, 2002 1:36 am
Location: Canada

Postby guy on Mon Oct 21, 2002 6:13 am

You need the complete path to the file that you want to embed into your app as a resource. I don't think the compiler merges a default path with the supplied file.

Additionally, I don't know whether the preprocessor does substitutions in a #resource directive. That may be worth checking.

PocketC CE API interface:
PCForm and CE API forum:
PocketC CE API interface:
PCForm and CE API forum:
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 3 guests