>Hello,
>The following may be extremely trivial problems , but we seriously need
help!
>We are developing a palm application in C using Code Warrior.
>The details are as follows:
>1. The application is created in Code Warrior.
>2. "Starter.cpp" is the main source file.
>3. The conduit is written in Java.
>The problems:
>A. There's a confusion over the use of CreatorID.
> In "Starter settings" dialog, under "PalmRez Post linker" heading, the
>settings are
> Type: appl
> Creator : strt
> Version : 1
>We believe this creator is the creatorID of the application which is also
>required to be used by the conduit to be invoked.
>QRY-1 : Is this creatorID and CreatorID of the database the same ?
Yes, you should replace this with the Creator ID that you have registered on
the Palm developer's site.
>QRY-2 : If this creatorID is a string, how & where it is converted to UInt
as >desired by DmOpenDatabaseByTypeCreator() system call?
This is not really an important concern, since all you have to be concerned
with is that the API treats the creator ID and database type as a 32-bit
unsigned integer. If your creator ID is "myID", you would put the string
"myID" into the Creator field in the Codewarrior settings (without quotes),
and then might have a macro in your source code such as:
#define CREATOR_ID 'myID'
Then, just pass this symbolically to any PalmOS functions that require it.
Do NOT define it as the string "myID" in double quotes since that will NOT
work correctly if passed to PalmOS!
>QRY-3 : In the Code Warrior sample application named "Address", the
>DmOpenDatabaseByTypeCreator() system call uses "sysFileCAddress" as
database >creatorID. From where they have arrived at this "sysFileCAddress"?
>For our application, where do we get to create THIS parameter?
They probably defined this as a constant similar to what I show above.
>B. There's a problem with DB Type.
>QRY-1 : What exactly does this DB type mean ?
The DB type can be anything that you want, as it's mainly only important if
your app has more than one type of database. Again, this should by defined
as an integer constant such as:
#define MY_DB_TYPE 'myDB'
The one exception to this is that you must not change the DB type of the
application itself! It must be left as 'appl' because that's how the
launcher finds the applications.
>QRY-2 : In Code Warrior IDE, we have specified the database type as 'DATA'
as >used in many of their sample
>applications. Is this converted to an int along the way ?If yes, how is
that >done?
Defining it as 'DATA' is OK, and in fact that is a long integer value -- no
"conversion" required.
>Thanx and regards.
The only other issues would be how this is handled on the Java side, but I
know nothing about Java.
Doug Gordon
GHCS Software
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html