Joe Siebenmann <[EMAIL PROTECTED]> wrote:
> I'm trying to build the sample Virtual Device Driver, CryptoDrvr, using
> PRC-Tools..
30 seconds of looking at the CryptoDrvr source code shows that a virtual
device driver is just a lump of globals-less code in the 'code' #0 resource
with the function DrvEntryPoint as its entry point. That means that you
should treat it as what prc-tools calls _stand-alone code_. See
http://prc-tools.sf.net/cgi-bin/info/stand-alone+code+resources
particularly the tutorial section "Producing a stand-alone code resource".
In short, you should add
#include <Standalone.h>
STANDALONE_CODE_RESOURCE_ID (0);
somewhere, link with
m68k-palmos-gcc -e __Startup__ -nostartfiles [...]
(__Startup__ because that's what DrvEntryPoint gets #defined to), and
the .def file merely needs to set the type and creator, so is pretty
much irrelevant. (You should use the generic project kind, "database".)
> I can't find the docs for .def files
Where did you look? How can I make the documentation easier for you
to find?
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/