Re: Blocking Alarms?

2001-01-27 Thread Alex Robinson

Scott,

I can say from bitter experience that you had better be in a very
controlled environment if you are filtering alarms. Or else you should
consider a 900 number to handle support.

There are *plenty* of programs out there with, ah, funky code in their
alarm handling code. The OS, itself (depending upon version and device),
is not without wrinkles in this area, too.

Consider that VII's use alarming for radio battery charging purposes.
And consider silent alarms from programs that do their updating in the
middle of the night.

Good luck.

Alex


Scott Gruby wrote:
> 
> In my application, I have a need to block all alarms. In my event loop,
> I look for the vchrAlarm and just continue; this works fine, except for
> the fact that the alarm sound is played BEFORE I get to process the
> event. The documentation says that the alarm trigger is setup in
> EvtGetSysEvent. Is there an easy way for me to check to see if there is
> a system event available, looking at the queue to see if the next event
> is an alarm and then ignoring it? How do I get the location of the
> system event queue?
> 
> Other ideas?
> 
> --
> Scott Gruby
> [EMAIL PROTECTED]
> 

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



Re: Getting hd 0 in PalmDebugger to report app symbols?

2001-01-27 Thread Tom Warfel

** Reply to message from "Jun-Kiat Lam" <[EMAIL PROTECTED]> on Thu, 18 Jan
2001 17:48:45 -0600

What is the best way to track down a "Chunk Over-locked" error with the
CodeWarrior R5
running the current Palm OS Emulator?  Clicking on the "Debug" option from POSE 
doesn't seem to make anything happen.  I suspect there's a FAQ for this, but
Search on
the Palm website doesn't seem to be returning any hits.


-Tom Warfel
  [EMAIL PROTECTED] / [EMAIL PROTECTED]

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



RE: Development kit for M505?

2001-01-27 Thread Richard Burmeister

> From: Brian Mathis
>
> What m505? ;) There's no such product as an m505. ;) m505, what's that? ;)
>

As reported by cnet ( http://news.cnet.com/news/0-1006-201-4616749-0.html )
and other sources, the successor to the Palm Vx is "likely to be dubbed the
m505".

As I am about to hit the send button, I notice that you used an inordinate
number of winking emoticons, so perhaps this is not news to you.

--
R. Burmeister
"It's all just speculation 'til I get my hands on one."


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



RE: Databases

2001-01-27 Thread Richard Burmeister

> From: Nicolas Raitman

>> The Database consists on:
>> Cliente (char *) NCliente (Char *)

>   memH = DmQueryRecord(AddressDB,i);
>   Cliente = (DatosCliente *) MemHandleLock(memH);

If I understand what you have said,

1. You have a record structure like

typedef struct
{
  Char * Cliente;
  Char * NCliente;
} DatosCliente;

2. You have written records to a database, "TABLA" (but have not shown the
code you used, so we can't really know what is in the database).

3. You attempt to read a record from that database by querying a record and
casting the result to type DatosCliente.

If the above statements are correct, this can not work with the code you
posted.  If you have written records of type DatosCliente (as described
above) to the database, then each record you have written consists of two
pointers.  I think you wanted to write out strings of characters.

The normal method is to do one of the following:

1. Create a structure of fixed size strings and use that to write and read
from the database.  E.g.,

typedef struct
{
  Char Cliente[20];
  Char NCliente[10];
} DatosCliente;

2. Write two functions, pack and unpack, to convert your data to/from the
compressed format.  E.g.
to convert data from
a)  John Doe\0\0\0\0\0\0\0\0\0\0\0\012345\0\0\0\0\0 to
b)  John Doe\012345\0
Then you use format (a) in your program, but write out format (b).  When you
read the data in from the database, you convert back from format (b) to (a).

See Neil Rhodes book online for examples of packing/unpacking data.




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



Re: Databases

2001-01-27 Thread herry

