Who know why Fatal Alert?

2003-07-10 Thread idea
Hi all,

I am trying to launch RealOne Player within my own application. It works
flawless if I am using Palm macro AppLaunchWithCommand. But it promped me
Fatal Alert if I tried to use this macro AppCallWithCommand('RNWK',
sysAppLaunchCmdNormalLaunch,NULL);.

Who know why?

Below please find what exactly the Fatal Alert:
Emul68KMain.c, Line:456,
line 111 exception at
address 0010656E
Reset

Background: I am using CW7 with OS5 SDK. This is an only statement response
to a button within a fresh project.

P.S. I would like to use AppCallWithCommand to launch RealOne Player
without actually quit my own application.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


bus error

2003-07-10 Thread acky
Hi:
everybody,i 'd need your help.i encouter bus error .i'd like to
know what has caused this problem and how can i solve this problem.Can
someboy explain the multisegment code for me ?



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


RE: SysUIAppSwitch() question

2003-07-10 Thread steve


If the user quits the app by a button SysUIAppSwitch is trigged. It
closes the app and starts another. You can intercept the starting of the
new app by
sysNotifyAppLaunchingEvent.


sysNotifyAppQuittingEvent could also be a help.

Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Markus
Dresch
Sent: Thursday, July 10, 2003 7:00 AM
To: Palm Developer Forum
Subject: Re: SysUIAppSwitch() question

 I am now trying to call the Address Book by a button in my
application.
 But how can I back to my original application after I finish the
address
 book?

now, that's the tricky part :o)

but there's a not so hard but dirty workaround:
- save the current prefLauncherAppCreator
- set prefLauncherAppCreator to your creator-id
- switch to address book
- when the user taps the launcher button, your app is opened
- restore previous prefLauncherAppCreator

if the user presses another hardwarebutton or silkbutton you'll probably
have a problem...

markus dresch (www.palmside.com)



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Export bmp from WIN to PALM

2003-07-10 Thread Palm
Hi All,

I'm trying to export windows bitmap files (8 bit) to a palm database.

I write the windows (dib) bitmap data as a data stream in the .pdb according
to the palm header structure, and re - construct the bitmap structure in
palm memory.

When writing the bitmap header in the palm necessary byte order conversions
are made.

After loading to the palm, the image is displayed as garbage but with the
correct dimensions . Has anyone tried this before.

Thanks in advance

DNR



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Export bmp from WIN to PALM

2003-07-10 Thread Jan Slodicka
Sure - even if not in exactly same order.

If the image depth is correct (16 bits) and no compression is used, then
probably the color component order is wrong. Windows and Palm use different
color schemes (BGR order), by I don't remember the details by heart. The
best way to procede is to prepare 3 bitmaps - one blue, one red, one green -
and compare the output.

Jan Slodicka

