Re: Resize Button

2001-09-17 Thread Ben Combee

Carl Smith [EMAIL PROTECTED] wrote in message
news:62576@palm-dev-forum...

 Does anybody have any insight into resizing a button dynamically? Or
should
 I just use CtlNewControl?

Calling these three API calls should let you resize your button.

FrmHideObject
FrmSetObjectBounds
FrmShowObject

The hide and show are needed to have the button be redrawn with the new
parameters.



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



Re:Serial Ir on PalmOS = 3.3

2001-09-17 Thread Henrik Dalgaard

John,

Thank you very much, this clue was just what I needed.
The old serial manager works fine on my Visor and my Palm IIIc. It is not
working on the Palm 505 (PalmOS 4.0) though, because serCtlIrDAEnable is no
longer supported. This is at least what the SerControl call tells me.

The new serial manager does not complain about srmCtlIrDAEnable, but it is
appearently not working. I don't think it is a hardware problem with my 505
as IrComm is OK. The new serial manager returns serErrBadParam when I try to
set srmCtlRxEnable. So maybe this is where the problem is.

- Henrik Dalgaard



d. 15/09/01 0:23 skrev Schettino, John på [EMAIL PROTECTED]:

 I've implemented Ultra-IR as part of the HP open-source coolbase release.
 It's using the old serial manager, but sends/receives without problem using
 raw serial as you are attempting here. It frames data as ultra packets
 (limit of about 380 bytes of data per packet) with error checking per packet
 but no connection/session management (per Ultra specs). That means you don't
 know if a sent packet is received, but the receiver does know that a packet
 is valid (or not) when it comes in.
 
 You could of course just blast data out/read data in and hope for the best
 ;)
 
 The code is at:
 http://devnet.hp.com/projects/coolbase/
 
 or more specifically
 http://devnet.hp.com/cvsweb.php/Esquirt/PalmOS/?cvsroot=coolbase
 
 The source file you want is sir.c.
 
 - John Schettino


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



Form display inside a HACK - strange !

2001-09-17 Thread Fat Terry

Im trying to display a form within a hack. Its not going very well. By
experimentation Ive come up with the simple code below (Ive left out the

standard hack stuff which traps on sysProcessSoftKeystroke).

On detecting the keystroke it displays my alert 666 till I hit OK, then
displays
the form 4000 for 6 seconds. But after that things get strange.

If Im in another app then the buttons on the screen dont work. If Im in
the
standard CALC then the buttons work, but display rather strangely
indeed. If Im
in the apps screen itself then I get this (in POSE) on hitting the apps
button again :

applications just read from memory location 0x801A. This access
usually
indicates that the aplication is calling a Window Manager function
without first
establishing a valid Draw Window.

Clearly Ive upset something by not understanding what I should really be
doing.
Can anyone enlighten me please ?

 pres = DmOpenDatabaseByTypeCreator('HACK', 'test', dmModeReadOnly);

 FrmAlert(666);

 pfrm = FrmInitForm(4000);
 FrmDrawForm(pfrm);

 SysTaskDelay((Int32) SysTicksPerSecond() * 6);
 FrmEraseForm(pfrm);

 DmCloseDatabase(pres);





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



how to set TABLE item FONT

2001-09-17 Thread Priti

Hi,

Could anyone guide me on where in my table handling code could I place the
API for setting the font of a particular table item (TblSetItemFont()). I
have used it before TblSetItemPtr() and tried after it too before
TblDrawTable()...but it does not work in any of the cases.
Any clue as to where exactly in the code will the API work will be
appreciated.

thanks and regds,
Priti.

Information Technologies (India) Ltd. (www.itil.com), an SEI CMM level 5
company, provides high quality, cost-effective services to meet the
challenges of the new economy. ITIL specializes in a wide spectrum of
technology domains, including Web application development, Mobile
Computing and WAP.



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



ANSI Lib support for Palm

2001-09-17 Thread Gaurav Palvia

Hi folks,
   I read the Code Worrior documentation and in the file
Targeting_Palm_OS.pdf  in the section named MSL for Palm OS
there is an statement which says:
  Metrowerks Standard Libraries (MSL), which provide ANSI-standard library
routines for C and C++ programming, is not yet available for use with Palm
OS.

 But in the code worrior IDE there is this folder called MSL.which contains
various include and header files for ANSI C/C++
support.
 My doubt/question is that while developing an application for Palm OS are
we supposed to use those include files.As the doc says for Palm there is
still no ANSI standard library routines.
 If that is the case i am little confused as why the MSL folder is provided
with the CodeWorrior  IDE for Palm.




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



problem with a editable table.

2001-09-17 Thread Ajitnk

hi all,

i have run into a problem with a editable table.

i am using a texttable item  i have set the field attribute Editable to
true.
i hv written a loaddata  savecallback function also.

now my problem is eventhough i hv a made an editable field within the table,
i am not able to enter anything into the field.Even if i put the cusror on
the field,i dont see the cursor there.

also the execution does not enter into savecallback function (i hv tried
setting the breakpoint there)


i hv tried calling drawfield after setting attibutes.


am i missing something?
please let me know.

thanx  regards,
Ajit


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



Re: Creating a Event to shutdown app

2001-09-17 Thread Vinay K Shukla


- Original Message -
From: Johnathan Smith [EMAIL PROTECTED]
To: Palm Developer Forum [EMAIL PROTECTED]
Sent: Friday, September 07, 2001 11:01 PM
Subject: Creating a Event to shutdown app


 Can someone please tell me how to make a event that
 will shutdown my app!

 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo!
Messenger
 http://im.yahoo.com

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



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



Hide control

2001-09-17 Thread RedStar

Hello All,
Everybody now, how i can hide labels and fields from form. I try to use functions
CtlHideControl and CtlSetUseble(false) - it work only for checker, but
not for label and field
  
Thank you
-- 
Best regards, RedStar



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



Re: Hide control

2001-09-17 Thread Collin R. Mulliner (list account)

FrmHideObject

At 15:32 17.09.01 +0400, you wrote:
Hello All,
Everybody now, how i can hide labels and fields from form. I try to use 
functions
CtlHideControl and CtlSetUseble(false) - it work only for checker, but
not for label and field

Thank you
--
Best regards, RedStar



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


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



Re: ANSI Lib support for Palm

2001-09-17 Thread Brian Smith

On Mon, 17 Sep 2001, Gaurav Palvia wrote:

 My doubt/question is that while developing an application for Palm OS
 are we supposed to use those include files. As the doc says for Palm
 there is still no ANSI standard library routines. 

I'm not sure about CW, but my experience with GCC may be useful anyway.
I've found that, in that case, at least several ANSI standard functions
could be used, but they increase code size since apparently they're in a
library that implements them in terms of equivalent PalmOS calls.  It's
better to use the direct calls in that case, unless you need it to be
platform-independent.

It's the same idea behind the Berkeley socket call wrapper around the Palm
OS NetLib calls (something I use because of ORA's recommendation... you
can write and debug the network code on another platform and then easily
port it to the Palm that way).

--
Brian Smith  //   [EMAIL PROTECTED]   //  http://www.arthurian.nu/
Software Developer  //  Gamer  //  Webmaster  //  System Administrator
fortune: cannot execute. Out of cookies.


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



editable field

2001-09-17 Thread Massimo Penta

Hi,
I'm trying to edit a string in a field. The string is part of a struct
read as a database record:
typedef struct
 {
 UInt32 otherUint32;
 Char theString[30];
 UInt16 otherUint16;
 DateType otherDate;
 } myrec;

myrec *recP;
myrec *nilP=0;

The string is initialized:
recP-theString[0]=0;

Note that the field max characters is set to 30 in constructor. Then,
the record chunk is locked and its handle passed to the field:
FldSetText(fldP,recordHandle,(UInt32)
nilP-theString,sizeof(myrec-theString));

All this works well except that when the field is edited, the characters
are inserted in the memory, and hence moving all elements that follow
the string in the record by a number of bytes equal to the number of
characters input. Is there any way to have the field replace rather than
insert the characters, or am I doing something wrong?

Thanks,
Massimo


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



Re: I hate to say I told you so but..

2001-09-17 Thread Jeremy Neal Kelly

For what it's worth, I don't like his tone either. But though the original
post indeed smells like a troll, what better place is there to discuss
Palm's shortcomings? Too many posters view this forum as some kind of Palm
booster club, and they jump on everyone -- even thoughtful writers -- who
criticizes Palm. This stifles what could be a very useful debate. As someone
whose career is now mixed up with this device, I don't think this
sentimentality is a good idea. Palm has made mistakes and they apparently
continue to make them -- who knows this better than this group? And who has
more to lose if things don't change?

Anyway, here's the reason I bought an iPAQ: they are vastly easier to
program. Palm's API makes even the simplest programming tasks arduous. And
yes, I know why it's like that -- I don't need to be reminded. Some people
don't see this as a problem, but I assure you, my employer does. The fact
is, hardware constraints are no longer -- or at least, no longer have to
be -- what limits us. Microsoft, despite my loathing for them, has
demonstrated that they understand this. Palm hasn't.


Richard M. Hartman [EMAIL PROTECTED] wrote in message
news:62476@palm-dev-forum...

 I hadn't actually intended to respond to the original msg, but since it
has
 continued I guess I will.

 I don't really have a problem w/ honest criticism.  Palm certainly _is_ a
 bit slow on the enhancement track.  HOWEVER ... Mr, Davis' message was and
 is almost certainly more intended as flame-bait, to judge by it's tone.