>  for (i = 0; i < nRecords; i++)
>  {
>//here is where I have the problem, I do not know if I am doing this
ok.
>   memH = DmQueryRecord(AddressDB,i);
>   Cliente = (DatosCliente *) MemHandleLock(memH);
> //when I read Cliente->Nombre, it has anything except what I am looking
for,
> the same happens with


Maybe you are writing to the database the wrong way (did you use DmWrite?).
Remember that the pointer that you get from MemHandleLock is a pointer to
database memory, which is protected.   I'm somewhat paranoid and doubt
CodeWarrior's competence, so I would do this:

for (...)
{
DatosCliente* p = (DatosCliente*) MemHandleLock(memH);
DatosCliente cliente = *p;

}

Herry



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



RE: Databases

2001-01-27 Thread Nicolas Raitman

Alan, in the first place thanks for your cooperation. Here I will post again
some code that I changed according of what you said. I must remember
everyone that I am new, so please I just want a code snippet that Opens a
Database and Reads the Records through it. I show you this code in order to
show you that I try to search a solution but I cannot, it is not that I do
not want to do the work. Hope you and everyone can help,
Thanks

 static DmOpenRef  AddressDB;
 static LocalID  AddressDBID;
 static UInt16   nRecords;
 static Err   err;
 static MemHandle memH;
 static UInt16  i;


 AddressDBID = DmFindDatabase(0, "TABLA");
//I get a valid ID for the Database
 AddressDB = DmOpenDatabase(0, AddressDBID, dmModeReadOnly);
//I get valid pointer

 nRecords = DmNumRecords(AddressDB);
//I get exactly the number of records


 for (i = 0; i < nRecords; i++)
 {
   //here is where I have the problem, I do not know if I am doing this ok.
  memH = DmQueryRecord(AddressDB,i);
  Cliente = (DatosCliente *) MemHandleLock(memH);
//when I read Cliente->Nombre, it has anything except what I am looking for,
the same happens with
//Cliente->NCliente, I do not know where that value comes from, because it
is not the same as what the
//database has.
  FrmCustomAlert(CustomAlert,Cliente->Nombre, Cliente->NCliente,"");
  MemHandleUnlock(memH);
 }

 DmCloseDatabase(AddressDB);


}

-Mensaje original-
De: P. Alan Johnson <[EMAIL PROTECTED]>
Para: Palm Developer Forum <[EMAIL PROTECTED]>
Fecha: Sábado, 27 de Enero de 2001 08:13 p.m.
Asunto: RE: Databases


>Comments below.
>--Alan
>
>> Hi to all. I have sent a code regarding databases. I have made some
>> modifications to it, but yet it does not work, plase
>> help, I have been all the day with this and I cannot solve it!
>> The Database consists on:
>> Cliente (char *) NCliente (Char *)
>> ForExample
>> NicolasRaitman
>> Juan McKeuy
>>
>>
>> typedef struct
>> {
>> char   * Nombre;
>> char  * NCliente;
>> } DatosCliente;
>>
>> DatosCliente * Cliente;
>>
>> static DmOpenRef  AddressDB;
>> static LocalID  AddressDBID;
>> static UInt16   nRecords;
>> static Err   err;
>> static MemHandle mHandle;
>> static UInt16  i;
>>
>>
>> AddressDBID = DmFindDatabase(0, "COMPOSICION");
>Is a value stored in AddressDBID? In other words, did your database get
>found?
>
>> AddressDB = DmOpenDatabase(0, AddressDBID, dmModeReadOnly);
>Is AddressDB not NULL?
>
>> nRecords = DmNumRecords(AddressDB);
>Does nRecords hold a value greater than 0?
>
>
>> for (i = 0; i < nRecords; i++)
>> {
>>
>>   Cliente = (DatosCliente *)
>> MemHandleLock(MemHandleNew(sizeof(DatosCliente)));
>God knows why you are allocating memory then not releasing it. Perhaps you
>are later on but this isn't obvious.
>
>>   Cliente = (DatosCliente *) DmQueryRecord(AddressDB, i);
>DmQueryRecord returns a handle to a moveable memory location. The sequence
>of events should normally be: Get a handle, Lock the handle to get a
pointer
>to your data type (struct, char, int, whatever you stored), use the data,
>Unlock the handle, go on your merry way.
>
>>   DmReleaseRecord(AddressDB, i, false);
>As the documentation clearly says, use this on records that you've accessed
>utilizing the DmGetRecord function. You didn't use DmGetRecord.
>> }
>>
>>
>>
>> DmCloseDatabase(AddressDB);
>>
>> What's the problem? I cannot get the data the it is on the database,
>> pleaasse what am I doing wrong?
>>
>>
>>
>>
>>
>>
>> --
>> 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/


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



Re: Development kit for M505?

2001-01-27 Thread Brian Mathis

[EMAIL PROTECTED] wrote:

> When will there be developer information on the Palm M505?

