I have an app that consists of two files: MyApp.prc, which contains all the
code and resources for the GUI, and MySharedLib.prc, which is a library of
non-GUI-related functions used by the app. The two .prc files have different
Creator ID's, so they appear separately in the list on the Palm Info
I'm observing a very bizarre problem. Perhaps somebody else has encountered
it and can offer advice. I have a small function in a shared lib that looks
something like this:
void f( void )
{
BigStruct* structP = MemPtrNew(sizeof(BigStruct));
// code
SetFields(structP);
// more code
Ted,
Good point. Yes, someField is itself a pointer. BigStruct looks like this:
typedef struct {
UInt8 someField[LOTS_OF_BYTES];
UInt8 anotherField[EVEN_MORE_BYTES];
// and so on
} BigStruct;
The variable data in my example is also a pointer to an array of bytes.
That said, any more
Blake wrote:
The other potential problem is that under PalmOS 5, all memory accesses need
to be 4-byte aligned, whereas under PalmOS 4, they only needed to be 2-byte
aligned. So if one of your someField structures occurs at a 2-byte boundry,
but not a 4-byte boundry you could get this problem.
Is there a way to programmatically change a help string resource? Here's my
scenario:
I have an alert defined in PilRC like this:
ALERT ID MyAlert
CONFIRMATION
HELPID MyDefaultHelpString
BEGIN
TITLE My Title
MESSAGE A message ^1 containing ^2 wildcards ^3.
BUTTONS OK Cancel
END
I'm using the PilRC Designer 2.0.6.0 provided with CW 9.0 to create my app's
MyApp.rcp and MyAppRsc.h files. The actual ID numbers in the .h file are
generated automatically by PilRC Designer. (I'm also doing a little direct
editing of the source files in a text editor.) Looking through the file,
I'm using CW 9.0 and am running into a problem with my resource files. I'd
like to have a separate resource file for all my strings. There are two
reasons for this: (1) It makes it easy to quickly create foreign languages
of the app, and (b) I can hand the file to a doc writer so that s/he can
OK, I'm confused. Can anybody explain to me what I'm seeing or why I'm
seeing it? Here's what I've been doing:
First, I created a small application (let's call it MyApp) that creates and
uses a small database (let's call it MyDB). I run the app on POSE, shut it
down, click the Home button, then
Hi all,
Sorry if I'm asking a question that's already been answered. I've searched
through the CodeWarrior online docs and the Knowledge Base and forums on
Palmsource.com, but couldn't find the answer that I'm looking for, so I'll
try asking it here.
I'm using CodeWarrior v9 to develop apps for
Jay wrote:
Now, what I'd also like to be able to do is to put a breakpoint in the
source of my client app, explicitly start up my client app in the debugger,
and when I hit the breakpoint in the client source, I'd like to be able to
step through the client source and then into the source code of
10 matches
Mail list logo