To
 begin with, the subject line (I hate to say I told you so) is BS -- he
 certainly seems to enjoy it thoroughly in the body of the msg.

 His tone is not one of warning, but more that of a kindergartener saying
 nyah nyah when someone he doesn't like is getting his comeuppance.

 Finally, I am not entirely certain I agree w/ his analysis.  Palm has had
 wireless longer than just about anybody ... how well did the VII do in the
 market?  What about color?  Even sticking w/ Palm and not going to the
 licensees we have the IIIc and the 505.  Finally, even sound is really not
 that much in demand for a PDA.  It is a cute novelty, but even the people
I
 know who have a WinCE device don't use the gimmicky little audio memo
 feature.

 Memory.  Battery life.  Ease of use.  Speed.  Those are what Palm has
 focussed on, and they've done a pretty good job. They're adding the rest
as
 they can.  A bit slower than some of us think they should, perhaps, but
 they're adding them.

 I think the next generation w/ the ARM processor is going to address a lot
 of the horsepower issues.  With that horsepower will come the ability to
 play MP3s (if you really want to waste that much of your memory on them
...)
 Wireless will probably remain a high-end option (unless Bluetooth finally
 takes off).  Color is, of course, necessary in the future models.  I don't
 really think it will be long before BW is no longer offered.

 So yes, Jeremy, I _don't_ like Mr. Davis' tone.  And if you want people to
 seriously consider what you are saying, that is something you have to take
 into account.


 --
 -Richard M. Hartman
 [EMAIL PROTECTED]

 186,000 mi/sec: not just a good idea, it's the LAW!




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



menu / AysAppLaunch problem

2001-09-17 Thread Collin R. Mulliner (list account)

Hi,

in my app I launch a other via SysAppLaunch from a menu, if I use the 
shortcut (e.g. /L) it works, if I open the menu by tapping the titlebar or 
the menu button and select the item from the menu list - the app called 
with SysAppLaunch crashes.

The code wich handles the menu item looks like this:

--- snip ---
casecmd_runApp:
handled = true;
runApp();
break;
--- snip ---

What could be the problem ?


thanks ... Collin


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



OT--RE: I hate to say I told you so but..

2001-09-17 Thread Kenneth S. Rhee

Perhaps PocketPC might be easier to program, but difficult to use.

I would much rather have programmers (including myself) suffer and let the
users enjoy the simplicity--not the other way around.

I had a professor in college forced me to write a one-page paper on Plato.
Believe me I suffered through a couple of weeks on this.  I thought it would
be a lot easier to write multiple pages to say what I want to say, but such
format forced me to think about what's essential and not essential.  Also,
the final product looked a lot better as a result of my sufferings.

Also, one of the important things about Palm is backward compatibility, and
so far I have suffered minimum inconvenience for Palm, while I have stopped
using my own WinCE devices altogether.



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



Can someone show me how to get this table example working with text

2001-09-17 Thread Johnathan Smith

Can anyone show me how to get this table working with
text and not labels

/**
 *
 * Copyright (c) 1999 Palm Computing, Inc. or its
subsidiaries.
 * All rights reserved.
 *
 * File: Starter.cpp
 *

*/

#include PalmOS.h
#include StarterRsc.h


/***
 *
 *   Entry Points
 *

***/


/***
 *
 *   Internal Structures
 *

***/
typedef struct 
{
UInt8 replaceme;
} StarterPreferenceType;

typedef struct 
{
UInt8 replaceme;
} StarterAppInfoType;

typedef StarterAppInfoType* StarterAppInfoPtr;


/***
 *
 *   Global variables
 *

***/
//static Boolean HideSecretRecords;


/***
 *
 *   Internal Constants
 *

***/
#define appFileCreator   'STRT'
#define appVersionNum  0x01
#define appPrefID  0x00
#define appPrefVersionNum  0x01

// Define the minimum OS version we support (2.0 for
now).
#define ourMinVersion
sysMakeROMVersion(2,0,0,sysROMStageRelease,0)

MemPtr myPtr;
/***
 *
 *   Internal Functions
 *

***/


/***
 *
 * FUNCTION:RomVersionCompatible
 *
 * DESCRIPTION: This routine checks that a ROM version
is meet your
 *  minimum requirement.
 *
 * PARAMETERS:  requiredVersion - minimum rom version
required
 *(see
sysFtrNumROMVersion in SystemMgr.h 
 *for format)
 *  launchFlags - flags that indicate
if the application 
 *UI is initialized.
 *
 * RETURNED:error code or zero if rom is
compatible
 *
 * REVISION HISTORY:
 *
 *

***/
static Err RomVersionCompatible(UInt32
requiredVersion, UInt16 launchFlags)
{
UInt32 romVersion;

// See if we're on in minimum required version of the
ROM or later.
FtrGet(sysFtrCreator, sysFtrNumROMVersion,
romVersion);
if (romVersion  requiredVersion)
{
if ((launchFlags  (sysAppLaunchFlagNewGlobals |
sysAppLaunchFlagUIApp)) ==
(sysAppLaunchFlagNewGlobals |
sysAppLaunchFlagUIApp))
{
FrmAlert (RomIncompatibleAlert);

// Palm OS 1.0 will continuously relaunch this app
unless we switch to 
// another safe one.
if (romVersion  ourMinVersion)
{
AppLaunchWithCommand(sysFileCDefaultApp,
sysAppLaunchCmdNormalLaunch, NULL);
}
}

return sysErrRomIncompatible;
}

return errNone;
}


/***
 *
 * FUNCTION:GetObjectPtr
 *
 * DESCRIPTION: This routine returns a pointer to an
object in the current
 *  form.
 *
 * PARAMETERS:  formId - id of the form to display
 *
 * RETURNED:void *
 *
 * REVISION HISTORY:
 *
 *

***/
static void * GetObjectPtr(UInt16 objectID)
{
FormPtr frmP;

frmP = FrmGetActiveForm();
return FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
objectID));
}


/***
 *
 * FUNCTION:MainFormInit
 *
 * DESCRIPTION: This routine initializes the MainForm
form.
 *
 * PARAMETERS:  frm - pointer to the MainForm form.
 *
 * RETURNED:nothing
 *
 * REVISION HISTORY:
 *
 *

***/
static Char *drow[10];