What m505? ;) There's no such product as an m505. ;) m505, what's that? ;)

-- 
Brian Mathis
Direct Edge
http://www.directedge.com


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



RE: Databases

2001-01-27 Thread P. Alan Johnson

Comments below.
--Alan

> Hi to all. I have sent a code regarding databases. I have made some
> modifications to it, but yet it does not work, plase
> help, I have been all the day with this and I cannot solve it!
> The Database consists on:
> Cliente (char *) NCliente (Char *)
> ForExample
> NicolasRaitman
> Juan McKeuy
>
>
> typedef struct
> {
> char   * Nombre;
> char  * NCliente;
> } DatosCliente;
>
> DatosCliente * Cliente;
>
> static DmOpenRef  AddressDB;
> static LocalID  AddressDBID;
> static UInt16   nRecords;
> static Err   err;
> static MemHandle mHandle;
> static UInt16  i;
>
>
> AddressDBID = DmFindDatabase(0, "COMPOSICION");
Is a value stored in AddressDBID? In other words, did your database get
found?

> AddressDB = DmOpenDatabase(0, AddressDBID, dmModeReadOnly);
Is AddressDB not NULL?

> nRecords = DmNumRecords(AddressDB);
Does nRecords hold a value greater than 0?


> for (i = 0; i < nRecords; i++)
> {
>
>   Cliente = (DatosCliente *)
> MemHandleLock(MemHandleNew(sizeof(DatosCliente)));
God knows why you are allocating memory then not releasing it. Perhaps you
are later on but this isn't obvious.

>   Cliente = (DatosCliente *) DmQueryRecord(AddressDB, i);
DmQueryRecord returns a handle to a moveable memory location. The sequence
of events should normally be: Get a handle, Lock the handle to get a pointer
to your data type (struct, char, int, whatever you stored), use the data,
Unlock the handle, go on your merry way.

>   DmReleaseRecord(AddressDB, i, false);
As the documentation clearly says, use this on records that you've accessed
utilizing the DmGetRecord function. You didn't use DmGetRecord.
> }
>
>
>
> DmCloseDatabase(AddressDB);
>
> What's the problem? I cannot get the data the it is on the database,
> pleaasse what am I doing wrong?
>
>
>
>
>
>
> --
> 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/



Databases

2001-01-27 Thread Nicolas Raitman

Hi to all. I have sent a code regarding databases. I have made some
modifications to it, but yet it does not work, plase
help, I have been all the day with this and I cannot solve it!
The Database consists on:
Cliente (char *) NCliente (Char *)
ForExample
NicolasRaitman
Juan McKeuy


typedef struct
{
char   * Nombre;
char  * NCliente;
} DatosCliente;

DatosCliente * Cliente;

static DmOpenRef  AddressDB;
static LocalID  AddressDBID;
static UInt16   nRecords;
static Err   err;
static MemHandle mHandle;
static UInt16  i;


AddressDBID = DmFindDatabase(0, "COMPOSICION");
AddressDB = DmOpenDatabase(0, AddressDBID, dmModeReadOnly);

nRecords = DmNumRecords(AddressDB);


for (i = 0; i < nRecords; i++)
{

  Cliente = (DatosCliente *)
MemHandleLock(MemHandleNew(sizeof(DatosCliente)));
  Cliente = (DatosCliente *) DmQueryRecord(AddressDB, i);
  DmReleaseRecord(AddressDB, i, false);
}



DmCloseDatabase(AddressDB);

What's the problem? I cannot get the data the it is on the database,
pleaasse what am I doing wrong?






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



Re: Store binary data in a string resource

2001-01-27 Thread Ben Combee

"Steve Achelis" <[EMAIL PROTECTED]> wrote in message
news:37424@palm-dev-forum...
>
> It looks like it is a problem in Constructor not saving the data (or I'm
> misunderstanding something).
>
> When I open my rsrc file, MyResourceString has ABCDEFG in it (something I
> previously entered).  I backspace over these letters, click the View as
Hex
> button, and enter 0102030405060708.  I save, close, and reopen the file,
and
> MyResourceString is ABCDEFG!  This is very recreatable.
>
> So now I create a NEW string resource, immediately choose View as Hex,
again
> enter 01..08, save and exit.  When I reopen it, this string resource is
> empty!  I'm using Constructor 1.5b7.
>
> If I enter the "string" in hex, unclick View as Hex, re-click View as Hex,
> and then save, close, and reopen, the string usually updated.  There is
> something very strange going on.  In fact, the string that was ABCDEFG
> remains that, even if I enter hex while in View in Hex, toggle back and
> forth, save, exit, etc.  It continues to be ABC...  Anyway, I can get
binary
> data out of the array, if I can get the array stored correctly.

