How to use a message resource file in a precompiled library for BlackBerry
I'm building a library for the BlackBerry, which needs to have several strings in it using the messages.rrc and messages.rrh files to create the MessagesResource interface to allow access.
The catch is, everything being done on the command line, I'm using RAPC to generate the messages, and a standard java compiler to build the library itself. RAPC generates the MessagesResource class just fine, and I can use it to compile the rest of the library with. But how do I get the actual messages (stored in a COD file) to come with the library? Do I just stick the COD in the jar? Does i开发者_如何学JAVAt have to be a separate file? Is it folly to think I can even do this?
Well, never found an answer to this. Had to move to a proprietary way of fetching strings from a resource file included with the project instead. A shame.
精彩评论