static void MainFormInit(FormPtr frmP)
{
Int16 i;
TablePtr tableP2 = (TablePtr)FrmGetObjectPtr( frmP,
FrmGetObjectIndex(frmP,MainMyTable) );

for (i=0; i10; i++)
{
TblSetItemStyle( tableP2, i,0, labelTableItem );
drow[i] = (char *)MemPtrNew(7);
StrPrintF( drow[i], Row %d, i+1 );
TblSetItemPtr( tableP2, i, 0, 

Re: OT--RE: I hate to say I told you so but..

2001-09-17 Thread Ed Lineberry



Also, one of the important things about Palm is backward compatibility,
and
so far I have suffered minimum inconvenience for Palm, while I have
stopped
using my own WinCE devices altogether.

Maybe this is where Palm has truly missed the boat.  What better way to
boost
hardware sales than to introduce a shiny new model with all the bells and
whistles but no backwards compatibility?  Slowly, developers only release
for the new models and users are forced to upgrade or face obsolescence.







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



NetServiceAPI and Log-in-Scripts

2001-09-17 Thread Jochen Stappert

Hi,

I  want to write a program that adds a new network entry in the network
panel using the NetServiceAPI. ( I mean the NetServiceAPI you can found
there: http://oasis.palm.com/dev/kb/samples/2370.cfm ).

The problem is, that I need a Log-In-Script for the new network-connection.
I can write a Log-In-Script manually from the network panel, but I want to
do that from my program. Is there any way to do that with the NetServiceAPI,
or is there any other way to add a Log-In-Script to my connection within my
program?

Thank you for any help,

Jochen Stappert





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



Create custom font

2001-09-17 Thread geeta more

Hi, 
   can anybody explain me how to create custom font
and use it in your application? any example is there?
Thanx, in advance
Geeta


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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



French translation from English

2001-09-17 Thread Ian Munro

I am using a .R resource to hold all the strings etc for my application.
I have translated the visible text from English into French for a French
version of the application. When I run the application on the Palm
emulator with a French ROM installed, some of the letters are not
displayed correctly. ie an upper case 'E' with a slopping line above it
is displayed as three dots eg '...' None of the French letters with
accents are displayed correctly on the Palm, but are fine in the
resource. Is there a setting within Codewarrior or Constructor that I
need to change ?

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



RE: Can someone show me how to get this table example working with text

2001-09-17 Thread Karl-Konig Konigsson

...could somebody please write my program for me...

Please, state a question. Sending a complete code file like this, without
resources, is completely useless. Specially since your code is totally
devoid of table related calls. What you have sent is nothing but the CW
starter project's starter.c, and you have done absolutely NOTHING with it.

Seriously, you have been asking table questions for quite a while now, and
gotten quite a number of very nice and relevant answers. How about stop
insulting the intelligence of everybody out here and take the time to
actually sit down and try to understand the tips you have got and the sample
code.

Creating tables, with scroll bars, given the help you have got so far would
take you max 4 hours, given average intelligence, some reading of the docs
and playing with the sample code.

Give it a try and us a break.

Karl-Koenig Koenigsson


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



Re: Can someone show me how to get this table example working with text

2001-09-17 Thread Jamie Macleod

People are a little more inclined to help when it appears that you are
actually making an effort to understand yourself.  If you don't care enough
to read peoples responses, or read the docs/samples, we sure won't care.

Jamie



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



Re: Can someone show me how to get this table example working with text

2001-09-17 Thread Johnathan Smith

I am trying my best but I am new to C/C++ and palm
programming. I got my sample working with labels but I
need text!


--- Jamie Macleod [EMAIL PROTECTED] wrote:
 People are a little more inclined to help when it
 appears that you are
 actually making an effort to understand yourself. 
 If you don't care enough
 to read peoples responses, or read the docs/samples,
 we sure won't care.
 
 Jamie
 
 
 
 -- 
 For information on using the Palm Developer Forums,
 or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

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



Re: OT--RE: I hate to say I told you so but..

2001-09-17 Thread Dave Lippincott

 Perhaps PocketPC might be easier to program, but difficult to use.

I half-heartily agree with the first part of this statement. Two of my
customers, one is deploying on PPC, the other on Palm OS.  The PPC project
is months from deploying because of lack of 3rd party components and
half-completed MS technologies. The Palm OS project has barely begun and is
expected to be deployed in the next 4 weeks.  While the PPC has better C/C++
RAD tools, the backend support is immature.  Generally, once you're done
with the main app, Palm has PPC beat hands down for total system
integration, for now.
The second part of the statement I completely agree with.  PPC may be
feature rich but Palm is just plain easier to use and has a lower total cost
of ownership (as per my own findings).  I deal with few tech-savvy
customers, PPC is too difficult for them to learn and use.  Palm is correct
for adding features to the OS as long as they maintain ease of use.  BTW:
haven't sold a single color Palm yet.

- Original Message -
From: Kenneth S. Rhee [EMAIL PROTECTED]
To: Palm Developer Forum [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 9:53 AM
Subject: OT--RE: I hate to say I told you so but..


 Perhaps PocketPC might be easier to program, but difficult to use.





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



Re: ANSI Lib support for Palm

2001-09-17 Thread Ben Combee

Gaurav Palvia [EMAIL PROTECTED] wrote in message
news:62585@palm-dev-forum...

 Hi folks,
I read the Code Worrior documentation and in the file
 Targeting_Palm_OS.pdf  in the section named MSL for Palm OS
 there is an statement which says:
   Metrowerks Standard Libraries (MSL), which provide ANSI-standard
library
 routines for C and C++ programming, is not yet available for use with
Palm
 OS.

  But in the code worrior IDE there is this folder called MSL.which
contains
 various include and header files for ANSI C/C++
 support.
  My doubt/question is that while developing an application for Palm OS
are
 we supposed to use those include files.As the doc says for Palm there
is
 still no ANSI standard library routines.
  If that is the case i am little confused as why the MSL folder is
provided
 with the CodeWorrior  IDE for Palm.

On CodeWarrior for Palm OS release 7, MSL is provided for two reasons:

1) On Mac OS, if you build a program with the Palm OS Simulator, some of
the Palm OS headers include ANSI C header files.

2) It is possible to use the freestanding subset of the ANSI C headers
on Palm OS.  These are the headers which are only macros and type
definitions and provide information about the compiler.  These include
stdarg.h, stddef.h, and limits.h.



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



floating point format

2001-09-17 Thread Chris Chayka

hi, could somebody describe the exact floating point format (at bit level)
for a 32 bit float used on the palmOS with codewarrior 4?  How would the
mantissa, exp, sign be for a number such as 2.5? Thanks very much.


Chris Chayka
[EMAIL PROTECTED]


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



Re: Hide control

2001-09-17 Thread Holger Klawitter

RedStar wrote:
 
 Hello All,
 Everybody now, how i can hide labels and fields from form. I try to use functions
 CtlHideControl and CtlSetUseble(false) - it work only for checker, but
 not for label and field

Labels and fields are not Controls, some of the Ctl* functions work
for other types of GUI elements more or less accidentaly.

As mentioned in the Palm OS Reference at CtlHideObject you should use
FrmHideObject instead. Same thing for FrmShowObject.

With kind regards / Mit freundlichem Gruß
Holger Klawitter
--
Holger Klawitter
[EMAIL PROTECTED] http://www.klawitter.de



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



multiple choice quiz

2001-09-17 Thread martin.k

hey palm-dev.

i.m new to palm development (yeah, yeah... heard that before, leave 
us alone... heh) and i.m in the situation of having to develop a 
multiple choice quiz, for palm...

now, i don.t want any code... i got my c++  palm bible for that... 
i.m just gonna outline very quick how i thought to go about it and 
you could please tell me with your palm-experience if i.m gonna do 
any no-nos and if so please tell me the apropriate yes-yes(s)...

allright...

the game.s gotta be 30 questions with thre answers each...

so first i thought, a form for each question... then i thought, no way...

second thought :: a form with three checkboxes and dynamic labels + 5 
lists with the question ,answer1, answer2, answer3, correct answer...

get a random number, display the question + dynamically label the 
labels with the answers...

if the user checks a box, get the right answer, display and delete 
the items from the 5 lists...

next round...

is this doable..!? should i go home an play with the kids again...

tear into me, please...

---
martin.k
-- 

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



RE: multiple choice quiz

2001-09-17 Thread Avilla, Dane

I would go w/ door #2 and use dynamic labels and use some random number
generators and populate the form w/ questions/answer data from a DB.

My 2c.

-DGA

 so first i thought, a form for each question... then i 
 thought, no way...
 
 second thought :: a form with three checkboxes and dynamic labels + 5 
 lists with the question ,answer1, answer2, answer3, correct answer...
 
 get a random number, display the question + dynamically label the 
 labels with the answers...
 
 if the user checks a box, get the right answer, display and delete 
 the items from the 5 lists...
 

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



Re: I hate to say I told you so but..

2001-09-17 Thread Bradly J. Barton

 whose career is now mixed up with this device, I don't think this
 sentimentality is a good idea.

I never tried to imply that my comments were based on sentiment. Nor do I
have my head buried in the sand as some others have suggested. If either one
of those were true, I'd be trying to make some sort of claim that Palm made
a mistake in supporting color or expansion slots. I said, Palm is working on
adding things to their device and OS. At the same time, Microsoft is working
on reducing the complexity of PocketPC. Just like you can't take the Wright
Brothers' plane and turn it into a Cessna overnight, you can't take a Jumbo
jet and make it a Cessna either. This is where I see the two devices. One is
currently simple and becoming more complex and the other is complex trying
to become simpler.

The real difference I see is priorities.. Palm is trying to make sure that
backward compatibility is maintained (with the similar 99% that the PC has
tried to keep over the years) and Microsoft has apparently not cared. I
remember when Windows NT 3.1 was originally announced to a select group of
developers (this was in 91 or 92, well before it was public knowledge)..
they said they planned to do away with support for DOS applications in that
version and they were almost shouted out of the room by the developers..
they learned with that product, I'm suprised its never been a priority with
them for the Pocket PC. But this isn't so much about Microsoft as it is
Palm.

 Anyway, here's the reason I bought an iPAQ: they are vastly easier to
 program. Palm's API makes even the simplest programming tasks arduous.

I have to disagree with you here. I have found the CE approach to be
extremely difficult. Multiple targets for different processors and screen
sizes, complex installation scripts using Microsoft's packaging, and the
tedious way in which they implemented the synchronization technology all
combine to make programming nearly as complicated as using one. And
explaining to a barely technical client that its not a bug that the iPAQ
image they took from another user didn't work on their Journada is more than
even my patience can take sometimes. Palm's API could be easier, to be
certain.. but only at risk of that priority of backward compatibility.

What would I like to see Palm add? Better sound, yes.. and a more aggressive
campaign to have third party developers create expansion modules (I would
rather have seen them support an existing standard such as CF, but that
horse is already out of the barn). But it comes back to what you think the
user really wants to use their Palm for.. a personal digital assistant or a
Pocket PC. Its the same question I ask family, friends, and clients when
they ask me what device I would recommend for them.. what do they want to
use it for?

Wireless may be the killer technology addition, but before you start
clamoring about what they have in Japan and Europe, do a better analysis of
what wireless infrastructure is available there vs. here. Broadband wireless
is virtually non-existent in the US not because of a lack of devices, but
because of a lack of a standard. Too many wireless companies competing for
their standard instead of a single, government controlled approach... not
to mention the sheer difference in the amount of geography. But please don't
turn this into a political discussion on which is the better approach for
infrastructure.. you can argue until your skin turns blue and it won't
change a thing on that front. The only way to do that part right is to have
expansion technologies (SD, MMC, CF, etc) in your device and leave it up to
the 3rd party groups to make the devices for the current wireless
technologies.

Also to echo what someone else said.. I haven't had a corporate client ask
me for a color device yet, either. I've seen the opposite for the areas in
which I tend to work and Symbol released a monochrome CE device to support
that..



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



Re: floating point format

2001-09-17 Thread Steve Mann

hi, could somebody describe the exact floating point format (at bit level)
for a 32 bit float used on the palmOS with codewarrior 4?  How would the
mantissa, exp, sign be for a number such as 2.5? Thanks very much.

I believe that's covered in the CodeWarrior docs--Inside CodeWarrior 
Targeting Palm OS. If not, it's ANSI-standard formats. That 
information should be on the Internet somewhere. Also, you might try 
looking at the Mathlib header files.

Regards,
Steve Mann
-- 
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
---
805.784.9461  805.784.9462 (fax)
[EMAIL PROTECTED]   http://www.cdpubs.com

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



Re: multiple choice quiz

2001-09-17 Thread Steve Mann

second thought :: a form with three checkboxes and dynamic labels + 
5 lists with the question ,answer1, answer2, answer3, correct 
answer...

Based on the minimal information you've provided, this makes sense to me.

Regards,
Steve Mann
-- 
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
---
805.784.9461  805.784.9462 (fax)
[EMAIL PROTECTED]   http://www.cdpubs.com

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



RE: BeOS Response to RE: I hate to say I told you so but..

2001-09-17 Thread Avilla, Dane

 General question: is that BeOS's response or yours?

Mine.

 One point that your analysis tends to overlook is the 
 desktop/enterprise
 server to handheld connection. This has been increasingly 
 important. As more
 and more data exists in a Microsoft world, the PocketPC has 
 an opportunity
 to gain a significant advantage. PDAs need to share data, 
 transfer media,
 and perform functionality (sometimes limited) along with 
 other computers in
 order to truely be useful. Palm has done an alright job with 
 HotSync thus
 far. The ability to easily transform data will increasingly 
 play a key role.

Agreed.  M$ dominance of the desktop and their recent release of SQLServer
for CE gives them leverage to pull in SQLServer customers to WinCE.
However, an interesting note is that many shops don't use SQLServer, it's
not on their standards list, and won't be in the forseeable future, and
since SQLServerCE needs SQLServer on the desktop, WinCE isn't an option...
My experience leads me to believe Palm and its partners (specifically
IBM/ExtendedSystems, PumaTech, and Sybase) have a more 
compelling solution than the M$ from server-to-desktop-to-pda mantra of
SQLServer.

I'll also echo Dave Lippencott's comments about not selling color devices:
most enterprise customers I've run across don't give two shakes about color.
They want a device for a specific function, and it's all about ROI.  8MB BW
PalmOS devices are cheap, have great battery life, and have more than enough
memory.  For all the individual early adopters out there who have to get the
latest and greatest (paraphrasing someone else on this: to play w/ for a few
months and then leave on the shelf) sure, they're all buying iPAQs because
that's cool and sarcasmYou can watch movies on it!/sarcasm but
they're the ones carrying a bulky PDA everywhere, while my Palm V humms
along in my pocket.

-DGA

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



Re: Can someone show me how to get this table example working with text

2001-09-17 Thread Dave Lippincott

My suggestion is to take the time to learn and understand C/C++ programming
outside of the Palm OS.  The Palm OS not a very good platform for the
beginner.  Too many caveats and non-standard C APIs.
Its kind of like trying to drive a tractor-trailer before you learn to drive
a car or even know the rules of the road.

- Original Message -
From: Johnathan Smith [EMAIL PROTECTED]
To: Palm Developer Forum [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 11:04 AM
Subject: Re: Can someone show me how to get this table example working with
text


 I am trying my best but I am new to C/C++ and palm
 programming. I got my sample working with labels but I
 need text!


 --- Jamie Macleod [EMAIL PROTECTED] wrote:
  People are a little more inclined to help when it
  appears that you are
  actually making an effort to understand yourself.
  If you don't care enough
  to read peoples responses, or read the docs/samples,
  we sure won't care.
 
  Jamie
 
 
 
  --
  For information on using the Palm Developer Forums,
  or to unsubscribe, please see
 http://www.palmos.com/dev/tech/support/forums/


 __
 Terrorist Attacks on U.S. - How can you help?
 Donate cash, emergency relief information
 http://dailynews.yahoo.com/fc/US/Emergency_Information/

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




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



Re: Can someone show me how to get this table example working with text

2001-09-17 Thread Johnathan Smith

Thanks, 

   but I have to get this project done.  Do you think
that anyone can help??  

--- Dave Lippincott [EMAIL PROTECTED] wrote:
 My suggestion is to take the time to learn and
 understand C/C++ programming
 outside of the Palm OS.  The Palm OS not a very good
 platform for the
 beginner.  Too many caveats and non-standard C APIs.
 Its kind of like trying to drive a tractor-trailer
 before you learn to drive
 a car or even know the rules of the road.
 
 - Original Message -
 From: Johnathan Smith [EMAIL PROTECTED]
 To: Palm Developer Forum
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, September 17, 2001 11:04 AM
 Subject: Re: Can someone show me how to get this
 table example working with
 text
 
 
  I am trying my best but I am new to C/C++ and palm
  programming. I got my sample working with labels
 but I
  need text!
 
 
  --- Jamie Macleod [EMAIL PROTECTED] wrote:
   People are a little more inclined to help when
 it
   appears that you are
   actually making an effort to understand
 yourself.
   If you don't care enough
   to read peoples responses, or read the
 docs/samples,
   we sure won't care.
  
   Jamie
  
  
  
   --
   For information on using the Palm Developer
 Forums,
   or to unsubscribe, please see
  http://www.palmos.com/dev/tech/support/forums/
 
 
  __
  Terrorist Attacks on U.S. - How can you help?
  Donate cash, emergency relief information
 

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


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

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



Re:Serial Ir on PalmOS = 3.3

2001-09-17 Thread Jim Schram

At 11:08 AM +0200 2001/09/17, Henrik Dalgaard wrote:
Thank you very much, this clue was just what I needed.
The old serial manager works fine on my Visor and my Palm IIIc. It is not
working on the Palm 505 (PalmOS 4.0) though, because serCtlIrDAEnable is no
longer supported. This is at least what the SerControl call tells me.

The new serial manager does not complain about srmCtlIrDAEnable, but it is
appearently not working.

There is a bug in Palm OS 4.0.0 which prevents SrmControl from passing the 
srmCtlIrDAEnable/Disable selectors down to the serial driver plug-in. It's not a 
hardware problem, but it is limited to only those devices running that exact version 
of the Palm OS. This issue has been resolved for future devices, but I do not know if 
a 4.0 System Update will be released for existing devices.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


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



RE: Create custom font

2001-09-17 Thread Raymond Ochoa


i don't know what tools you're using i'm 
using CodeWarrior 6 and here's how i did it:

1.) download xFONT 

2.) go through and create a font and save it, etc. 
this part's not too tough.  it will save as a
*.pfn file.

3.) downloaded the pilRC plugin for CodeWarrior from
aron ardiri's website.  it takes a bit of navigation
but you should find it.

4.) install the plugin, pretty easy.