I just tried this out with Constructor 1.6b2, and I was able to reproduce
your problem.  I think the solution is to only save your resources when no
windows other than the project window are open, because otherwise you could
save a version without all changes committed.

Dave, could this be fixed for the 4.0 SDK?

--
Ben Combee
Veriprise Wireless 



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



max web page size

2001-01-27 Thread Jon Leven

Hello,

Is there a limit on the size of a web page that can be downloaded to a Palm VII?  How 
is this related to available RAM (ie, what % of RAM is used for application data 
space)?

Thank You
-jl


Get your small business started at Lycos Small Business at 
http://www.lycos.com/business/mail.html

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



Palette animation on Prism...?

2001-01-27 Thread DIAMOND JEFF

Unforunately, I don't have access to a real Prism yet, but from the dev
docs it seems that the Prism implements palette color modes in true
color, i.e., not with real palettes.

So if you changed the palette colors but didn't redraw an image, you'd
see no change, and palette animation wouldn't be possible.

Has anyone noticed this?
Thanks!
- Jeff



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



RE: Palm Pilot problem - any suggestions?

2001-01-27 Thread Mike Walters


Have you tried re-installing the Palm Desktop software?  Maybe the problem
is in the driver.  Also, make sure that you have a good connection between
the cradle and the serial port.  Finally, do you have access to another
cradle?  That may help narrow down the problem.

Mike Walters
Rose Software


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Timothy
Astle
Sent: Saturday, January 27, 2001 3:05 PM
To: Palm Developer Forum
Subject: Re: Palm Pilot problem - any suggestions?


I tried both of those ways already, and I wasn't sure if there was another
way of doing a reset or not.

Neither way worked unfortunately.

> I would start with a soft reset - just pressing the reset button on the
back
> of the case.  If that doesn't work, usually a hard reset works.  Hold down
> the power key while pressing the reset button.  After a few seconds, a
> prompt will ask if you want to destroy all of your data.  Then you can
> release the power button.  Hopefully you've had a successful backup at
some
> time in the past.  If you select yes, all data will be lost, but it
usually
> fixes the problem.
>
> Mike Walters
> Rose Software

+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+



--
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: Databse access performance...

2001-01-27 Thread DIAMOND JEFF

Thanks, Jeith.

Yeah, that was a typo - I was opening a resource and releasing it.
Now that I'm aware of such drastic differences between the debug and release ROMs, 
I'll only profile under release.

Thanks for your help!
- Jeff

[EMAIL PROTECTED] wrote:

> I don't see DmReleaseRecord calling MemHandleSize.  I see DmReleaseResource
> calling it.  Is that the function you're calling?
>
> I DO see DmReleaseRecord calling MemPtrSize.  But in both of these cases, the
> memory manager calls are being made only in debug ROMs.  You might want to do
> your timing tests on release ROMs in order to get a more accurate profile.
>
> -- Keith
>
> DIAMOND JEFF <[EMAIL PROTECTED]> on 01/26/2001 12:38:57 PM
>
> Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
>
> Sent by:  DIAMOND JEFF <[EMAIL PROTECTED]>
>
> To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
> cc:(Keith Rollin/US/PALM)
> Subject:  Re: Databse access performance...
>
> Well, the POSE profiler said DmReleaseRecord takes about 5,000 cycles and
> DmGetResourceIndex takes about 4,000 cycles. But that's 3
> times slower than I get from straight ticks timing - could all that slow down be
> due to running the POSE profiler?  Or the way
> TimGetTicks works?
>
> It seems the slowest thing is DmReleaseRecord's calling MemHandleSize, which is
> really surprising, since I wouldn't have thought
> MemHandleSize would be so mammoth.  Look how much you instantly learn about the
> PalmOS from a profile dump!
>
> Well, in any case, I appreciate all your help and the bottom line is that record
> access takes at least thousands of cycles vs none
> for feature memory or dynamic chunks.
>
> --
> 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: Palm Pilot problem - any suggestions?

2001-01-27 Thread Timothy Astle

I tried both of those ways already, and I wasn't sure if there was another
way of doing a reset or not.

Neither way worked unfortunately.