- Original Message -
From: Palm [EMAIL PROTECTED]
Newsgroups: palm-dev-forum
To: Palm Developer Forum [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 10:25 AM
Subject: Export bmp from WIN to PALM


 Hi All,

 I'm trying to export windows bitmap files (8 bit) to a palm database.

 I write the windows (dib) bitmap data as a data stream in the .pdb
according
 to the palm header structure, and re - construct the bitmap structure in
 palm memory.

 When writing the bitmap header in the palm necessary byte order
conversions
 are made.

 After loading to the palm, the image is displayed as garbage but with the
 correct dimensions . Has anyone tried this before.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Who know how to switch off backlight of my Zire71 programmically?

2003-07-10 Thread idea
I tried the following 2 statements but failed. All of them just show me the
brightness adjustment window only.

1. EvtEnqueueKey(vchrBacklight, 0, commandKeyMask);
2. UIBrightnessAdjust();






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


how to start the mailapp collecting the mails automatically?

2003-07-10 Thread blaman
Hi all, i´d like to write a program launching the VersaMail application on a
Tungsten W (PALM OS 4.x) and make the application collect the mail. if you
have any suggestion, everything will help because i got no idea how to do

Thx



begin 666 confused.gif
M1TE.#EA#P`6`-4_`,.]=?GQE?#HD/_XH=++?O_WF_'JD;?BL[(?.KCC,?!
M=__XJ__[Q__[RO_\W-7.@/_YL?_YL-W6A/_[TOKREO_WG=_8AO_\U?WUF/_\
MV?_YM?_XHO_[SO_ZO?_ZN__XI^[GC__XI?3MD_;ND__ZP/_[QLK#GBC/[V
MF/_\V/_[RO%O_ZO/_YM/_XJO_XH__YK][7A?_\T__\U^':A__ZPO_ZO__W
MF?_\W?_XJ/STE_;NE/_\V\[= ```*2DI'Y! $``#\`+ `/`!8```:E
MP-_/)Q02B\A4GDD)I?(O1)E5JOTBH2R\7ZOE_NUY:-$CAK /'[EMAIL PROTECTED]
MZ9ME,FZK96K4)H3,E\U'AI?% 9.# TJ7Q$NSX)S1?'1TL@L#%04Z!@2
M#U\0$# +P4W,[EMAIL PROTECTED]P,%#H!(!8$@!?*!0!.R([EMAIL PROTECTED] `]/4X@
@[EMAIL PROTECTED]@6/@\()LL^S'3:M343T/XVE7TN5!`#L`
`
end


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: bus error

2003-07-10 Thread Dave Lippincott
Bus error is like a GPF on your PC.  Its likely your app wrote to an invalid
memory location or over bounded a variable accidentally.  Look at your code
in the general area of the bus error and see if you copied too many
characters into a string or wrote data into an invalid pointer.

Think of a segment as a piece of string, its length is proportional to the
code size.  Each function/routine in your app is a segment.  The compiler
lays each piece of string end to end and keeps a table of where each piece
starts.  In the Palm OS, you cannot jump from one string to another if they
are too far apart.

- Original Message -
From: acky [EMAIL PROTECTED]
Newsgroups: palm-dev-forum
To: Palm Developer Forum [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 4:22 AM
Subject: bus error`


 Hi:
 everybody,i 'd need your help.i encouter bus error .i'd like to
 know what has caused this problem and how can i solve this problem.Can
 someboy explain the multisegment code for me ?



 --
 For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Help! application extended above 64KB

2003-07-10 Thread Roger Stringer
Improving on Ralf's somewhat complex response

You simply need to segment your application, ensuring the code in each 
segment is less than 32KB and use the Small memory model.   You should 
then find your program gets smaller and runs a little faster.

Check the archives and/or read the documentation for your compiler on how 
specifically to go from a single segment program to a multiple segment program.

From: Ralf Krauss [EMAIL PROTECTED]
Date: Wed, 9 Jul 2003 16:09:52 +0200
If your application requires more than 64k for its Code,
you should place some of its functionality in one or more shared
libraries, or create a multiple segments application.
Splitting your application into one or more shared libraries ...
[EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]

 Hello,

I am creating an application, that(.prc) is extended above 64KB,
 so that i can not compile. How can i overcome this problem.

Roger Stringer
Marietta Systems, Inc.  (www.RF-TP.com)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Sampled Stream Audio issue on OS5.2

2003-07-10 Thread Jeff Mitchell

 Subject: Re: Sampled Stream Audio issue on OS5.2
 From: Nicolas Pabion [EMAIL PROTECTED]
 Date: Wed, 9 Jul 2003 17:46:21 -0700
 X-Message-Number: 33
 
 The API is the same. The only difference is that T|T will give you the
 buffer size you asked while T|C and Zire tend to always return 4K. I would
 hope that you do use the framecount number in your callback. Everything else
 is the same.

This occurred to me after some test results came in; the trick is
that this isn't a useful value for a game.. the lag is too great and the
frequency of callback too low. (I've allowed for a callback 30-150 times
per second.. but was getting them less frequently).

I discovered today that in the most recent OS5 SDK (DR2) there is
an additional routine.. SndCreateStreamExtended, with a variable sized
buffer callback. In theory that should let me specify how much data is
available, and thus manage the callback rate, which should work. We'll see
if it works out this way.

(ie: Large stream buffers are good for mp3s, but bad for game
realtime sound :)

Thanks for the tip,

jeff
 Jeff Mitchell [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
 
  Thanks in advance for any assistance.
 
  I've got an application which is generating raw audio into
  callback buffers a la SndStreamCreate(); this works pretty well on OS5.0
  (Tungsten|T). The same application when installed onto a Zire71 or
  Tungsten|C has terrible/incomprehensible sound. (garbage audio, or perhaps
  super fast looping? I don't have the devices myself, so I can't produce
  comparisons)
 
  Does anyone know if the sound API has changed for OS5.2 used in
  the Z71 and T|C? Is there some subtle difference that we need to know for
  these devices?

--
Have you played Atari today?


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Sampled Stream Audio issue on OS5.2

2003-07-10 Thread Aaron Ardiri
 I discovered today that in the most recent OS5 SDK (DR2) there is
 an additional routine.. SndCreateStreamExtended, with a variable sized
 buffer callback. In theory that should let me specify how much data is
 available, and thus manage the callback rate, which should work. We'll 
 see if it works out this way.

we use audio Streams in our Lemmings port - and, we have not had any
problems at all with playing back audio/sfx. the 'yippee' sound can
happen quite quickly in succession - but, we have notice no major issues. 
maybe max this is being called 15-30 times a second tho.

you may want to re-think your audio callback mechanism. is it really
required to call an audio playback 150 times a second? that'll make
your buffer really small - and, the overhead for the system calls 
will take longer than the sound you want to play :)

---
Aaron Ardiri[EMAIL PROTECTED]
CEO - CTO   +46 70 656 1143
Mobile Wizardry  http://www.mobilewizardry.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Multiple Text Records per PalmOS Record

2003-07-10 Thread NMailey . PMC

Posted by Kevin OKeefe
It's probably better to use nulls to delimit strings, then you can use
normal Str functions and
also don't have to worry about '|' appearing within a string.

I'd love to use the nulls however I'm creating the database on a Unix
machine from
an ascii file. I'm using a conversion utility for Unix called pdbmake,
and it doesn't seem to
be converting the nulls properly.


Posted by Chris Tutty
If you want to reference each string directly (ie, without working
through the strings that preceed it) you'll need an index of some
sort that gives you the offset of the start of each string.  Storing
it at the start of each record will add two bytes per string to your
storage overhead but will let you access each string directly.

All the records are already sorted when being stored into the palmdb, so
I'm also creating an indexing database to refer to, to speed things up
in that respect. I'll see if I can muster up your idea though and test
it out...



   
 
Chris Tutty [EMAIL PROTECTED]  
  
Sent by: To: Palm Developer 
Forum [EMAIL PROTECTED]
[EMAIL PROTECTED]cc: (bcc: Nole Mailey/pmc)
 
palmos.com   Subject: Re: Multiple 
Text Records per PalmOS Record   
   
 
   
 
07/08/2003 06:49 PM
 
Please respond to Palm Developer  
 
Forum 
 
   
 
   
 




From: [EMAIL PROTECTED]
 If I use that pointer method, won't that mean that I'm search
 through every single string?
 Because I'll only want to to a String comparison on the key field.

If you want to reference each string directly (ie, without working
through the strings that preceed it) you'll need an index of some
sort that gives you the offset of the start of each string.  Storing
it at the start of each record will add two bytes per string to your
storage overhead but will let you access each string directly.

Each record would then look something like:

UInt16 Counttwo bytes storing the number of strings in the
record (you need this to determine the length of the index array)
UInt16 Index[1]actually an array Count items long where
each item is the byte offset of the String from the start of the
record.
...
String\0
String\0
...

To unpack you'd open the record, read the count and the index
array and then get a particular string using something like
(Record.Index[n]) (off the top of my head).

It's a little more complex than that but not much.  If you've got
funding I could give you a price to write a code module that
would do the indexing and access for you, letting you focus
on what the application has to do with that data.  If this appeals
to you just email me privately.

Chris Tutty

--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Where can I find a fit SDK for Tungsten 5-way navigator?

2003-07-10 Thread Xing Jin
Hi,

I failed to find the event definition about the 5-way navigator supported on
Tungsten C device, could anyone give me hand on this?

Thanks a lot,
Xing Jin



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Where can I find a fit SDK for Tungsten 5-way navigator?

2003-07-10 Thread Aaron Ardiri
 I failed to find the event definition about the 5-way navigator 
 supported on Tungsten C device, could anyone give me hand on this?

seeding area :) www.palmos.com

---
Aaron Ardiri[EMAIL PROTECTED]
CEO - CTO   +46 70 656 1143
Mobile Wizardry  http://www.mobilewizardry.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Where can I find a fit SDK for Tungsten 5-way navigator?

2003-07-10 Thread Xing Jin
Thanks for your reply and I actually suffered from finding the sdk on the
web you point out today.
I downloaded the newest PalmOS5 RS2 SDK but there is nothing about the 5-way
navigator.

Any other suggestion?

cheers,
Xing

Aaron Ardiri [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

  I failed to find the event definition about the 5-way navigator
  supported on Tungsten C device, could anyone give me hand on this?

 seeding area :) www.palmos.com

 ---
 Aaron Ardiri[EMAIL PROTECTED]
 CEO - CTO   +46 70 656 1143
 Mobile Wizardry  http://www.mobilewizardry.com/






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Where can I find a fit SDK for Tungsten 5-way navigator?

2003-07-10 Thread Aaron Ardiri
 Thanks for your reply and I actually suffered from finding the sdk on 
 the web you point out today. I downloaded the newest PalmOS5 RS2 SDK 
 but there is nothing about the 5-way navigator.

it is a seperate download. you need to login to get it. this means
you need to sign NDA and stuff - it is there.

---
Aaron Ardiri[EMAIL PROTECTED]
CEO - CTO   +46 70 656 1143
Mobile Wizardry  http://www.mobilewizardry.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


RE: Where can I find a fit SDK for Tungsten 5-way navigator?

2003-07-10 Thread steve
Look at IsFiveWayNavEvent.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xing
Jin
Sent: Thursday, July 10, 2003 3:02 PM
To: Palm Developer Forum
Subject: Where can I find a fit SDK for Tungsten 5-way navigator?

Hi,

I failed to find the event definition about the 5-way navigator
supported on
Tungsten C device, could anyone give me hand on this?

Thanks a lot,
Xing Jin



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Repost: exporting file from Card w/o conduit

2003-07-10 Thread Richard Coutts
Sorry about the repost -- I'm a bit stressed about finding an answer and am
not finding much information in my searches on the net and the documents
(though I may be looking in the wrong places).

My app needs to export files on the expansion ard to the desktop without a
conduit.  They're large non-pdb files, ~1Mb.  I'm using
VFSRegisterDefaultDirectory() to register a file type so that users can
import files directly to the expansion card using Palm Quick Install.  That
part's working great, but it's not clear to me how to do the converse -- to
export a file of the same type from the card back to the desktop computer.

Is it possible to do this without developing a custom conduit?

Thanks,
Rich



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Where can I find a fit SDK for Tungsten 5-way navigator?

2003-07-10 Thread Xing Jin
Many thanks!

Finally I found it after I registered as Plugin project member.
What's a strange and stupid things!

regards,
Xing


Aaron Ardiri [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

  Thanks for your reply and I actually suffered from finding the sdk on
  the web you point out today. I downloaded the newest PalmOS5 RS2 SDK
  but there is nothing about the 5-way navigator.

 it is a seperate download. you need to login to get it. this means
 you need to sign NDA and stuff - it is there.

 ---
 Aaron Ardiri[EMAIL PROTECTED]
 CEO - CTO   +46 70 656 1143
 Mobile Wizardry  http://www.mobilewizardry.com/






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


modifying event data in OS 5

2003-07-10 Thread Karmen Smails
Hi,

I am attempting to modify the data of an event within my event handler, 
specifically event-data.ctlRepeat.pControl.  I am doing this because when a 
ctlRepeat event occurs, occasionally, I am calling FldNewField (which I 
cannot get around), and this results in the loss of the event's pointer 
data.  I can modify the event's data in OS 4 and below.  Does anyone know 
why I cannot do this in OS 5, or if there is a workaround for this problem? 

Thanks, Karmen

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Release vs. Debug Libraries

2003-07-10 Thread Dennis Giguere
Can anyone tell me the differences between the Debug and Release libraries
as far as performance and functionality are concerned. I am using the serial
port and was wondering if its response could be improved if I went from
using the Debug libraries to the Release.
Thanks.




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


ErrThrow in a shared library

2003-07-10 Thread Eric Potter
If I call ErrThrow in a shared library, can I catch it in main
application prc? Will it work if I use the standard c++ throw instead
of ErrThrow?

thanks

Eric

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Advice sought on design of a db of linked lists of linked lists of bitmaps?

2003-07-10 Thread Alexandre Rousseau
Hi,

title says it all, though cryptically perhaps.

I am writing a mini storyboarding application and am
about to embark on the persistence part of the project.
And I need some advice on how to structure my db(s?)
for this.

So far, I have structured my data as follows:

- the db will contain 0, 1, or more clips
- each clip contains 0, 1, or more shots
- each shot contains 0, 1, or more frames
- each frame contains bitmap data
- shots form a double-linked list
- frames within a shot form a double-linked list

i.e.

typedef struct
{
  char author[80],
  char notes[1024],
  shot * head;
}
clip;

typedef struct
{
  int duration;
  frame * head;
  shot * next;
  shot * prev;
}
shot;

typedef struct
{
  BitmapPtr data;
  frame * next;
  frame * prev;
}
frame;


Any advice would be much appreciated.

Thanks
Alex


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: how to start the mailapp collecting the mails automatically?

2003-07-10 Thread rguevara
Hi, I want do some like
download a mail and install automatically the Pdb's attached to him.
I suposse what is the command SysAppLaunch(...)

#define AppLaunchWithCommand(appCreator, appCmd, appCmdParams)
{
//Code for initialization

DmGetNextDataBaseByTypeCreator(true, searchState, sysFileApplication,
appcreator, true, cardNo, dbID );
if (dbID)
  {
   SysUIAppSwitch()csrdNo,dbID, appCmd, appCmdParams); //switch to application
  }
}

(Sorry for my bad english, i am from argentina and know litle english).

Bye.
--
Open WebMail Project (http://openwebmail.org)

-- Original Message ---
From: blaman [EMAIL PROTECTED]
To: Palm Developer Forum [EMAIL PROTECTED]
Sent: Thu, 10 Jul 2003 13:45:15 +0200
Subject: how to start the mailapp collecting the mails automatically?

 Hi all, i´d like to write a program launching the VersaMail 
 application on a Tungsten W (PALM OS 4.x) and make the application 
 collect the mail. if you have any suggestion, everything will help 
 because i got no idea how to do
 
 Thx
 
 --
 For information on using the Palm Developer Forums, or to 
 unsubscribe, please see http://www.palmos.com/dev/support/forums/
--- End of Original Message ---


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


multiple files in PilRC

2003-07-10 Thread Tucker, Jay
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
edit the strings without being overwhelmed by all the rest of the stuff in
the .rcp file.

Anyhow, I'd like to slightly change the standard resource file structure so
that I have three files that look something like this:

MyAppRsc.h
--
#define DoSomethingAlert 1001
#define DoSomethingHelpString 1002


Strings.h
-
STRING ID DoSomethingHelpString This is my help string.


MyApp.rcp
-
#include MyAppRsc.h
#include Strings.h

ALERT ID DoSomethingAlert
CONFIRMATION
HELPID DoSomethingHelpString
BEGIN
 TITLE Do something
 MESSAGE Are you sure?
 BUTTONS OK Cancel
END

Unfortunately, this code generates all sorts of PilRC compiler errors.

Has anyone come up with a way of doing something like I'm proposing?
Moreover, is there a way of putting the text for the TITLE, MESSAGE, and
BUTTONS into the separate string file? If anyone has any suggestions or
answers, I'd be most grateful.

Thanks,
Jay
[EMAIL PROTECTED]


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: multiple files in PilRC

2003-07-10 Thread Bob Withers
I do this all the time.  In fact, I have each form defined in it's own 
file.  Perhaps PilRC is being confused because you have named the file 
containing your string as a .h.  Try naming it Strings.rcp and change the 
include to this name.

Bob

At 05:22 PM 7/10/2003 -0400, you wrote:
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
edit the strings without being overwhelmed by all the rest of the stuff in
the .rcp file.
Anyhow, I'd like to slightly change the standard resource file structure so
that I have three files that look something like this:
MyAppRsc.h
--
#define DoSomethingAlert 1001
#define DoSomethingHelpString 1002
Strings.h
-
STRING ID DoSomethingHelpString This is my help string.
MyApp.rcp
-
#include MyAppRsc.h
#include Strings.h
ALERT ID DoSomethingAlert
CONFIRMATION
HELPID DoSomethingHelpString
BEGIN
 TITLE Do something
 MESSAGE Are you sure?
 BUTTONS OK Cancel
END
Unfortunately, this code generates all sorts of PilRC compiler errors.

Has anyone come up with a way of doing something like I'm proposing?
Moreover, is there a way of putting the text for the TITLE, MESSAGE, and
BUTTONS into the separate string file? If anyone has any suggestions or
answers, I'd be most grateful.
Thanks,
Jay
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Tungsten-C - what happened to sysNotifyKeyboardDialogEvent?

2003-07-10 Thread Brandt Haagensen
I must be missing something...doesn't the TC simulator have the old grafitti
interface and the device a keyboard?  If it has a keyboard there wouldn't be
a need for this event.


Brandt

Geoff Thompson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 I have posted this question previously here and on the Tools Forum.  David
 Fedor responded on the Tools Forum that OS 5.2 is still posting the event,
 so I can only surmise that the Tungsten-C is preventing the broadcast?

 Can anyone from Palm SG shed any light?  Also, is there a better forum for
 this question?  Though many of the licensees have their own forum, I don't
 see one for Palm SG.

 Thanks,

 Geoff Thompson







-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


PalmDebugger

2003-07-10 Thread apple k
Hi,

I'm trying to use the actual device to debug my
program. However it fails for several times of
attempts as connection attempt fails. 

I'm using CodeWarrior and set the PalmDebugger to
PalmOS Device with functional COM port. For the Palm
Device, it has been set to debug mode as 'Shortcut.2'.

Do I miss anything else? Pls advise in this regard.
Thank you in advance!

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Valid character for TxtCharAttr?

2003-07-10 Thread Luc Le Blanc
Ken Krugler a écrit :

 Running the Gremlins on my application, I get a TextMgr.cpp, Line:727,
 Sign-extended char passed to TxtCharAttr warning because the Gremlin
 wrote a 236 (EC) character into a field onto which I later perform, for
 each character, a TxtGlueCharIsAlNum call, which in turn, calls
 TxtCharAttr. The OS reference about TxtCharAttr says The character
 passed to this function must be a valid character given the system
 encoding.. Yet, in the Latin character set, this 236 character is
 simply an accented lowercase a. Isn't this a valid character?

 I'm guessing that you're grabbing the characters from the text field
 using a Char variable (or Char*). When you pass a Char to a routine
 that expects a WChar, the 8-bit Char gets sign-extended, and thus the
 character code 236 (0xEC) becomes 0xFFEC.

 So either you want to use TxtGetNextChar to pull WChar values out of
 a string (bonus - this will also help your code work correctly with
 Japanese, Chinese, and the UTF-8 Unicode encoding), or you need to do
 proper type-casting to prevent the sign extension from occurring.

Forgive my ignorance but I don't see what type of casting I could do to
prevent this sign extension. I tried:

WCharw;
Charc;

w = ( WChar ) c;

to no avail, 0xEC became 0xFFEC. So in the end I added:

w = 0x00FF;


--
Luc Le Blanc


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Where can I find a fit SDK for Tungsten 5-way navigator?

2003-07-10 Thread Ben Combee
At 10:40 AM 7/10/2003, Xing Jin wrote:
Many thanks!

Finally I found it after I registered as Plugin project member.
What's a strange and stupid things!
Why is this strange and stupid?  The 5-way navigator is a proprietary 
feature of devices from Palm Solutions Group, so it makes sense that the 
description of the APIs and keystrokes would be part of the Palm SG 
developer program, not the PalmSource generic Palm OS SDK.

--
Ben Combee [EMAIL PROTECTED]
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com 

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: ErrThrow in a shared library

2003-07-10 Thread Ben Combee
At 03:06 PM 7/10/2003, Eric Potter wrote:
If I call ErrThrow in a shared library, can I catch it in main
application prc?
Yes, this should work, but I've not tried it.

Will it work if I use the standard c++ throw instead
of ErrThrow?
No.  C++'s catch/throw are implemented using a totally different mechanism 
than the Palm OS ErrThrow/ErrTry/ErrCatch mechanism.  The Palm OS mechanism 
will NOT destroy C++ objects on the stack as it unwinds -- it is very 
similar to setjmp/longjmp in its behavior, without the need to actually 
invoke a jump buffer at the longjmp call.

--
Ben Combee [EMAIL PROTECTED]
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com 

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: multiple files in PilRC

2003-07-10 Thread Ben Combee
At 05:22 PM 7/10/2003, Tucker, Jay wrote:
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
edit the strings without being overwhelmed by all the rest of the stuff in
the .rcp file.
Anyhow, I'd like to slightly change the standard resource file structure so
that I have three files that look something like this:
MyAppRsc.h
--
#define DoSomethingAlert 1001
#define DoSomethingHelpString 1002
Strings.h
-
STRING ID DoSomethingHelpString This is my help string.
MyApp.rcp
-
#include MyAppRsc.h
#include Strings.h
ALERT ID DoSomethingAlert
CONFIRMATION
HELPID DoSomethingHelpString
BEGIN
 TITLE Do something
 MESSAGE Are you sure?
 BUTTONS OK Cancel
END
Unfortunately, this code generates all sorts of PilRC compiler errors.

Has anyone come up with a way of doing something like I'm proposing?
Moreover, is there a way of putting the text for the TITLE, MESSAGE, and
BUTTONS into the separate string file? If anyone has any suggestions or
answers, I'd be most grateful.
PilRC 3.0 supports string-based #defines, so you could write something like

res-english.rcp:

#define HELLO Hello
#include res.rcp
res-french.rcp:

#define HELLO Bonjour
#include res.cpp
res.rcp:

GENERATEHEADER res.h
RESETAUTOID 1000
STRING ID HelloString HELLO
A beta version of PilRC 3.0 will be part of the CW 9.2 preview drop to be 
posted soon.  You can build it right now using the files in CVS at the 
PilRC project page on sourceforge.net.

--
Ben Combee [EMAIL PROTECTED]
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com 

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


RE: What to do w/resource file greater than 64k?

2003-07-10 Thread Ben Combee

With that said, I am baffled.  Here's the problem I'm seeing.

Codewarrior 9.1 complains with the following WARNINGS:

  Segment 'Seg1' is greater than 64KB, it will generate an invalid PRC
file.
  PalmRez Warning: Output resource size is greater than ~64K size limit:
'code 1'
In my Segments tab, the ONLY things listed in Seg1 are:

Seg14K  1K
---
StartupCode.lib 514 42
PalmOS.win.pch  n/a n/a (actually 2K on hard drive)
MyApp.rsrc  n/a n/a (actually 70K on hard drive)
MyApp.cpp   3616987
Furthermore, when I drag the resulting PRC onto POSE running an OS3.1
dbg ROM (my target platform), I get Could not install the Palm OS file
MyApp.prc because an out of memory error occurred while installing
resource 'code'(1).  It's possible that the reason for this error is
because the size of this resource (68614) is larger than the current
allowed maximum of 65505.
It was my assumption that MyAPp.rsrc was causing the problem, and that I
needed to reduce it in size down to 60k or so so it would fit in Seg1.
Ben, if I follow you, unless I have a very large bitmap (which I don't
-- two dozen forms, three dozen small bitmaps, that's about it), the
problem isn't anything to do with the resource file?
This is very odd.  Turn of linker map file generation in the 68K Linker 
pref panel and look at the contents of the first code segment.  It may be 
that you have inline or template code from other segments that is being put 
into the first segment.  If you know that this code won't be called from a 
non-global-providing launch code, you can turn off the compiler glue in 
first segment switch in the 68K Linker panel.

The figures in the columns in the IDE are VERY approximate, and don't take 
into account the actions of the linker.  They are just a guide.

--
Ben Combee [EMAIL PROTECTED]
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com 

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Valid character for TxtCharAttr?

2003-07-10 Thread Ben Combee

Forgive my ignorance but I don't see what type of casting I could do to
prevent this sign extension. I tried:
WCharw;
Charc;
w = ( WChar ) c;

to no avail, 0xEC became 0xFFEC. So in the end I added:

w = 0x00FF;
w = (WChar)(unsigned char)c;

will do it nicely.

--
Ben Combee [EMAIL PROTECTED]
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com 

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: PalmDebugger

2003-07-10 Thread Ben Combee
At 10:53 PM 7/10/2003, apple k wrote:
Hi,

I'm trying to use the actual device to debug my
program. However it fails for several times of
attempts as connection attempt fails.
I'm using CodeWarrior and set the PalmDebugger to
PalmOS Device with functional COM port. For the Palm
Device, it has been set to debug mode as 'Shortcut.2'.
Which actual device, which version of CodeWarrior, and what kind of 
connection (serial or USB)?

--
Ben Combee [EMAIL PROTECTED]
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com 

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/