5.) then, make sure the *.pfn file is in one of your 
folders for you project.  i put it into my Rsc folder

6.) create a *.rcp file and include the line:

FONT 'FONT' FONTID 128 *.pfn

where * is whatever name you want

7.) cross your fingers and compile.  it will generate a 
*.r file which will have a number like this:
data 'NFNT' (20052) {...

8.) now to use it:  i use it before a field like 
this:

///
VoidHandfontHandle;
FontPtr font;
FieldPtrpField;
int nFieldIndex;
int nLength;

//  get a handle on the font resource, the number in
//  the second parameter is the number that is
generated
//  by the pilrc compiler, and it is located in the 
//  *.r file.  The number represents the ID of the
//  font
fontHandle = DmGetResource('NFNT', 20052 );

//  lock the handle
font = MemHandleLock ( fontHandle );

//  define our font, the first parameter
fntAppFontCustomBase
//  is the value 128 = 0x80, which represents the
number we chose
//  to define our font ID as; look in the *.rcp file
for 
//  the value 128; to locate fntAppFontCustomBase
look in the
//  Metrowerks Font.h header file
FntDefineFont ( fntAppFontCustomBase, font );

//  unlock our handle after the font has been
defined
MemHandleUnlock ( fontHandle );


///

9.) i think that's it if i didn't miss anything.
if you don't have CodeWarrior, you can search the
forum and find something related.  there's lots of stuff you just 
have to piece the threads together like a puzzle.

bon chance!