> I would start with a soft reset - just pressing the reset button on the
back
> of the case.  If that doesn't work, usually a hard reset works.  Hold down
> the power key while pressing the reset button.  After a few seconds, a
> prompt will ask if you want to destroy all of your data.  Then you can
> release the power button.  Hopefully you've had a successful backup at
some
> time in the past.  If you select yes, all data will be lost, but it
usually
> fixes the problem.
>
> Mike Walters
> Rose Software

+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+



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



RE: Palm Pilot problem - any suggestions?

2001-01-27 Thread Mike Walters

I would start with a soft reset - just pressing the reset button on the back
of the case.  If that doesn't work, usually a hard reset works.  Hold down
the power key while pressing the reset button.  After a few seconds, a
prompt will ask if you want to destroy all of your data.  Then you can
release the power button.  Hopefully you've had a successful backup at some
time in the past.  If you select yes, all data will be lost, but it usually
fixes the problem.

Mike Walters
Rose Software



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Timothy
Astle
Sent: Saturday, January 27, 2001 2:41 PM
To: Palm Developer Forum
Subject: Palm Pilot problem - any suggestions?


I have a palm pilot that has mysteriously acquired a syncing problem.  (I
say mysteriously because it never left the cradle during the month I never
touched it.)

I eliminated the chance of it being a software syncing problem (testing it
on various machines) and I also eliminated the chance of it being a cradle
problem.

What is happening is when I press the hotsync button the cradle, the
"Connecting with the desktop using DirectSerial" pops up.  Normally what it
would do is the middle graphic would "animate".  However, now it just sits
there.  After about 1 minute, an error message pops up saying.

"The connection between your handheld computer and the desktop could not be
established.  Please check your setup and try again."

The Palm itself seems to work fine (Palm Vx) except it won't sync.  Has
anyone ever seen this?

Would anyone know if I did a certain type of "reset" or perhaps flash the
palm (somehow) if it would fix this problem?  Procedures would be much
appreciated... as well as any ideas.

Thanks,

+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+



--
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/



Palm Pilot problem - any suggestions?

2001-01-27 Thread Timothy Astle

I have a palm pilot that has mysteriously acquired a syncing problem.  (I
say mysteriously because it never left the cradle during the month I never
touched it.)

I eliminated the chance of it being a software syncing problem (testing it
on various machines) and I also eliminated the chance of it being a cradle
problem.

What is happening is when I press the hotsync button the cradle, the
"Connecting with the desktop using DirectSerial" pops up.  Normally what it
would do is the middle graphic would "animate".  However, now it just sits
there.  After about 1 minute, an error message pops up saying.

"The connection between your handheld computer and the desktop could not be
established.  Please check your setup and try again."

The Palm itself seems to work fine (Palm Vx) except it won't sync.  Has
anyone ever seen this?

Would anyone know if I did a certain type of "reset" or perhaps flash the
palm (somehow) if it would fix this problem?  Procedures would be much
appreciated... as well as any ideas.

Thanks,

+
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+



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



Re: FrmCustomAlert & Invalid Field Insertion Point one last? time

2001-01-27 Thread Ken Krugler

At 12:00am -0800 01-01-27, Palm Developer Forum digest wrote:
>Subject: FrmCustomAlert & Invalid Field Insertion Point one last? time
>From: "Chris DiPierro" <[EMAIL PROTECTED]>
>Date: Fri, 26 Jan 2001 09:39:41 -0500
>X-Message-Number: 10
>
>I thought I had solved all of these, but Gremlins turned up another.
>
>I've got a FrmCustomAlert call that calls an alert with a single ^1 in it.
>
>It works fine except when the string passed to ^1 has a newline in it. Now,
>normally this isn't the case, but Gremlins can put a lot of odd things in
>your app, so this is causing a Gremlins crash.
>
>I *THOUGHT* the appropriate thing to do in this situation is just have:
>FrmCustomAlert (TheAlert, TheString, NULL, NULL)
>
>Since there's no ^2 or ^3 in the alert. But I've tried " " in place of the
>NULLs as well and still get the error.
>
>If I make a function that strips newlines and use that on the string, all
>works, but some how I don't feel as if I should have to do that.
>
>Can someone offer advice?

This is a known problem with debug ROMs, where any alert which winds 
up with one or more linefeeds at the end of the text message will 
trigger an invalid insertion point warning from the field code.

