PDA

View Full Version : How to use External Resource with Media Spanning questions



samwong
04-08-2003, 01:08 PM
Hi,

We are exploring how to use Media Spanning and External Resource in our project. Let's say we have an executable that we want to put it on media #2 as an External Resource. In the product tree, we like to execute this executable that reside on media #2 (there are reasons that we can't put this on media #1). Is that possible? We can use putExternalResource() to store the executable to media #2 at build time. According to the doc, we should use getExternalResource() at runtime to access the external resource. Now, from the javadoc, it requires a parameter indexNumber. Where do I get this indexNumber during runtime? Does getExternalResource() prompt the number to swap the media?

Thanks,

Sam.