-Original Message-
From: geeta more [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 7:23 AM
To: Palm Developer Forum
Subject: Create custom font


Hi, 
   can anybody explain me how to create custom font
and use it in your application? any example is there?
Thanx, in advance
Geeta


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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

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



How do you use FrmGetTitle

2001-09-17 Thread Nesselhauf, John

Hi, 

I want to do something if a certain form is created. So, I want to get it's
title,
do a string comparison and then do something if it is that particular form. 

By doing this: 

g_pCurTitle = FrmGetTitle(FrmGetActiveForm());

what gets returned is a null string. How do I get the active form?

Thanks.
John

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



RE: How do you use FrmGetTitle

2001-09-17 Thread Avilla, Dane

I'm not exactly sure what you are trying to do, but probably the easier
thing to do is use FrmGetActiveFormID to get the ID of the active form, then
you can compare that against the ID for the form you need.

UInt16 formID = FrmGetActiveFormID();

if (formID == myFormID)
{
// Do stuff
}

Cheers,

-DGA

 -Original Message-
 From: Nesselhauf, John [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 17, 2001 1:09 PM
 To: Palm Developer Forum
 Subject: How do you use FrmGetTitle
 
 
 Hi, 
 
 I want to do something if a certain form is created. So, I 
 want to get it's
 title,
 do a string comparison and then do something if it is that 
 particular form. 
 
 By doing this: 
 
 g_pCurTitle = FrmGetTitle(FrmGetActiveForm());
 
 what gets returned is a null string. How do I get the active form?
 
 Thanks.
 John
 
 -- 
 For information on using the Palm Developer Forums, or to 
 unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
 

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



Screen show app

2001-09-17 Thread Scott Sumner-Moore

Hi, all!

I've been asked to build a demo application that will alternate 
messages with screen shots from the real application. (This is 
not a training device, it's more of a sales tool.)

I was initially asked to have an OK and an Exit button at the 
bottom of each screen (OK to go to the next screen, Exit to, 
well, exit).

I got it working with the buttons, and now they're asking 
instead for a way to have it automatically flow from one screen 
to the next on a timed basis, without the user pressing OK.

So I reworked some things, and I'm now processing the message 
form and the app forms in my event loop without actually using 
event handlers or dispatching events. (I found a presentation on 
palm.com talking about animation, using TimGetTicks() to figure 
out when the next action should occur, and using EvtGetEvent() 
with a 0 or 1 to keep control while time was passing.)

After all that, here are my actual questions (sorry it took so 
long!):

1) When I display a form, I use FrmGetActiveForm() to get the 
form that's currently on the screen, then FrmEraseForm() to 
Erase a form from the display. (Quoting from the SDK 
reference.) Trouble is, FrmEraseForm() doesn't erase the form, 
and my forms bleed-through each other. In other words, if form 
A is currently on the screen, and I then display form B, I see 
the controls for form B, but form A shows through between the 
controls for form B.

2) If I'm to do a screen show, automatically moving from one 
screen to the next, I'd still like to have an Exit button. (Yes, 
I know that they could simply select the system icon and get 
back to the launcher, but this is for people who may not have 
any experience with a PDA.) I can't figure out how to get it as 
a push of the exit button. I get the penDownEvent, but I don't 
get a ctlSelectEvent, the way I do when I'm processing forms 
normally. Any suggestion on how I can tell if they've clicked on 
the Exit button?

Thanks very much,
--Scott Sumner-Moore

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



Connection attempt failed

2001-09-17 Thread Praveen Potineni

Hi All,
I checked the knowledge base for the error but didn't find any answer.
Did any encounter the problem when trying to debug with device.

I'm trying to debug using the device and when i enter shortcut..2 i get
connection attempt failed. please try again.

Does anyone have an idea as to why i'm getting this(Where i'm making a
mistake) and how i can successfully set up device debugging...

Thanks in adavance
Praveen



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



Favorite Palm Programming book: looking for an intermediate book for CW

2001-09-17 Thread DavidK

What is your favorite palm programming book?

I am looking for Codewarrior compatible and for the book to be at a level
that it would be useful for someone who has already written a small palm
program.



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



RE: Can someone show me how to get this table example working wit h text

2001-09-17 Thread Peter Epstein

The most obvious way to get where you want to go is to start at the
beginning of the tutorial and run through it, taking the time you need to
absorb what it has to teach. Buy yourself a good reference manual for C,
such as C - a reference manual, by Harbison and Steele. Use it to get
answers to basic C questions. When you're done with the tutorial, you should
have no problem finding the answers to your questions in the source code
provided for the built in applications. Both the To Do List and Datebook
apps have editable text inside a table. For read-only text, check out Memo
Pad (or the tutorial).
-- 
Peter Epstein

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



RE: multiple choice quiz

2001-09-17 Thread Peter Epstein

Check boxes aren't appropriate for choosing from among three options. For
that, you should use push-buttons, which are the PalmOS equivalent of radio
buttons. Another alternative is a list, in which the user taps on one of
three list items to select the answer. Lists have borders around them, and
this helps make it clear to the user that selecting an item in the list
won't go in to that item, as is often the case with tables.
-- 
Peter Epstein

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



RE: Screen show app

2001-09-17 Thread Peter Epstein

My suggestion is to maintain a normal PalmOS event flow, just like the app
had before you added automatic timed screen advancing. That is, each form
should have an event handler that knows how to handle button presses and
such, and the main event loop should look like the starter app's. Then, when
each form is loaded, set a global variable with the current time plus
whatever delay you think is appropriate. This represents the time to switch
to the next form. Now, change your main event loop slightly so that it
computes a suitable delay rather than using evtWaitForever. This delay
should be such that the time after the delay ends up being the time to
switch to the next form, as you stored in a global earlier. Finally, add a
nilEvent case in each form's event handler to check whether it's time to
switch to the next form, and if so, to do the same thing as pressing the OK
button would have (or just post a suitable ctlSelectEvent). You might also
want to allow the user to press the up or down hard scroll buttons to jump
to the previous or next screen.
-- 
Peter Epstein

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



Re: Screen show app

2001-09-17 Thread Scott Sumner-Moore

Well, I figured out question (1): I checked the Save Behind 
attribute for the forms, and that somehow stopped the bleed-
through.

--Scott Sumner-Moore

 1) When I display a form, I use FrmGetActiveForm() to get the 
 form that's currently on the screen, then FrmEraseForm() to 
 Erase a form from the display. (Quoting from the SDK 
 reference.) Trouble is, FrmEraseForm() doesn't erase the form, 
 and my forms bleed-through each other. In other words, if form 
 A is currently on the screen, and I then display form B, I see 
 the controls for form B, but form A shows through between the 
 controls for form B.

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



RE: Calling an app within an app

2001-09-17 Thread Peter Epstein

Yeah, I had a bit of a tough time getting back into C after years of higher
level language programming. My one piece of advice is to get your hands on a
good C reference manual. This helps answer questions such as operator
precedence, that are obvious to anyone who's been doing C, but not for
people in our situation! I used, and still use, C - a reference manual, by
Harbison and Steele. If you have the time, I also recommend running through
the tutorial. It'll get you up to speed on the basics of Palm application
programming pretty quickly.
-- 
Peter Epstein

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



RE: Screen show app

2001-09-17 Thread Peter Epstein

I expect that if you try running on a modern debug ROM (3.5 or later),
you'll find the bleed-through problem persists. You need to handle
frmUpdateEvents in order to make this work reliably. The debug ROMs are
exposing a failure of your application to work properly when memory is low.
-- 
Peter Epstein

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



Re: This target is not registered

2001-09-17 Thread Tom Frauenhofer


(Sorry it took me so long to get back on this - I've been quite busy...)

On September 9, 2001, Ben Combee wrote:

Tom Frauenhofer [EMAIL PROTECTED] wrote in message
news:62049@palm-dev-forum...
 I have this same problem - both were Pentium (not Pentium II/III/IV)
class
 machines.  This was with CodeWarrior 7.0 or 7.1, any version of PalmOS
ROMs
 for debugging (3.1/3.5/4.0).

 At 12:00 AM 9/9/2001 -0700, Laurie Davis wrote:
 I can use CodeWarrior  POSE to debug on PalmOS 4.0 and 3.5. When I try
to
 use PalmOS 3.0 I get the message This target is not registered when I
try
 to debug.

 Hmmm, I've not personally seen this error --- a few questions:

 1) Is the target not registered dialog being produced by CodeWarrior
 or by POSE?

I'm pretty sure that this is coming from CodeWarrior - I will play with
Pose 3.3 tonight to see if this matters.

 2) What host OS?  Win95, Win98, WinME, NT, 2000?

I've had this on Win98 and 2000 - the only common thread for me is that
these were Pentium class machines (not Pentium II/III, Celeron, or any of
the AMD chips - one was a 200MHz Cyrix chip (Win98), the other a Pentium
233 (Win98 and 2000)).


 3) Have you tried to change the Use TCP/IP setting in the Palm
 Debugger Settings panel?

Yes, I've tried this with both settings - got the same results either way.

Thanks for the help, Ben!


Tom Frauenhofer, [EMAIL PROTECTED] OR [EMAIL PROTECTED]



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



RE: multiple choice quiz

2001-09-17 Thread Scott Johnson

 From: martin.k [mailto:[EMAIL PROTECTED]]
 i.m new to palm development [...]
 now, i don.t want any code... i got my c++  palm bible for that... 

Welcome Martin, I just want to express appreciation that you have obviously
done your homework and lurked on the forum before posting and have therefore
posted a very appropriate and Palm-literate newbie question.  I bet there
are plenty of others who appreciate it as well, and you'll certainly be
rewarded with constructive help from any number of people.