At 12:00am -0800 01-01-27, Palm Developer Forum digest wrote:
>No, but I can see *exactly* what is happening. The text field generated by
>FrmCustomAlert clearly has the single line property set. So you are stuffed,
>too.

Actually the problem is that the alert code intentionally reduces the 
height of the text field bounding rectangle so that the trailing 
linefeeds are truncated. Unfortunately the insertion point was set to 
the end of the text when the field was created, and the insertion 
point visible flag was also set true, so the field code correctly 
complains about a situation where the insertion point should be 
visible but it isn't.

The only work-around currently is the one you suggest, which is to 
strip off trailing linefeeds yourself.

-- Ken

Ken Krugler
TransPac Software, Inc.

+1 530-470-9200

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



Re: New application architecture. Suggestions Anyone???

2001-01-27 Thread Ralf Meyer

"Charles Martyn" <[EMAIL PROTECTED]> wrote:
> What I need now is a shove in the right direction. What I would like
to do
> is provide a PALM device to each member of our field survey team.
The would
> dial up an ISP and download the surveys into the palm device.. They
would
> then disconnect from the ISP and fill out the surveys. After filling
out the
> surveys they would then dial up the ISP and send the response data
back to
> one of our servers.
>
> We are Using NT / SQL Server as a back end database. Our Web Servers
are in
> front of a proxy server and are running IIS. I am familiar with ASP
> development.
>
> What Books / Tools / Methodologies / Architecture should I use to
build this
> application?

Why build an appliction?
I guess AvantGo would be enough. Set up a web page with forms
that can be filled out.
http://avantgo.com
--
bye
ranf



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



RE: ROM-Files needed

2001-01-27 Thread Steve Mann

>Asking for ROM files in a serious breach of netiquette on this forum.

And sending them it blatantly illegal.

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: Where ths Palm magazines?

2001-01-27 Thread Steve Mann

>For some reason, and
>I dont think Im alone, I far prefer paper things to reading a screen.

Me too, but that essentially triples the production costs unless you 
do a low-end, newsletter-style publication. Above newspaper 
quality,below magazine quality. Do you care if it's good looking? (I 
know, that sounds like a stupid question. Personally, I'm only 
interested in the content.)

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: Store binary data in a string resource

2001-01-27 Thread Steve Achelis

It looks like it is a problem in Constructor not saving the data (or I'm
misunderstanding something).

When I open my rsrc file, MyResourceString has ABCDEFG in it (something I
previously entered).  I backspace over these letters, click the View as Hex
button, and enter 0102030405060708.  I save, close, and reopen the file, and
MyResourceString is ABCDEFG!  This is very recreatable.

So now I create a NEW string resource, immediately choose View as Hex, again
enter 01..08, save and exit.  When I reopen it, this string resource is
empty!  I'm using Constructor 1.5b7.

If I enter the "string" in hex, unclick View as Hex, re-click View as Hex,
and then save, close, and reopen, the string usually updated.  There is
something very strange going on.  In fact, the string that was ABCDEFG
remains that, even if I enter hex while in View in Hex, toggle back and
forth, save, exit, etc.  It continues to be ABC...  Anyway, I can get binary
data out of the array, if I can get the array stored correctly.

Steve


"Richard Burmeister" <[EMAIL PROTECTED]> wrote in message
news:37403@palm-dev-forum...
>
> > From: Steve Achelis
> >
> > Can I store binary data in a string resource?  I know I can enter
> > the string
> > in hex in Constructor, but I'm having trouble extracting it.  For
example,
> > if in hex-mode I enter 0102030405060708 for my string resource, and
then:
> >
> > CharPtr pData = MemHandleLock( DmGetResource(strRsc,
MyResourceString) );
> >
> > and look in pData[0], it isn't 1 (which is what I was expecting)
> >
>
> Strange... I can do it with no problem.  E.g.,
>
> Char s[20];
> Char *pData;
> pData = MemHandleLock( DmGetResource(strRsc, MyResourceString) );
> WinDrawChars(pData, 8, 10, 20);
> StrPrintF(s, "0:%d, 1:%d, 2:%d", pData[0], pData[1], pData[2]);
> WinDrawChars(s, StrLen(s), 10, 30);
>
> draws eight unprintable chars [boxes] at (10,20) and draws "0:1, 1:2, 2:3"
> at (10,30).
> How are you "looking in pData[0]" and what do you see that isn't "1"?
>
>
>



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



New application architecture. Suggestions Anyone???