(No, I don't have any actual design advice at the moment.  :-)

-slj-


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



Re: Favorite Palm Programming book: looking for an intermediate book for CW

2001-09-17 Thread Jeremy Neal Kelly

Unfortunately, there is no programming book that isn't loved by some in this
group and hated by others. For my part, I strongly endorse the 'Palm OS
Programming Bible' (not to be confused with the 'Palm OS Bible'). It's
reasonably current and complete, the prose is efficient, and the exposition
very thoughtful. It covers both CodeWarrior and GCC.

DavidK [EMAIL PROTECTED] wrote in message
news:62628@palm-dev-forum...

 What is your favorite palm programming book?

 I am looking for Codewarrior compatible and for the book to be at a level
 that it would be useful for someone who has already written a small palm
 program.




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



Download Databases into Emulator

2001-09-17 Thread Praveen Potineni

Hi,

Does anyone have an idea as to how we can download databases into Palm
Emulator.  The application i'm debugging needs databases to be downloaded.

Thanks in adavance
Praveen




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



RE: Screen show app

2001-09-17 Thread Scott Sumner-Moore

In article 62641@palm-dev-forum, [EMAIL PROTECTED] 
says...
 
 I expect that if you try running on a modern debug ROM (3.5 or later),
 you'll find the bleed-through problem persists. You need to handle
 frmUpdateEvents in order to make this work reliably. The debug ROMs are
 exposing a failure of your application to work properly when memory is low.
 
I'm not sure that that's the case in my particular app -- memory 
is decidedly not low, and the events I'm getting are the 
following (in various orders, depending on what's going on):

winEnterEvent
winExitEvent
frmCloseEvent
frmLoadEvent
frmOpenEvent

So I'm not getting frmUpdateEvent. Also, I *think* I'm using a 
3.5 ROM.

Do I still need to worry about bleed-through if I don't go the 
event handler route? Any other dangers of not using an event 
handler?

Thanks for your suggestions,

--Scott Sumner-Moore

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



Re: Screen show app

2001-09-17 Thread Scott Sumner-Moore

In article 62638@palm-dev-forum, [EMAIL PROTECTED] says...
 
 Well, I figured out question (1): I checked the Save Behind 
 attribute for the forms, and that somehow stopped the bleed-
 through.
 
 --Scott Sumner-Moore
 
  1) When I display a form, I use FrmGetActiveForm() to get the 
  form that's currently on the screen, then FrmEraseForm() to 
  Erase a form from the display. (Quoting from the SDK 
  reference.) Trouble is, FrmEraseForm() doesn't erase the form, 
  and my forms bleed-through each other. In other words, if form 
  A is currently on the screen, and I then display form B, I see 
  the controls for form B, but form A shows through between the 
  controls for form B.
 
 
 
I also figured out question (2), by examining the coordinates of 
the penDownEvent and seeing if they were in the bounds of the 
exit button.

Definitely NOT the normal way of doing things. Probably not the 
best way either. I'll try your suggestion as well, Peter, but in 
the meantime, I've got this kludge working if time grows short.

Thanks again,

--Scott Sumner-Moore

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



RE: menu / AysAppLaunch problem

2001-09-17 Thread Danny Epstein

 in my app I launch a other via SysAppLaunch from a menu, if I use the 
 shortcut (e.g. /L) it works, if I open the menu by tapping the titlebar or

 the menu button and select the item from the menu list - the app called 
 with SysAppLaunch crashes.
 ...snip...
 case  cmd_runApp:
   handled = true;
 ...snip...

I don't see a call to MenuEraseStatus. Just a guess, but try adding this
call and see if the problem goes away.
--
Danny @ Palm

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



RE: Version Number

2001-09-17 Thread Danny Epstein

I am using CW7 and I am trying to change the version
 number in my program to version 1.0.

See my post from Friday for a description of the two different kinds of
version numbers, and how they should be used:

http://www.escribe.com/computing/pcpqa/m47007.html
--
Danny @ Palm

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



Looking for palm penpals

2001-09-17 Thread Johnathan Smith

my AIM name is redhatpusher and I am looking for other
palm programmers to talk to and network with. If you
would like to talk please IM me at redhatpusher

__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

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



RE: Download Databases into Emulator

2001-09-17 Thread Danny Epstein

 Does anyone have an idea as to how we can download databases into Palm
 Emulator.

Dropping a prc, pdb, or pqa file onto Poser's window will install it into
the emulated Palm. This is probably covered in the Poser docs...
--
Danny @ Palm

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



Re: I hate to say I told you so but..

2001-09-17 Thread Jeremy Neal Kelly

Mssrs. Barton and Lippincott make excellent points. My intent, however, is
not to advocate Pocket PC; my purchase and use of the iPAQ is the only
advocacy I think is necessary. Rather, my point is that it's perfectly
reasonable for posters to say 'WinCE has this feature or that advantage; why
doesn't Palm have it?' To mock the poster -- even when their tone is
annoying -- or to laud Palm's many advantages is to completely miss the
point.

These questions loom in my mind, and if someone can answer them, I will be
genuinely grateful:

  1) Why is PalmOS hardware so anemic compared
  with the iPAQ? The standard answer seems to be,
  'Pocket PC devices have to be faster because their
  OS is so inefficient.' This partially -- only partially --
  addresses the speed difference. What about the
  screen resolution, the sound, the RAM? Is battery life
  the reason for this discrepancy? Price surely isn't.

  2) What is Palm doing to make development faster
  and easier? Some might say this isn't Palm's
  problem, but I say it is. CodeWarrior and
  Constructor -- in my humble opinion -- suck. I like
  GCC, but a lot of people are intimidated by it. What
  is to be done?




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



Re: I hate to say I told you so but..

2001-09-17 Thread Bradly J. Barton

Granted these are only my opinion, so take them with a grain of salt.. I
have been a Palm user for years and I currently have 4 different devices on
my desk.. with a half dozen more of various model numbers scattered about my
office.. and among all of those is one lone Journada 545 that I curse at
every time I have to pick it up... but again, that is IMHO..

   1) Why is PalmOS hardware so anemic compared
   with the iPAQ?

The standard answer is, at least in part, true. However, I think it also has
a lot to do with my analogy previously.. the Palm hardware is anemic (I
would prefer to say simpler) because that is all it needs to get its
target job done. It makes for a cheaper device with lower battery
consumption. Palm's approach has always been to keep it simple.. is this the
right approach today? Probably not, given the drop in prices of the
underlying hardware.. this is one of the reasons Palm is moving toward the
ARM based technology. That, by the way, will also allow them to branch into
some of those other areas of complaint.

   2) What is Palm doing to make development faster
   and easier?

A difficult and loaded question. I have used CW from the early days of
Release 4.. I am currently still on Release 6, but plan to upgrade it soon.
There are numerous things that bug me about it.. not the least of which is
its seeming need to override standard Windows controls in favor of things
that look the same, but behave differently. After 4 years or so of it, I've
gotten used to those little quirks... you think it stinks now? Do a search
in the knowledge base for BDWM and see all the complaints that older
versions used to get... like Palm itself, CW is improving.. if only at a
sometimes maddeningly slow pace.

This whole thread started with someone stating that they were screaming for
these things a year ago and now they still don't have them.. and tried to
turn that as some sort of mistake on Palm's part because they didn't listen
to his expertise. Was he right? Maybe on some points.. Palm has got to
look toward Enterprise users now (which is where CE got its real foothold)..
but where Palm is today vs. where Palm was a year ago? They are a lot
healthier and have a lot more plans than the general public may believe. In
the last year, the Palm OS (not entirely at Palm's labs) has improved
resolution, the total number of colors, created a dynamic graffiti area, and
added an additional expansion slot ability... and they did ALL of this
without impacting 99% of existing applications. Now that's what I call
innovation.



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



Re: Favorite Palm Programming book: looking for an intermediate book for CW

2001-09-17 Thread Jeff Wheeler

 What is your favorite palm programming book?

I concur with the recommendation for Palm OS Programming Bible by Lonnon
Foster.

Advanced Palm Programming by Steve Mann (who frequents this list), is also
good, if you happen to be doing one of the advanced things that he discusses
in his book.  You can probably find a list of chapter titles at amazon.com,
etc.

You should, of course, have the current editions of the Palm OS Programmer's
API Reference and the  Programmer's Companion, available from fatbrain.com.




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



Installation Problems

2001-09-17 Thread Carl Wainwright

Palm developers,

Having just installed PRC tools etc, I am having some trouble with header
file inclusions with the sample projects that come with prc-tools v2.0.

I have included as much info as I can to help with solving this

$ echo $PATH
//D/Perl/bin/:/WINNT/system32:/WINNT:/WINNT/System32/Wbem:/prc-tools/H-i586-
cygwin32/bin:/PalmDev/cygnus/cygwin-b20/H-i586-cygwin32/bin:/PalmDev:/PalmDe
v/pilrc:/PalmDev/pose30a7

$ mount
Device   Directory   TypeFlags
c:\temp  /tmpnative  text!=binary
c:\PalmDev\PRC-Tools /prc-tools  native  text!=binary
c:\PalmDev   /PalmDevnative  text!=binary
C:   /   native  text!=binary

$ make
m68k-palmos-gcc -O2 -palmos2   -c multiapp.c -o multiapp.o
multiapp.c:1: System/SysAll.h: No such file or directory
multiapp.c:2: UI/UIAll.h: No such file or directory
make: *** [multiapp.o] Error 1

Anybody know why I get these header file errors.

Am I missing something with my installation!

I have tried all of the sample projects and get other errors like

$ make
m68k-palmos-gcc -c -O2 -Wall -palmos3.5  palm.c
In file included from palm.c:15:
palm.h:19: PalmOS.h: No such file or directory
make: *** [palm.o] Error 1

Kind regards

Carl


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



DATE

2001-09-17 Thread Daniel Ramirez

Hi list, could you tell me how can I get the current date and time??

Thanks

Daniel

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



RE: How do you use FrmGetTitle

2001-09-17 Thread Evan Wise

John,

use :
UInt16 FrmGetFormId( FormType* )
or
UInt16 FrmGetActiveFormID( )

to determine which form is currently active. 
(Can anyone tell me why one call is Id while the other is ID?? I see a
lot of this in the headers)

Much faster (no string compare) and it allows you to change your form titles
without having to 
change your code; just compare the resource ID from constructor.

E/.

This message sent using the Infowave Wireless Business Engine(tm)

Evan Wise
Sprite Herder
infowave
E: [EMAIL PROTECTED]
T: 604 473 3779
F: 604 473 3633



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



Re: I hate to say I told you so but..

2001-09-17 Thread Richard M. Hartman


Jeremy Neal Kelly [EMAIL PROTECTED] wrote in message
news:62592@palm-dev-forum...

 For what it's worth, I don't like his tone either. But though the original
 post indeed smells like a troll, what better place is there to discuss
 Palm's shortcomings? Too many posters view this forum as some kind of Palm
 booster club, and they jump on everyone -- even thoughtful writers -- who
 criticizes Palm. This stifles what could be a very useful debate. As
someone
 whose career is now mixed up with this device, I don't think this
 sentimentality is a good idea. Palm has made mistakes and they apparently
 continue to make them -- who knows this better than this group? And who
has
 more to lose if things don't change?

 Anyway, here's the reason I bought an iPAQ: they are vastly easier to
 program. Palm's API makes even the simplest programming tasks arduous. And
 yes, I know why it's like that -- I don't need to be reminded. Some people
 don't see this as a problem, but I assure you, my employer does. The fact
 is, hardware constraints are no longer -- or at least, no longer have to
 be -- what limits us. Microsoft, despite my loathing for them, has
 demonstrated that they understand this. Palm hasn't.


Actually I do think there are definate shortcomings w/ the Palm
platform  the way it's been handled.  Unfortunately Mr. Davis
doesn't seem to be interested in any sort of discussion, he responds
to everything with feel free to keep your head in the sand.

As for finding that the iPaq is easier to program ... you really
think the Windows API is easy?  You've probably been programming
for it for quite a while and have forgotten the learning curve ...

And we _are_ limited by some hardware constraints.  The biggest
among them is battery life.  Sure, you can pile on the hardware,
but until we get a practical micro fuel cell you're going to end up
w/ very limited battery life.

--
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi/sec: not just a good idea, it's the LAW!




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



formID changes after ctlEnterEvent? (causing read from unused portion of stack)

2001-09-17 Thread Stan Hunter

POSE emulating a PalmVx tells me my app just read from memory in the unused
portion of the stack whenever I tap on a certain popup trigger in a certain
form.  All other popup triggers  lists on that form work fine, as do all
other forms in the application.  On actual PalmVx devices, this does not
cause a percievable problem, but it bothers me that there might be silent
problems building up.  Also, POSE does not complain about taps on this popup
trigger when it's emulating a PalmIIIx.

The event on the queue immediately after the tap is a ctlEnterEvent.  If I
ignore ctlEnterEvents or make the event handler return false for them, the
crash happens after the form's event handler exits and before any other
event gets sent.  Right after my event handler returns false for handling
the ctlEnterEvent, the formID of this form changes in the stack (I can still
see the formID on the stack under PilotMain).  It goes from 1700 to 58868.
Is it supposed to change?  I would think not.  If I hit play in the
debugger, the program then crashes with the error about reading from the
unused portion of the stack, and if I choose debug from that message, the
formID under PilotMain has then been changed to 90 -- another weird value.

I simply cannot think of what might be causing this.  Any ideas?

Thanks,
Stan

[EMAIL PROTECTED]



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



Re: Favorite Palm Programming book: looking for an intermediate book for CW

2001-09-17 Thread Brian Pearson




 You should, of course, have the current editions of the Palm OS
Programmer's
 API Reference and the  Programmer's Companion, available from
fatbrain.com.


Aren't those included with cw?


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



RE: Screen show app

2001-09-17 Thread Peter Epstein

You should expect a frmUpdateEvent (instead of automatic restoring of the
saved-behind bitmap) in the following situations:

- On a debug ROM version 3.5 or newer, all the time, regardless of memory
use

- On a release ROM, only when dynamic memory is too low to allocate space to
save behind.

Use the emulator to test your app with a modern debug ROM, and you'll learn
how it'll work when memory is low.
-- 
Peter Epstein

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



fonts

2001-09-17 Thread Frank Ruiz, MD, FACEP

Are there palm fonts for word processors such as MS Word? I have editors
who need to see what the spacing, indentation, line-wrap, etc., will be
prior to creating corresponding palm database records.

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



RE: editable field

2001-09-17 Thread Peter Epstein

If set up properly, the field will make room for the extra characters,
shifting the stuff after it as necessary. This is a good thing. However, one
of the requirements of the 68000 core is that 16 bit objects must be aligned
to even addresses. It is possible to use byte accesses to reconstruct an odd
aligned 16 bit quantity, but this requires extra code, code that the
compiler will not generate for you. So, rearrange your record structure to
put all fixed length objects at the start, and make sure the 16 and 32 bit
objects are aligned to even addresses, adding padding, or reordering them as
necessary.

The field provides a normal edit environment that inserts characters at the
insertion point. There is no overwrite mode, as old DOS and 8-bit editors
used to have. Of course, you can handle keyDownEvents to try to create an
overwrite mode, but I don't see any easy way to do it. Remember that the
user can pop up a keyboard dialog box and enter text there. This text is
given to your field all at once, with no chance to intervene on a character
by character basis.
-- 
Peter Epstein

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



RE: fonts

2001-09-17 Thread Danny Epstein

 Are there palm fonts for word processors such as MS Word? I have editors
 who need to see what the spacing, indentation, line-wrap, etc., will be
 prior to creating corresponding palm database records.

You can use Constructor to get a pretty close to WYSIWYG view. That's what I
usually do.
-
Danny @ Palm

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



Re: Can someone show me how to get this table example workingwith text

2001-09-17 Thread Hal Mueller

At 9:32 AM -0700 9/17/01, Johnathan Smith wrote:
Thanks,

   but I have to get this project done.  Do you think
that anyone can help??

Sure, lots of us.  You can use 
http://mobilecoders.com/profile/default.asp to search for contract 
developers according to the hourly rate you're willing to pay, or put 
your project out for bids.


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



ANN: DB Scope version 3.0

2001-09-17 Thread Thomas Ward

Tapperware is pleased to announce a new release of DB Scope, version 3.0.
This is a free upgrade for registered users.

DB Scope is a database editor for developers. It lets you define the layout
of a database, and then view each record in the database, divided into
fields according to the layout. The contents of each field are displayed in
a format appropriate for that field, as opposed to simply displaying
everything in ASCII or HEX. DB Scope supports 14 different field types,
including integer types, float, double, string, and date/time types. You can
also modify the contents of a field, add/delete records, create/delete
databases, and much more. Please see:

http://www.tapperware.com/DBScope

for a list of features, sample screens, a users manual, and a free trial
version.

The biggest change in version 3.0 is expansion card support. With version
3.0, you can:

- Navigate through the file system hierarchy
- View the files and directories at each level
- View and modify the names and attributes of files
- Move or copy databases between main memory and an expansion card
- Create and delete files and directories

Please see the updated users manual for complete information.

Tom Ward
[EMAIL PROTECTED]
http://www.tapperware.com



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



Re: Favorite Palm Programming book: looking for an intermediate book for CW

2001-09-17 Thread DavidK

I just checked fat brain and they are $114.

Is there any difference between those and the PDF documents that are
downloadable from Palm?


Brian Pearson [EMAIL PROTECTED] wrote in message
news:62678@palm-dev-forum...




  You should, of course, have the current editions of the Palm OS
 Programmer's
  API Reference and the  Programmer's Companion, available from
 fatbrain.com.
 

 Aren't those included with cw?






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



RE: formID changes after ctlEnterEvent? (causing read from unused portion of stack)

2001-09-17 Thread Peter Epstein

You might want to try testing your app on various debug ROMs. These might
complain about a problem earlier. The value changing in the debugger is
probably a result of the optimizer sharing the space for that variable with
that of another variable. Try setting up a debug target in which all
optimizations are turned off. This helps the debugger present a more
accurate view of the program execution. Reading from an unused portion of
the stack can happen if you return something (as a function result or
parameter) that points to a local variable declared within that function.
-- 
Peter Epstein

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



RE: French translation from English

2001-09-17 Thread Peter Epstein

This is really not my area, but since noone else has answered, I'll give you
what little I can. In the target settings in CodeWarrior, got ot the PalmRez
post linker panel, and check the Transliteration setting. I think it should
be set to Palm OS 3.1 and later. Turn on the Show Warnings checkbox. In
Constructor, open your resource files and look at the project settings at
the bottom of the window. If they're hidden, you may have to click somewhere
to expose them. The last line is Palm OS Target. Again, make sure this is
Palm OS 3.1 and later. From what you say, it sounds like your strings
aren't being entered in Constructor, but rather in a text editor. You might
need to use Constructor to get it to transliterate these characters. It's
easy enough to create a resource file with nothing but string resources in
it. If you use a .R file, I don't think the necessary transliteration
occurs. I could be way off base, but that's my best guess.
-- 
Peter Epstein

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



Camera to Palm Device

2001-09-17 Thread MBarrion

Hi,

Could you help me!!!, please.

How do I call a program  .prc (palmpix.prc) within another  program .prc

___
Does   the camera have palmix the apis to these be called within an
application  palm 

:__

Saludos,
Marco A. Barrionuevo T.
Servicios Profesionales - UNIPLEX S.A.
Dirección: Alpallana E7-212, Quito - Ecuador
Teléfonos: 593 508593, 4, 5,  Fax: 593 500806, Celular 5939 228720
e-mail [EMAIL PROTECTED],  website: www.uniplex.com.ec


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



RE: French translation from English

2001-09-17 Thread Scott Johnson

 From: Peter Epstein [mailto:[EMAIL PROTECTED]]
 You might need to use Constructor to get it to transliterate
 these characters. It's easy enough to create a resource file
 with nothing but string resources in it. If you use a .R file,
 I don't think the necessary transliteration occurs.

Here is the deal, at least on Windows.  To get Constructor resources to
transliterate correctly, indeed you must set the post linker to one of the
Palm OS 3.x settings.  But for Rez (.r) text resources, you must set the
post linker to None because the characters are already in the right code
page.  This basically means you cannot mix Constructor and Rez files in the
same project and get proper transliteration for both.

Too bad, because using Rez for text-only resources is highly desirable.
Sending text files to offsite translators is far preferable to sending a
whole copy of Constructor and the .rsrc files.  Constructor is hard enough
to use for those of us with years of experience.

One solution is this: put all Constructor resources in one CW target and all
Rez resources in another.  Have each target set the post linker
transliteration appropriately.  Build both.  Then have a post-post-link step
where you combine all the resources into the final .prc file.  You can do
this in a batch file or build script using Par from http://www.djw.org.

-slj-


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



Re: fonts

2001-09-17 Thread Nullife

Is that a 'No'?

You've heard of MS Word, right?

-Nullife

Danny Epstein [EMAIL PROTECTED] wrote in message
news:62686@palm-dev-forum...

  Are there palm fonts for word processors such as MS Word? I have
editors
  who need to see what the spacing, indentation, line-wrap, etc., will be
  prior to creating corresponding palm database records.

 You can use Constructor to get a pretty close to WYSIWYG view. That's what
I
 usually do.
 -
 Danny @ Palm





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



RE: Camera to Palm Device

2001-09-17 Thread Kunal Taneja

This is the way to call one application from with in another application
LocalID dbID = DmFindDatabase(0,prcName);
if(dbID)
{
SysUIAppSwitch(0,dbID,0,0);
return true;
}



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, September 18, 2001 10:40 AM
To: Palm Developer Forum
Subject: Camera to Palm Device


Hi,

Could you help me!!!, please.

How do I call a program  .prc (palmpix.prc) within another  program .prc

___
Does   the camera have palmix the apis to these be called within an
application  palm 

:__

Saludos,
Marco A. Barrionuevo T.
Servicios Profesionales - UNIPLEX S.A.
Dirección: Alpallana E7-212, Quito - Ecuador
Teléfonos: 593 508593, 4, 5,  Fax: 593 500806, Celular 5939 228720
e-mail [EMAIL PROTECTED],  website: www.uniplex.com.ec


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


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



RE: fonts

2001-09-17 Thread Danny Epstein

 Is that a 'No'?

A sheepish 'no', but a 'no' indeed. ;-)  AFAIK, we haven't made our fonts
available. I'm not sure what the legal issues would be. On a related note, I
noticed that someone published a pretty good imitation of the Graffiti font
on PalmGear. http://www.palmgear.com/software/showsoftware.cfm?prodID=16456

 You've heard of MS Word, right?