2001-01-27 Thread Charles Martyn

Hi. I have developed an application that manages marketing surveys. I have
built an IVR and a Web based response capture mechanism and now I want to
add that capability for a PALM device.

I have never built a PALM application before but I have been checking out
the O/S Docs and have downloaded Code Warrior trial and have been able to
create a few simple apps.

What I need now is a shove in the right direction. What I would like to do
is provide a PALM device to each member of our field survey team. The would
dial up an ISP and download the surveys into the palm device.. They would
then disconnect from the ISP and fill out the surveys. After filling out the
surveys they would then dial up the ISP and send the response data back to
one of our servers.

We are Using NT / SQL Server as a back end database. Our Web Servers are in
front of a proxy server and are running IIS. I am familiar with ASP
development.

What Books / Tools / Methodologies / Architecture should I use to build this
application?

Sincerely

Charles R. Martyn




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



Database Programming

2001-01-27 Thread Nicolas Raitman

Hi to all. I am having some problems when attempting to read some records
from a Database. The Database consists on:
Cliente (char *) NCliente (UInt16).
I have the following routine in order to read it but I have no luck in doing
it good. I will appreciate any help.

static DmOpenRef  AddressDB;
static LocalID  AddressDBID;
static UInt16   nRecords;
static UInt16   TableRows;
static TablePtr  pTable;
static UInt16  recordNum;
static Err   err;
static MemHandle mHandle;
static char   sz[120];
static UInt16  i;



AddressDBID = DmFindDatabase(0, "COMPOSICION");
AddressDB = DmOpenDatabase(0, AddressDBID, dmModeReadOnly);
nRecords = DmNumRecords(AddressDB);

  for (i = 0; i < nRecords; i++)
{


  mHandle = (MemHandle) DmGetRecord (AddressDB, i);

  if (mHandle)


   Cliente = (DatosCliente *) MemHandleLock (mHandle);
   StrPrintF(sz, "%s %d", Cliente->Nombre, Cliente->NCliente);
   FrmCustomAlert(CustomAlert, sz, "","");
  }

  MemHandleUnlock(mHandle);
  DmReleaseRecord(AddressDB, i, false);
}

DmCloseDatabase(AddressDB);

}

When I see the alert I can see perfectly well the Cliente->Cliente but not
Cliente->NCliente, what I am doing wrong?
Thanks,
Nicolas


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



Development kit for M505?

2001-01-27 Thread Dreemhaus

When will there be developer information on the Palm M505?


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



What happens to old gadget data?

2001-01-27 Thread Mitch Fawcett

I'm playing around with gadgets and I have a question about the data that
can be stored with them.

Lets say I want to associate an integer with a gadget and I do something
like the following:

VoidHandvh;
FormPtr frm = FrmGetActiveForm();

vh = MemHandleNew (sizeof(UInt16));
if (vh)
{
* (UInt16 *) MemHandleLock (vh) = 1;
MemHandleUnlock (vh);
FrmSetGadgetData (frm, FrmGetObjectIndex (frm, MyGadgetID), vh);
}

What happens to the old data that was associated with the gadget (assuming I
had called the above at least once before)?

And... (somewhat of a C related question I think), if I have a second gadget
named MyGadgetID2, is it legal to follow the above code with this:

FrmSetGadgetData (frm, FrmGetObjectIndex (frm, MyGadgetID2), vh);

Mitch Fawcett
Tapn'see Software
http://www.tapnsee.com
Home of SuperList2


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



Programmatically perform a HotSync

2001-01-27 Thread Stringer

>Subject: Re: Triggering HotSync
>From: Jim Cooper <[EMAIL PROTECTED]>
>Date: Fri, 26 Jan 2001 10:26:08 +
>Alessandro,

>>  I need to trigger an hotsync from my application, 

>If you search the archives of this forum you'll find several discussions
>about this. Basically you can't (short of making hardware
>modifications). I would question why you want to do this anyway. You

>also open up the possibility of errors that hotsync won't be able to
>handle, like the Palm device is not in the cradle.

>Cheers,
>Jim Cooper

Sure you can!  I'm attaching an old post with good information.

Roger Stringer
Marietta Systems, Inc.

Subject: Re: Programmatically perform a HotSync
From: "Bradly J. Barton" <[EMAIL PROTECTED]>
Date: Wed, 26 Jul 2000 14:00:54 -0500