IMHO, 5.1a for Mac was the peak; it's been downhill since then.

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



Re: ANSI Lib support for Palm

2001-09-17 Thread Gaurav Palvia

That means that use of ANSI lib calls is not encouraged on Palm OS as they
increase the code size.
Secondly we can use some header files as they only provide some macros and
type definitions.

I ve one more doubt in that case whether we can use set_new_handler to set
the memory handler.
I tried this in a test app by including new but it gives me compile time
error.So should i draw the onclusion that use of set_new_handler is not
encouraged for Palm OS



- Original Message -
From: Ben Combee [EMAIL PROTECTED]
Newsgroups: palm-dev-forum
To: Palm Developer Forum [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 8:47 PM
Subject: Re: ANSI Lib support for Palm


 Gaurav Palvia [EMAIL PROTECTED] wrote in message
 news:62585@palm-dev-forum...
 
  Hi folks,
 I read the Code Worrior documentation and in the file
  Targeting_Palm_OS.pdf  in the section named MSL for Palm OS
  there is an statement which says:
Metrowerks Standard Libraries (MSL), which provide ANSI-standard
 library
  routines for C and C++ programming, is not yet available for use with
 Palm
  OS.
 
   But in the code worrior IDE there is this folder called MSL.which
 contains
  various include and header files for ANSI C/C++
  support.
   My doubt/question is that while developing an application for Palm OS
 are
  we supposed to use those include files.As the doc says for Palm there
 is
  still no ANSI standard library routines.
   If that is the case i am little confused as why the MSL folder is
 provided
  with the CodeWorrior  IDE for Palm.

 On CodeWarrior for Palm OS release 7, MSL is provided for two reasons:

 1) On Mac OS, if you build a program with the Palm OS Simulator, some of
 the Palm OS headers include ANSI C header files.

 2) It is possible to use the freestanding subset of the ANSI C headers
 on Palm OS.  These are the headers which are only macros and type
 definitions and provide information about the compiler.  These include
 stdarg.h, stddef.h, and limits.h.



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


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



Re: ANSI Lib support for Palm

2001-09-17 Thread Ben Combee

Gaurav Palvia [EMAIL PROTECTED] wrote in message
news:62707@palm-dev-forum...

 That means that use of ANSI lib calls is not encouraged on Palm OS as
they
 increase the code size.
 Secondly we can use some header files as they only provide some macros
and
 type definitions.

 I ve one more doubt in that case whether we can use set_new_handler to
set
 the memory handler.
 I tried this in a test app by including new but it gives me compile
time
 error.So should i draw the onclusion that use of set_new_handler is
not
 encouraged for Palm OS

In CW for Palm OS 7, set_new_handler should work, as should the include
of new.  You will need to add a system access path to {Compiler}/MSL,
and you also need to call std::set_new_handler, since this is defined in
namespace std.



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



Re: Create custom font

2001-09-17 Thread Ben Combee

 3.) downloaded the pilRC plugin for CodeWarrior from
 aron ardiri's website.  it takes a bit of navigation
 but you should find it.

Search Google for PilRC CodeWarrior, and you'll go right to the
download page.  Also, an earlier version of the plugin ships with
CodeWarrior for Palm OS 7 in the Thrill Seekers folder.



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



Re: Favorite Palm Programming book: looking for an intermediate book for CW

2001-09-17 Thread Ben Combee

DavidK [EMAIL PROTECTED] wrote in message
news:62693@palm-dev-forum...

 I just checked fat brain and they are $114.

 Is there any difference between those and the PDF documents that are
 downloadable from Palm?

No; they are just printed out and bound into a easy to view form.

BTW, the docs included with CodeWarrior have been superceded.  Download
the latest ones from Palm, as they cover the 4.0 SDK and have lots of
documentation fixes.



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



Re: I hate to say I told you so but..

2001-09-17 Thread Ben Combee

   2) What is Palm doing to make development faster
   and easier? Some might say this isn't Palm's
   problem, but I say it is. CodeWarrior and
   Constructor -- in my humble opinion -- suck. I like
   GCC, but a lot of people are intimidated by it. What
   is to be done?

As technical lead for the CodeWarrior for Palm OS team since May, I
can't reveal exactly what we have in store, but I would like to say that
we are working very hard to improve the toolset, and I feel the next
version will be a major improvement for all of our Palm customers.
We're committed to listening to the Palm community and implementing
features to improve the scope of development you can do and to make
building Palm software easier and quicker.

That's all I'm saying for now.  If you think CodeWarrior sucks, let us
know and give us feedback.  I think the core CW toolset for Palm is very
solid: the compiler, the linker, and the debugger.  The IDE has grown
out of a very Macintosh-centric group, and they've missed some needed
functionality in the pursuit of major features like code browsing,
remote debugging, a comprehensive compiler/linker/pref panel plugin
architecture, cross-platform compatibility, file and directory
difference engines, version control interfaces, COM and AppleScript
scripting, and RAD for Java and embedded frameworks.  I'm working with
them to try to get features that Palm developers need implemented for
future versions.

--
Ben Combee, [EMAIL PROTECTED]
Developer weblog: http://www.edithere.com/palmoswerks/



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



Chat on palm room

2001-09-17 Thread manish jaggi

The mailing and waiting for solutions is a really tedious and time consuming 
task if we are stuck .
I have  made a chat room on the  Yahoo messanger.
my id is manishjag



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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



Re: Looking for palm penpals

2001-09-17 Thread manish jaggi

My aim is man5djpr and my yahoo id is manishjag
lets chat now


From: Johnathan Smith [EMAIL PROTECTED]
Reply-To: Palm Developer Forum [EMAIL PROTECTED]
To: Palm Developer Forum [EMAIL PROTECTED]
Subject: Looking for palm penpals
Date: Mon, 17 Sep 2001 12:20:42 -0700 (PDT)

my AIM name is redhatpusher and I am looking for other
palm programmers to talk to and network with. If you
would like to talk please IM me at redhatpusher

__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

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


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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



Not enough memory error

2001-09-17 Thread manish jaggi

I have a palm m100 (2 mb) and m105(8mb)

In my application i have an array of size 28k (It is large i know)
my OS is 3.x+ .
My application runs fine on the m105 but gives a Not enough memory error


Does it is related to stack size.
Is the stack size dependent on the memory available

Please Help me out
Manish
Chat id yahoo manishjag

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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