What you need to do is launch the HotSync manager with either the
sysAppLaunchCmdSyncRequestLocal or sysAppLaunchCmdSyncRequestRemote command.
You can use SysAppLaunch or SysUIAppSwitch function to do it.

You can try this, but this function has not been tested.. it is something
that was written in this email and based on something written to launch
clipper.. (Please let me know if this works /grin):

Err StartLocalHotsync(UInt alertbox)
{
   Err err;
   DmSearchStateType searchState;
   UInt cardNo;
   LocalID dbID;

   // find hotsync and launch it
   err = DmGetNextDatabaseByTypeCreator (true, &searchState,
 sysFileTApplication,
 sysFileCSync, true,
 &cardNo, &dbID);
   if (err)
  FrmAlert(alertbox);
   else
  err = SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdSyncRequestLocal,
NULL);

 return err;
}

 (sysFileCSync is declared in SystemResources.h, by the way)


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



Re: ROM-Files needed

2001-01-27 Thread Giles Goddard

>   wont be long before palm lawyers jump on this.. illegal redistribution
>   of rom files.. a big no-no. they are obviously breaking the law.


obviously protecting pre-release ROMs is necessary but i really can`t see
Palm`s logic in not releasing old ROMs to the public. afterall what possible
damage can it do.. has anyone ever heard of people using copilot to store
their addresses? its basically useless without the hardware. the same goes
for charging for 3.5 upgrades..

i`d really hate to see Palm turn into M$..


giles




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



Re: Codewarrior version 7

2001-01-27 Thread Chris Tutty

"Brad Myers" <[EMAIL PROTECTED]> wrote
>
> A friend just got Codewarrior version 7. But there isn't any mention of
> this on the PalmOS web site which still says 6 is the latest version.
> And the Metrowerks site doesn't mention what is new in CW 7. What is new
> in version 7? Can I just keep going with v6 and the newest SDKs from
> Palm? Is there an upgrade price?
>
I asked this about a week ago (22/1/01) and got some good info from
Ben Combee on features.  Check the archive.

Chris Tutty



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



Re: iNet 1402?

2001-01-27 Thread Ben Combee

"Jon Leven" <[EMAIL PROTECTED]> wrote in message
news:37406@palm-dev-forum...
>
> Thanks Ben, could you tell me where I could find a comprehensive listing
of all error codes?  The one I found is either not current or not
comprehensive:
> http://oasis.palm.com/dev/kb/faq/1437.cfm

To see these error codes, you need to download the PalmOS SDK and look in
the header files NetMgr.h and INetMgr.h.  This really isn't a proxy error,
but an internal program error.

--
Ben Combee
Veriprise Wireless 



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



Re: NULL Pointer

2001-01-27 Thread Philip Sheard

> 1) mode is not set in your example

precisely. so the database is opened read only...

> Why does the following code result in my MemHandle newRecordH being equal
to
> 0x? and ultimately throwing an exception?
>
>
> #include "AddToDB.h"
>
> #define DBType 'DATA'
> #define CreatorID 'IDPT'
> #define DBName "LSDB"
>
> DmOpenRef glibDB;
> Err error = 0;
> UInt16 index = 0;
> UInt16 mode;
>
> Err InitDB()
> {
>  glibDB = DmOpenDatabaseByTypeCreator(DBType,CreatorID,mode);
>
>  if (!glibDB)
>  {
>   error = DmCreateDatabase(0,DBName,CreatorID,DBType,false);
>
>   if (error)
>return error;
>
>   glibDB = DmOpenDatabaseByTypeCreator(DBType,CreatorID,mode);
>
>   if (!glibDB)
>return DmGetLastErr();
>  }
>
>  return error;
> }
>
> void AddTextFileToDB(char* NewFile)
> {
>  TextFile newRecord;
>  MemHandle newRecordH;
>  TextFile* newRecordP;
>
>  newRecord.body = NewFile;
>  newRecordH = DmNewRecord(glibDB,&index,sizeof(newRecord)); //Error
> Line!!!
>  newRecordP = (TextFile*)MemHandleLock(newRecordH);
>  DmWrite(newRecordP,0,&newRecord,sizeof(newRecord));
>  MemHandleUnlock(newRecordH);
>  DmReleaseRecord(glibDB,index,false);
>  ++index;
> }
>
> --
> Thanks in advance
> --
> Nikue Harlley
> Veni Vidi Vici
>
>
>
> --
> 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/
>


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