Re: Glib shared libraries and debug problems

2007-08-25 Thread Andrew Woodgate
'stone age' methods - 10 years of staring at 68K code could turn anyone into a 
dinosaur, though that was 15 years ago.

Thanks for the advice, I'll be using tracing methods as well, the OS Reporter 
app seems to work well.

AW

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Glib shared libraries and debug problems

2007-08-24 Thread Andrew Woodgate
Hi,

I have inherited a Palm app that is written as 3 parts, 2 GLIB shared library 
parts and the app itself and would like to debug this using the Palm OS 
Debugger.

In the files window, I add the 3 executables (.prc) and then add the 3 
'Symbolics' files, using the .o files generated by the linker. I then 'locate 
the directories' for each of the source files.

I get to step through the main application code, but the 2 shared parts only 
show as assemlbly code, and the breakpoints I set do not work.
After starting the app, the Low PC of the app changes to the load address, but 
the lib Low PCs do not. They remain as 'Sect(1) +0x' and 'Sect(2) 
+0x'.

The Debug Console window shows just 2 sections loaded: Sect(3) and Sect(0).

Can anyone point me in the direction of a tutorial or offer me some advice on 
how to integrate the shared libs into the debugger please.

Thanks in anticipation.

Andrew

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Glib shared libraries and debug problems

2007-08-24 Thread Andrew Woodgate
Ton, thanks for the reply.  It looks like I'll just have to cope and rely on my 
rusty 68k assembler knowledge then.

Andrew
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: FrmGlueNavObjectTakeFocus - not in lib or include

2007-08-22 Thread Andrew Woodgate
Thanks Ben,

I've installed SDK 5.4, and have the missing function.

Andrew
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


FrmGlueNavObjectTakeFocus - not in lib or include

2007-08-21 Thread Andrew Woodgate
I'm new to PalmOS development, and am compiling an app using OS release 5.3.  
The app was written by someone else and uses the FrmGlueNavObjectTakeFocus 
function.
Whilst the docs say this function exists, it is not in the header or library 
files.
Where is it? or should I be using FrmSetFocus in it's place.

Andrew Woodgate

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


palm codec manager

2007-08-15 Thread Andrew Tamoney
Im trying to play mp3 files in my application and I am using a treo 700P.  I 
thought the treo 700P had support for this feature but whenever A call
  err = SysLibFind(kCodecMgrLibName, gMiniInfo.CodecMgrLibRefNum);
A get error 0x050A which is sysErrLibNotFound which makes me think that the 
700P doesn't support the library.

Does anyone have any experience with this and know which library I should use 
or how to fix this error.
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: How to Use HTTPLib in Palm treo 650

2007-08-10 Thread Andrew Tamoney
Im currently having some trouble with it myself.  Look at the sample
project included with the SDK.  That is really the only documentation
besides the Palm Developers Guide which can be found at
https://dts.pdn.palm.com/cgi-bin/palmdev.cfg/php/enduser/std_adp.php?p_req_pass=1p_faqid=714
I have found that to be very brief and not that helpful.  I have had
the most success with looking at the sample project.
Let me know if you find anything else since I am looking for
additional documentation as well.

On 8/10/07, Jayaseelan [EMAIL PROTECTED] wrote:
 hi,

 Is anybody has knowledge about (HS_HTTPLibConst.h, HS_HTTPLib68k.h...) how to 
 use Httplib in palm. This lib was added in Palm 5.x , I want to know how to 
 program using these headers.

 It wil help me a lot right now.

 Reply soon(Expects favourable reply)

 Regards

 Jayaseelan.V
 --
 For information on using the ACCESS Developer Forums, or to unsubscribe, 
 please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: How to Use HTTPLib in Palm treo 650

2007-08-10 Thread Andrew Tamoney
set up a mail filter and dump it all in the trash if they wont remove your email

On 8/10/07, Muriph, Michael [EMAIL PROTECTED] wrote:

   Can someone manually remove my e-mail from this list?

   [EMAIL PROTECTED]

   I followed the link below, but I cannot seem to unsubscribe

 -Original Message-
 From: %%email.bounce%% [mailto:%%email.bounce%%] On Behalf Of Andrew Tamoney
 Sent: Friday, August 10, 2007 9:46 AM
 To: Palm Developer Forum
 Subject: Re: How to Use HTTPLib in Palm treo 650

 Im currently having some trouble with it myself.  Look at the sample project
 included with the SDK.  That is really the only documentation besides the Palm
 Developers Guide which can be found at
 https://dts.pdn.palm.com/cgi-bin/palmdev.cfg/php/enduser/std_adp.php?p_req_pass=
 1p_faqid=714
 I have found that to be very brief and not that helpful.  I have had the most
 success with looking at the sample project.
 Let me know if you find anything else since I am looking for additional
 documentation as well.

 On 8/10/07, Jayaseelan [EMAIL PROTECTED] wrote:
  hi,
 
  Is anybody has knowledge about (HS_HTTPLibConst.h, HS_HTTPLib68k.h...) how 
  to
 use Httplib in palm. This lib was added in Palm 5.x , I want to know how to
 program using these headers.
 
  It wil help me a lot right now.
 
  Reply soon(Expects favourable reply)
 
  Regards
 
  Jayaseelan.V
  --
  For information on using the ACCESS Developer Forums, or to
  unsubscribe, please see
  http://www.access-company.com/developers/forums/
 

 --
 For information on using the ACCESS Developer Forums, or to unsubscribe, 
 please
 see http://www.access-company.com/developers/forums/


 The information transmitted in this electronic communication is intended only 
 for the person or entity to whom it is addressed and may contain confidential 
 and/or privileged material. Any review, retransmission, dissemination or 
 other use of or taking of any action in reliance upon this information by 
 persons or entities other than the intended recipient is prohibited. If you 
 received this information in error, please contact the Compliance HelpLine at 
 800-856-1983 and properly dispose of this information.

 --
 For information on using the ACCESS Developer Forums, or to unsubscribe, 
 please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Read a file from url and save it in device?

2007-08-09 Thread Andrew Tamoney
I believe there was a question about that on this mailing list in the
past couple of days.  Look through the previous questions.

On 8/9/07, Jayaseelan Vaiyapuri [EMAIL PROTECTED] wrote:


 hi Hynek,

 Thanks for ur reply. And i have another doubt. Is it possible to download
 .gz file in palm.
 If possible means how to save the data into file and how to get the
 decompressed data from it.

 Expects Reply soon


 Regards

 Jayaseelan.V --
 For information on using the ACCESS Developer Forums, or to unsubscribe,
 please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: How to set Category

2007-08-06 Thread Andrew Tamoney
Put something like
LAUNCHERCATEGORY Main or LAUNCHERCATEGORY Games
into your RCP file

On 8/6/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Can I program in a default category for a Palm OS app, like Games so that 
 if that category exists it automatically ends up there instead of unfiled, 
 but doesn't cause a problem if the category doesn't exist?
 --
 For information on using the ACCESS Developer Forums, or to unsubscribe, 
 please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: changing color in a text field

2007-08-02 Thread Andrew Tamoney
I think he means HTML.  I have gotten the HTML library to do colors.
H1 style=background-color: #d26900; color: #ff worked great
for me on one of my webpages and i am sure that similar calls will
work for you.




On 8/2/07, Dmitry Grinberg [EMAIL PROTECTED] wrote:
 I assure you that HTTP library cannot Render anything. It only deals
 with getting data from point A to point B.

 On 8/2/07, Michal Seliga [EMAIL PROTECTED] wrote:
  maybe you could use http library to render text? maybe it knows colors 
  too...
  but i write it without even trying to see if what i write is true..its only 
  a hint
 
  --
  For information on using the ACCESS Developer Forums, or to unsubscribe, 
  please see http://www.access-company.com/developers/forums/
 


 --
 Best Regards, Dmitry Grinberg
 Software Engineer, http://PalmPowerups.com
 (847) 226 9295
 AIM: DmitryGrinberg
 MSN: [EMAIL PROTECTED]
 ICQ: 165589894
 Y! IM: dmitrygr2003

 --
 For information on using the ACCESS Developer Forums, or to unsubscribe, 
 please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: FrmSetEventHandler

2007-07-26 Thread Andrew Tamoney
helpful to know but I already solved it.  My handleEvent was non-static
unlike the other calls

On 7/26/07, luis maldonado [EMAIL PROTECTED] wrote:

 Because your function is not an independent functions but rather a public
 functions withing a class and CW is having trouble with it. you need to
 include the app event loop and the apphandleevent into your class and then
 you should be able to use the callback event handler from within your
 class


 hope this helps



 From: Andrew Tamoney [EMAIL PROTECTED]
 Reply-To: Palm Developer Forum palm-dev-forum@news.palmos.com
 To: Palm Developer Forum palm-dev-forum@news.palmos.com
 Subject: FrmSetEventHandler
 Date: Wed, 25 Jul 2007 15:39:08 -
 
 So im having a little bit of trouble with the FrmSetEventHandler(FormType
 *formP, FormEventHandlerType  *handler).  I am trying to add a new form
 to
 some code and I want to give it a event handler.  Looking through the
 code
 I see this function used in two ways.
   FrmSetEventHandler(frmP, (FormEventHandlerType *)
 (QForm::EventDispatcher));
 
 and
 
 extern Boolean MainFormHandleEvent(EventPtr eventP);
 FrmSetEventHandler(frmP, MainFormHandleEvent);
 
 I have tried to add my own form handler with
FrmSetEventHandler(frmP, (FormEventHandlerType *)
 (QForm::HandleEvent));
 
 and
 
 extern Boolean QForm::HandleEvent(EventPtr eventP);
 FrmSetEventHandler(frmP, QForm::HandleEvent);
 
 in both cases I get:
 Error : illegal explicit conversion from 'void' to
 'unsigned char (*)(struct EventType *)'
 QForm.cpp line 280FrmSetEventHandler(frmP, (FormEventHandlerType
 *)
 (QForm::HandleEvent));
 Why are the other calls working and why can I not get mine to compile
 
 
 --
 For information on using the ACCESS Developer Forums, or to unsubscribe,
 please see http://www.access-company.com/developers/forums/

 _
 Need a brain boost? Recharge with a stimulating game. Play now!
 http://club.live.com/home.aspx?icid=club_hotmailtextlink1


 --
 For information on using the ACCESS Developer Forums, or to unsubscribe,
 please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

FrmSetEventHandler

2007-07-25 Thread Andrew Tamoney
So im having a little bit of trouble with the FrmSetEventHandler(FormType 
*formP, FormEventHandlerType  *handler).  I am trying to add a new form to some 
code and I want to give it a event handler.  Looking through the code I see 
this function used in two ways.
 FrmSetEventHandler(frmP, (FormEventHandlerType *) (QForm::EventDispatcher));

and 

extern Boolean MainFormHandleEvent(EventPtr eventP);
FrmSetEventHandler(frmP, MainFormHandleEvent);

I have tried to add my own form handler with 
FrmSetEventHandler(frmP, (FormEventHandlerType *) 
(QForm::HandleEvent));
 
and 

extern Boolean QForm::HandleEvent(EventPtr eventP);
FrmSetEventHandler(frmP, QForm::HandleEvent);

in both cases I get:
Error : illegal explicit conversion from 'void' to
'unsigned char (*)(struct EventType *)'
QForm.cpp line 280FrmSetEventHandler(frmP, (FormEventHandlerType *) 
(QForm::HandleEvent));
Why are the other calls working and why can I not get mine to compile


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/


Re: Scrolling Fields

2007-07-17 Thread Andrew Tamoney
I have played around a bunch with the page size.  I have set it to one and
also 14 which is the number of lines in the field.  I have set min to 0 and
max to the number of lines in the field so the value of 14 makes the most
sense to me but for some reason that didn't work.

On 7/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hmm, I dunno. Maybe the pagesize is too high? Thus it would jump from
 beginning to end (and vice versa) in one click.

 - Original Message 
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: Palm Developer Forum palm-dev-forum@news.palmos.com
 Sent: Monday, July 16, 2007 11:12:10 AM
 Subject: Scrolling Fields

 I'm trying to set up a field in my application that works with a scroll
 bar. I have everything laid out but I am having trouble getting the field to
 respond to changes in the scrollbar. The field just stays put or jumps all
 the way to the end or the beginning when I attempt to move the scrollbar.
 When I move through and edit the field the scrollbar responds perfectly it
 just doesn't work the other way around. Here is the function that I call
 when I receive the SclRepeatEvent.

 Boolean MainForm::updateField(Int16 oldpos, Int16 newpos, struct
 ScrollBarType * bar)
 {
 struct FormType * frmP = FrmGetFormPtr(Messages);
 FieldType *field;
 UInt16 fieldIndex;
 fieldIndex = FrmGetObjectIndex(myForm, Messages);
 field = (FieldType *)FrmGetObjectPtr(myForm, fieldIndex);
 UInt16 scrollPos = 0;
 UInt16 textHeight = 0;
 UInt16 fieldHeight = 0;
 UInt16 maxValue = 0;
 const char * myChars = FldGetTextPtr(field);
 fieldHeight = FldCalcFieldHeight(myChars, 140);
 Int16 minimum = 0;
 Int16 maximum = 0;
 Int16 value;
 Int16 pageSize;
 UInt16 linesToScroll = (UInt16) newpos - oldpos;
 WinDirectionType direction = winUp;
 if(linesToScroll0)
 {
 linesToScroll = -1 * linesToScroll;
 direction = winDown;
 }
 FldScrollField (field, linesToScroll,direction);
 // Update the scroll bar.
 SclGetScrollBar (bar, value, minimum, maximum, pageSize);
 if (direction == winUp)
 {
 value -= (Int16) linesToScroll;
 }
 else
 {
 value += (Int16) linesToScroll;
 }
 SclSetScrollBar (bar, value, (Int16) 0, (Int16) fieldHeight,
 pageSize);
 return true;
 }
 --
 For information on using the ACCESS Developer Forums, or to unsubscribe,
 please see http://www.access-company.com/developers/forums/




 --
 For information on using the ACCESS Developer Forums, or to unsubscribe,
 please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

TonesLibPlayTone in AlmSetProcAlarm + Treo 650 CDMA == Crash

2006-10-04 Thread Andrew McMillan
Here is the scenario, and it is very specificly on a Treo 650 CDMA 
(Verizon/Sprint):

I use AlmSetProcAlarm to call a procedure at a specific time.
The procedure basically plays a tone over and over again, until interrupted.
e = SysLibLoad(tonesLibType, tonesLibCreator, nLibRefNum);
if( ( ! e )  (nLibRefNum != sysInvalidRefNum) )
{
  e = TonesLibOpen(nLibRefNum);
  if( ! e )
  {
do
{
  e = TonesLibPlayTone(nLibRefNum, oToneId, 1, toneVolume5, 
toneVibrateNone, true);
  if( ! e )
  {
if(EvtSysEventAvail(true))
{
  e = sndErrInterrupted;
} // if(EvtSysEventAvail(true))
  } // if( ! e ) from TonesLibPlayTone
} // do
while( ! e );
TonesLibClose(nLibRefNum);
  } // if( ! e ) From TonesLibOpen
  SysLibRemove(nLibRefNum);
} // if( ( ! e )  (nLibRefNum != sysInvalidRefNum) ) from SysLibLoad

Everything works fine until the tone is playing, and a caller calls into the 
phone, and then the caller disconnects (not the callee) before it is answered. 
When this happens, the screen stays up that the call is coming in, and I can 
switch between the anser/hangup buttons...but when I select either of them, 
nothing happens. I have traed into the code, and it goes into 
TonesLibPlayTone...but never comes back out.

Any ideas what I might be doing wrong? The Attention Manager does not seem to 
have this problem, so I assume I am doing something wrong...

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


Progress Bar Usage

2006-07-30 Thread Andrew Scheurer
Is there any experience using the progress bar for a long operation. I have the requirement of a mathematical operation that may take some time and I need to turn off the automatic battery shutoff, allow the user to cancel the operation, and continously run the progress bar as I'm not sure exactly how long the operation will run.  
Regards,
Andrew Scheurer
858-449-2557 
	
		See the all-new, redesigned Yahoo.com.  Check it out.

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

Re: No of records

2006-07-24 Thread Andrew Scheurer
My question on how many allocations should have been
restated to ask 
What is the maximum total heap for a given
application
I'm not clear as to whether 64K is the total heap for
a given app or whether its the largest single call one
to make to allocate memory. I'm using malloc,free
right now which I think in CodeWarrior is mapped to
MemPtrNew, MemPtrFree and probably the same in GNU.
I'm hoping this depends on the Device, an 8MB device
would presumably over more usable heap than a 4MB
device.

 Is MemSemaphore*
 functions are supported in all m68k devices.
I'd need read/write access for the algorithm and would
use heap for that as it would be variable.

I can't seem to find any informationon MemSemaphore in
Rhodes, McKeehan or Foster. Is this a 68K Palm OS
function?
Evidently this is a trick to get more memory and treat
as dynamic on the Palm. What OS has this function, 3.5
and above.
If I were to allocate the following blocks on a Palm
would it be a problem?
12K
50K
15K
36K
16K
25K
62K
Would the Palm let me do all these allocations in a
single program run?

Thanks for your help.


Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Linker error with new and delete operator.

2006-07-24 Thread Andrew Scheurer
Its possible that you're not linking in the MSL C++
library.
Are you using the command line compiler or the IDE w/
Metrowerks...


--- babbu cathy [EMAIL PROTECTED] wrote:

 Hello all,
 
 Can anyone give me the solution.
 
 When i try to compile my project in codewarrior 9.3,
 it gives me the following linker error message, can
 you suggest me to resolve this error ?
 Error:
 1. operator new(unsigned long) referenced from
 myfunction() is undefined.
 2. operator delete(void*) referenced from
 myfunction() is undefined.
 
 
 cathy.
 
 
   

__
 Yahoo! India Answers: Share what you know. Learn
 something new
 http://in.answers.yahoo.com/
 
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Linker error with new and delete operator.

2006-07-24 Thread Andrew Scheurer
When you create the project, look to using the C++
stationary, a POL project - there are I believe C++
stationary's. If you select one of those, new and
delete should link.


--- babbu cathy [EMAIL PROTECTED] wrote:

 Well, I am using Codewarrior IDE compiler.. I tried
 adding MSL, but i am getting the same linker error
 still.:(
 
 cathy.
 
 --- Andrew Scheurer [EMAIL PROTECTED] wrote:
 
  Its possible that you're not linking in the MSL
 C++
  library.
  Are you using the command line compiler or the IDE
  w/
  Metrowerks...
  
  
  --- babbu cathy [EMAIL PROTECTED] wrote:
  
   Hello all,
   
   Can anyone give me the solution.
   
   When i try to compile my project in codewarrior
  9.3,
   it gives me the following linker error message,
  can
   you suggest me to resolve this error ?
   Error:
   1. operator new(unsigned long) referenced from
   myfunction() is undefined.
   2. operator delete(void*) referenced from
   myfunction() is undefined.
   
   
   cathy.
   
   
 
  
 

__
   Yahoo! India Answers: Share what you know. Learn
   something new
   http://in.answers.yahoo.com/
   
   -- 
   For information on using the PalmSource
 Developer
   Forums, or to unsubscribe, please see
   http://www.palmos.com/dev/support/forums/
   
  
  
  
  Regards,
  
  Andrew Scheurer
  
  858-449-2557
  
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around 
  http://mail.yahoo.com 
  
  -- 
  For information on using the PalmSource Developer
  Forums, or to unsubscribe, please see
  http://www.palmos.com/dev/support/forums/
  
 
 
 
   

__
 Yahoo! India Answers: Share what you know. Learn
 something new
 http://in.answers.yahoo.com/
 
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: No of records

2006-07-23 Thread Andrew Scheurer
As of OS 3.0 I believe that the maximum size record is
just a bit under 64K. I don't recall the exact number
but I believe it not exactly 64K, just under.

Also the maximum heap allocation is 96K but TCP/IP
stacks take up 32K so back down to 64K as a maximum
allocation size.

I believe this is accurate for the motorolla 68K
Dragonball but not sure about the ARMLETS. Let assume
the dragonball model -the questions remains
? How many allocations of about 64K can one do? 
? What if I need to load an entire record, is it
possible to load all that data, about 64K into a
dynamically allocated buffer

If I were to say parse XML, would it make sense to
load as much as I can into memory and operate on that
for speed or should I iterate the data directly w/in
the storage heap?

--- Roger Stringer [EMAIL PROTECTED] wrote:

 At 04:17 AM 7/21/2006, you wrote:
 Subject: No of records
 From: Jagat Nibas Mahapatra
 [EMAIL PROTECTED]
 Date: Thu, 20 Jul 2006 15:06:33 +0530
 
 What is the maximum number of records I can create
 in a palm database ?
 
 Palm OS databases can have up to 64K records and
 each can be up 
 to 64KB in size.
 
 Having said that, most people try to keep the number
 of records 
 less than 16K, for reasons that having been much
 discussed in the archives.
 
 Do remember that Palm OS databases aren't
 databases in the normal 
 understanding of that word.
 
 Also you can view the records as variable length
 blocks into which 
 you can stuff your records.
 Using blocking techniques, you can achieve very
 large record 
 counts.  For example I have some library customers
 with over 200,000 records.
 
 So if your application has low to moderate record
 counts, just treat 
 the records as records.  But if you have high
 record counts you'd 
 be strongly advised to implement blocking techniques
 on those databases.
 
 
 Roger Stringer
 Marietta Systems, Inc. (www.rf-tp.com)
 
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: trim()

2006-07-03 Thread Andrew Scheurer
On the Palm you can use std::string
and find code that will do this. ARE you using C++ or
C?

--- Carlos Gonzalez [EMAIL PROTECTED]
wrote:

 Hello everyone,
 
 I am newbie in this... 
 
 Is there a function that truncates the blank space 
 1.5 before the 1.5? like sprint(), trim()... 
 
 Thanks,
 
 Carlos
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: trim()

2006-07-03 Thread Andrew Scheurer
There isn't anything that I know of but you can use
strstr or strchr and just do ptr arithmetic and
copying characters before you put '\0' at the position
you wanto to terminate.
I believe KR C or this function is on the web
somewhere.

http://www.thescripts.com/forum/thread219563.html
for example.


--- Carlos Gonzalez [EMAIL PROTECTED]
wrote:

 I am using C.
 I just want to shift left the content of the
 string...
 
 Thanks again,
 
 Carlos
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: asking for suggestions

2006-07-01 Thread Andrew Scheurer
No I was referring to edge extraction.

--- [EMAIL PROTECTED] wrote:

 Hi Andrew! correct me if I'm wrong but, are you
 suggesting a 2D picture to be converted to a 3D one?
 
 
 thanks!
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Need suggestion !!

2006-07-01 Thread Andrew Scheurer
You could look at MySQL which works on the Palm and on
CE. That would mean C or C++.

--- rajesh talasu [EMAIL PROTECTED] wrote:

 hello everybody,
 
 i want to develope an GENERIC App. where the code
 should work in Palm And Pocket Pc.
 
 My project needs:-
 1.A database Inrtraction , where i can use SQL
 Query.
 2.App. shoud UPDATE my Particular DataBase Table
 Through Internet.
 
 So what platform I shold use to develop my App;such
 that i won't be face any problem.
 
 Querry:-
 
 Can I use Appforge ?
 Can I use J2ME?
 
 please Guys Reply some suggetsion regarding above
 problem. 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: asking for suggestions

2006-07-01 Thread Andrew Scheurer
He means Optical Character Recognition(OCI) and IHMO
means In My Humble Opinion.
The idea is actually a pretty good one but difficult
given resolutions on the Palm.
Still possible however.


--- [EMAIL PROTECTED] wrote:

 Hi Doug! thanks for your suggestion. Can you be kind
 enough to explain to me further your suggestion?
 Pardon me if I don't know the terms OCI and IMHO? 
 
 thank you very much again!
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: asking for suggestions

2006-06-30 Thread Andrew Scheurer
True, but for a small image may be too bad. For a 68k
app may be out of reach but I was considering an
ARMLet.
Although I don't see a lot of applications for the
Palm that deploying that technology. Isn't a Palm OS
due any day now that has OpenGL, multi-media and so
on.


--- Dmitry Grinberg [EMAIL PROTECTED] wrote:

 palm might not be such a good idea for a platform
 for that.  not
 enough processing power perhaps
 
 On 6/30/06, Andrew Scheurer [EMAIL PROTECTED]
 wrote:
  You might think about a jpeg image processing that
  pulls 3D boundaries out of 2D images.
 
 
  --- [EMAIL PROTECTED] wrote:
 
   hi! I am a computer science student and before
 we
   can graduate we have to do a project. Can I ask
 for
   suggestions of possible pda applications that I
 can
   develop? Preferably topics related with image
   processing. But any suggestion will also do.
  
   Thanks!
   --
   For information on using the PalmSource
 Developer
   Forums, or to unsubscribe, please see
   http://www.palmos.com/dev/support/forums/
  
 
 
 
  Regards,
 
  Andrew Scheurer
 
  858-449-2557
 
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
  --
  For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 
 
 
 -- 
 Best Regards, Dmitry Grinberg
 Software Engineer, http://PalmPowerups.com
 (847) 226 9295
 AIM: hacker19180
 MSN: [EMAIL PROTECTED]
 ICQ: 165589894
 Y! IM: dmitrygr2003
 
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: Multi segment background application

2006-06-30 Thread Andrew Scheurer
You can try to break up your application into 1 or 2
shared libraries to reduce your 64K segment limit.
You call these shared libraries w/o concern over
segment issues.
A good tutorial is found in the MathLib.prc web page.
Just google for it.


--- [EMAIL PROTECTED] wrote:

 I have a background application, which has no UI
 whatsoever, that has
 unfortunately grown beyond the 64K segment limit.  I
 need to figure out
 some way to call code accross segments, without
 being launched with
 sysAppLaunchCmdNormalLaunch.  Specifically, I need
 to find a way to
 launch myself with globals, and not trigger any UI
 at all (i.e.
 SysAppUISwitch is not an option).  I'm using
 Codewarrior 9.3, and
 targetting PalmOS 5.4, specifically the Treo 650.
 
 Here's what I understand:
 
 - You cannot call anything out of your first segment
 on a no-globals
 launch.
 - The above is true, no matter what magic you use in
 Codewarrior (e.g.
 expanded mode doesn't help).
 - You cannot call yourself using SysAppLaunch and
 pass
 sysAppLaunchFlagNewGlobals, as that will eat up an
 owner ID every time
 you do it.
 
 So, do I have any options at all here?  Is there any
 way to get my app
 launched in a context where I can call other
 segments, short of
 SysAppUISwitch?  Surely there is a way to do this.
 
 Thanks,
 Gary
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 



Regards,

Andrew Scheurer

858-449-2557



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


popup list pops up twice instead of once

2006-05-19 Thread Andrew
Hello,

I have a popup trigger with a listID of a list that is dynamically created and 
doesnt exist in the resource.  I call LstNewList and associate it with that 
trigger, set my draw function, LstSetListChoices with NULL for the text array 
pointer.  I have my main form event handler return false by default, and right 
now it only handles frmopenevent and popselectevent.  My popup handler 
switch/cases the popup trigger id and returns true after updating the control 
label and the lstsetselection.  

My problem is that after I tap on the popup trigger and then tap on my 
selection, the popup list disappears and immediately appears again where I have 
to tap again and then everything seems to proceed normally.  

Please tell me what I am doing wrong.  I searched all the source examples and I 
dont see lstnewlist anywhere in the source for os5.

Thanks,
Andrew

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


unable to see per source file globals while debugging with PODS

2006-05-09 Thread Andrew
Hello,

The subject pretty much says it all.  I cannot see the global variables that 
are defined at the top of the current source file (or any globals) im using 
when im debugging my application with the PODS.  
I really hope I'm just doing something wrong and I wont have to live without 
being able to see globals.  I only have a couple, but those are the most 
important!  BTW, when I click on the add global variable thing at the top right 
(...) nothing is in that list...


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


RE: PODS - killing errant Palm Simulator

2006-05-09 Thread Andrew
I guess you can get around this by when you need to start your debugged 
application again, terminate your current debug session or whatever and then 
right click and go to hard reset of the simulator.  Then start debugging 
again...  This way you never need to close the simulator, and when you crash it 
it dies fully.  Maybe that's how the people who never complain about it do it?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: PODS

2006-05-08 Thread Andrew
If you've gotten the garnet simulator running even once, read on, else you need 
to configure your target correctly.  This happens to me frequently, so just 
bring up taskmgr and kill the already-running palm simulator process.  

I read through the threads briefly I hope this suggestion wasn't already posted.

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


Re: some questions using lists

2006-05-01 Thread Andrew
Ben,

Thank you very much.

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


LstNewList/LstSetDrawFunction/LstTDrawList and draw function never gets called!

2006-04-30 Thread Andrew
Hello,

I'm calling LstNewList, then LstSetDrawFunction, and then LstDrawList...  

The list box up when my code tells it to, but my drawing function never gets 
called...

Please give me a suggestion.

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


re: LstNewList/LstSetDrawFunction/LstTDrawList and draw function never gets called!

2006-04-30 Thread Andrew
Ah, well I re-read all the Lst* documentation, and I see that I need 
LstSetListChoices regardless of the method I use.

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


some questions using lists

2006-04-30 Thread Andrew
Hello,

I have a few questions regarding the use of lists.  Is it possible to have an 
effective list that responds to a table tap, without using a special popup 
trigger?  Is it possible to have a table row as a popup trigger?  I have a 
table with one column and I want a user to be able to click anywhere within the 
column and have a dynamic list pop up.  I create the list and then I thought 
that I should loop catching events and on each iteration continue only if the 
pen tap is within the bounds of the list.  I'm not sure on the best or the Palm 
Blessed way of doing this.  

Right now I pop up the list and a user can click on a table row and that will 
cause a new list to be created.  I didn't see any event that would let me 
figure out that there was a tap outside of my list.  I see lstExitEvent, but 
that happens when I tap within the list, nothing special happens regarding the 
list when i tap outside of it.

Thanks,
Andrew


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


re: Problems with camera and treo 650

2006-04-25 Thread Andrew
Have you checked the error log?  I believe it's #*377 at the phone menu, then 
hit dial.

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


tables show up, but no event is generated on tap

2006-04-18 Thread Andrew
Hi,

I have created a table with two rows, height 24 each, total table height is 48. 
 I have one column, and it's 153 long, which is the table length.

I am creating the table by using TblSetItemStyle, Int, setting columnUsable, 
and setting my CustomDrawProcedure, and then drawing the form.  Doing this 
makes all the elements in the tables show up correctly, however when i go to 
view - events in the simulator, no events are showing up when I tap/click on 
the table.

Is there any suggestions without pasting the code that anybody has?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: tables show up, but no event is generated on tap

2006-04-18 Thread Andrew
I did use tallCustomTableItem, and I tapped 50+ times to see if I could find 
the spot...  No events are generated at all no matter where I tap, except if 
it's in the menu.

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


Re: tables show up, but no event is generated on tap

2006-04-18 Thread Andrew
No, it's not editable.  Should it be?  It's going to be for displaying 
information.

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


Re: tables show up, but no event is generated on tap

2006-04-18 Thread Andrew
Here is the code I'm using:

// QUEUES...(relating to tickets)...  each queue has a table
for (i = 0; i  MAX_QUEUES; i++)
{
   table = FrmGetObjectPtr(pForm, FrmGetObjectIndex(pForm, tableArray[i]));
   numRows = TblGetNumberOfRows(table);
   for(j = 0; j  numRows; j++) {
  TblSetItemStyle(table, j, 0, tallCustomTableItem);
  TblSetItemInt(table, j, 0, (i * 256) + j);
  TblSetRowUsable(table, j, true); // I know this is redundant
   }
   // Do this for each column (just one for now)
   TblSetColumnUsable(table, 0, true);
   TblSetCustomDrawProcedure(table, 0, MainFormDrawItem);
}
FrmDrawForm(pForm);

Just to repeat, the cells/tables display just fine, it's just there's no event 
created whenever I click/tap on it...  

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


Re: tables show up, but no event is generated on tap

2006-04-18 Thread Andrew
Thanks a lot, it looks to be working great.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


re: frmTitleSelectEvent problem

2006-04-18 Thread Andrew
is there anything associated with this form's menu?  just making a new form 
wont let you use the menu.

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


I need to know what type of UI element versamail uses

2006-04-07 Thread Andrew
hello,

I am curious as to what UI element type VersaMail uses in its mail display.  Is 
it a list or a table, or neither?  It looks exactly like what I want to do with 
my program, but I don't know how to do it.  I'm kinda hoping it's not a table 
because using a table seems as easy to do as implementing an object type from 
scratch.

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


Re: I need to know what type of UI element versamail uses

2006-04-07 Thread Andrew
I Should have said multimail isntead of versamail because versamail is just a 
rename of multimail.

I only see MBAR, MENU, Talt, tbmp, code, ovly, taib, tbtn, frm, tlbl, tpbn, 
tpul, tstr, taic, tgbn, and tver resources...


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


Re: I need to know what type of UI element versamail uses

2006-04-07 Thread Andrew
If somebody here has used multi/versamail before and has a strong idea of the 
best (ie: easiest, most robust, and best looking) way to implement something 
similar to it, I would appreciate knowing how.  IT is the main mail list 
display.

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


Re: I need to know what type of UI element versamail uses

2006-04-07 Thread Andrew
Thank you for your help.  I can start to imagine how everything will be put 
together.  I was searching for tables' usage examples, and I see references to 
codewarrior.  Is there some other palm resource to familiarize one with making 
tables?

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


determining the foreground program

2005-10-19 Thread Andrew
How can one determine what program is running for an application that has been 
called by the alarm manager, to determine if the program wants to launch or 
not/reschedule relaunch, etc...



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


Re: determining the foreground program

2005-10-19 Thread Andrew
I apologize for not making myself more clear.  How can I make my program know 
that a certain application is open (like the phone app on the treo) so I can 
reschedule the alarm for a more convenient time?  pxaclocker gets notified and 
can take appropriate actions whenever an application is opened and changes cpu 
parameters.  Is the only way to not bother a user while the phone app is open 
to watch every application that opens and take note of it and deal with it 
accordingly when the program is woken up, or is there some way to find out the 
current foreground app without doing previous due diligence?  

thank you for your response,
andrew


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


GSM.c, Line: 2236, Serial break condition occured (indicating FW crash)

2005-10-14 Thread Andrew
I tried to find a user support forum, but it looks like there is only one for 
developers, so I will risk asking here.

I have a Cingular Treo 650 with 
Firmware 01.31 and 
software Treo650-1.15-CNG and 
hardware A.

When I connect the treo 650 to my laptop via bluetooth and start bringing home 
the data, every 50mb or so I will encounter the above error.  It is posted 
spelled incorrectly, as that is how the actual message appears.  Searching 
google gives me a handful of other people who have experienced this, but 
nothing useful.

I am going to venture to say that the error has nothing to do with any 
installed programs, and has to do with the firmware contained within the 
broadcom chip.  
https://gullfoss2.fcc.gov/prod/oet/forms/blobs/retrieve.cgi?attachment_id=483114native_or_pdf=pdf

I am no expert, but since the nature of this problem seems to be even out of 
Palm's scope, I have about 0 hope of actually getting some help or getting it 
fixed...but nonetheless would like to know if there is anything I can do to 
help myself, as these resets are heartbreaking.


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


Raw access to memory card device

2005-09-17 Thread Andrew
I would like to be able to access the memory card on a palm device in a way 
that will give me the same functionality as if I did the following on a FreeBSD 
or some other *nix system:

dosfs = open(/dev/fd0, O_RDWR, 0);
/dev/fd0 is the device node representing the raw floppy device.

My target is Palm OS 5 devices.  My test device is a Treo 650.

Is this possible?

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


Re: Raw access to memory card device

2005-09-17 Thread Andrew
Thank you very much for your reply.  
I think those functions will be very useful.  In my quest for the answer, I did 
find that the card can be unmounted, which will prevent any problems you were 
concerned about.

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


Re: Treo 650 Phone Call Information

2005-08-09 Thread Andrew McMillan
Unfortunately, I have not had any luck yet.  Yeah.  I had looked at
getting it from there, but like you said, it does not show up there
until after the phone call is over, and I need it during the phone
call.

--Andrew

On Sat,  6 Aug 2005 16:32:25 -, Chipp Jansen
[EMAIL PROTECTED] wrote:

Hi - any luck with this?  I'm trying to figure out how to get Call Information 
from the Phone Events (i.e. when phnEvtDisconnectInd happens).  I had been 
pulling Call Information from the Call Log database from the Phone app, 
however that information does not seem to be available until after the phone 
call is completed.  

Here's some code to do that (if it might help):

typedef struct CallInfoHeaderStruct {
   UInt16 nullbytes;   // 4 NULL Bytes
   DateType date;  // call date
   UInt8 hours;// using 0 - 23 hours
   UInt8 minutes;  // 0 - 59 minutes
   UInt32 duration;// seconds duration of the call
} CallInfoHeader;


Err GetLastCallInfo(CallInfoHeader * headerP, Char * contactP, Char * numberP) 
{

   Err error = 0;
   DmOpenRef dbP;
   MemHandle CallInfoH;
   MemPtr CallInfoP;
   Char contactnumber[40]; // buffer to get contact and number info
   Char * numbersearch;
   
   // Open the Phone Call Log Database
   dbP = DmOpenDatabaseByTypeCreator('call', 'HsPh', dmModeReadOnly );
   if (!dbP) {
   return 1;
   }
CallInfoH = DmQueryRecord(dbP, 0); // gets the latest call record  
   CallInfoP = MemHandleLock(CallInfoH);

   // Copy the CallInfoHeader
   error = MemMove(headerP, CallInfoP, sizeof(CallInfoHeader));
   
   
   // Copy the Phone Number and Contact Info, if any   
   error = MemMove(contactnumber, CallInfoP + 10, MemPtrSize(CallInfoP) - 
 sizeof(CallInfoHeader));
   StrCopy(contactP, contactnumber);
   numbersearch = StrChr(contactnumber, 0) + 1;
   StrCopy(numberP, numbersearch);
   
MemHandleUnlock(CallInfoH);
   DmCloseDatabase(dbP);
   
   return 0;
}


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


Treo 650 Phone Call Information

2005-08-03 Thread Andrew McMillan
First, I am using a GSM Treo 650 on the Cingular network.

Problem:
I would like to get the caller id information for the currently
active phone calls on a Treo 650.  By caller id information I am
referring to phone number (dialed if outgoing, or the incoming
number), contact name, phone call start date/time.

Attempted Solutions:
I have successfully registered and caught the phnLibLaunchCmdEvent,
and  then retrieved the phone number when the event type is 
phnEvtSubscriber.  This is a start, and I could use the current system
date/time as the start date/time of the phone call.  I can stash these
off in a feature and then use them if needed by my application.
However I can not seem to ever receive an event in which the name
fields are filled.  To make this method unacceptable however is that
for some reason when someone calls in via call-waiting I never recieve
a phnEvtSubscriber for this second call.  So I can get the basic info
for line 1 via this method, but not for line 2.

Preferrably my application could get this information on demand
instead of catching an event and storing the info off.  I have used
the PhnLibGetPhoneCallStatus successfully to see that there is action,
but I do not know the proper API's to call to get the caller id info
for a specific line.

Any help would be greatly appreciated,
Andrew

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


re: Camera Library Load/Remove and Invalid Chunk Pointer

2005-06-13 Thread Andrew Waites
Okay,

Eventually found this one. 

The Codewarrior code was mapping the cmdPBP to the correct structure using 

   mPowerCtx = (TmPowerCtx)cmdPBP

which worked fine for the Codewarrior code but when this same structure was 
passed back in the callframe to SysUIAppSwitch it did not pass back correctly 
after the called application did a

  MemPtrSetOwner(mPowerCtx,0);
  SysUIAppSwitch(yada yada yada)

On returning to the yada yada application it failed to correctly access the 
cmdPBP - it could actually read it fine but the emulator (bless its little 
cotton sox) threw lots of error reading unowned chunk type messages (that lazy 
slob simulator said nothing). Anyway, the simulator/emulator would finally blow 
a gasket when trying to exit this app.

  Solution was to:

  mPowerCtx = MemPtrNew(sizeof(TmPowerCtx));
  MemMove(mPowerCtx,cmdPBP,sizeof(TmPowerCtx));

  instead of

  mPowerCtx = (TmPowerCtx)cmdPBP;

But I guess everyone else in the world knows this.

rgds


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


Camera Library Load/Remove and Invalid Chunk Pointer

2005-06-12 Thread Andrew Waites
Hi,

Please bear with me while I explain a fairly complex (at least to me) setup 
which is causing an Invalid Chunk Pointer.

I have one application (written in PocketStudio although I'm pretty sure that 
is not relevant) calling a second app (Codewarrior) which (in its simplest 
form) does a find library, load library, CameraLibraryOpen, TurnPreviewOn  
then TurnPreviewOff, CameraLibraryClose, SysLibRemove then does a 
SysUIAppSwitch back to the calling application.  This all works fine but when I 
go to close the calling application I get an Invalid Chunk Pointer.  This 
happens if I only load and remove the library (no camera library open/close) 
but does not happen if I don't touch the library in the called routine so it 
looks strongly like it is related to loading and removing the library.

The remove library is not throwing an error.

I also tried switching back to a different app but same result - the switch 
back works but I get the invalid chunk ptr on closing THAT app. 

I noted the lack of support for library loading on simulators but sadly I get 
identical behaviour on the device.

Any ideas what further investigation I can do into this?

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


Re-targeting for larger screen size

2005-04-09 Thread Andrew J. Huang
All,

I am considering building a new device using the PalmOS.  I am thinking of a 
screen roughly double the current size and resolution.  What kinds of gotchas 
will I run into?

Thanks,
Andy

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


RE: Difference between NULL and 0?

2004-12-24 Thread Andrew J. Huang
Okay, the curmudgeon's gotta speak.

Generally used to make a null pointer clear, NULL has been simply eye candy
for the value 0.

For twenty years, I've taken this interpretation as well.  But recently, I've 
been finding places where a comparison against NULL gives different result than 
against 0, e.g. in pointer validation such as one would do when a function 
returns a pointer to a string.  This sucks because I haven't figured out where 
it should be NULL and where it should be 0.  I wrote my question after I had to 
check against BOTH to get the right behavior.

By the way, in sdk-4, NULL is defined in stddefs.h as ((void *) 0).

Merry Christmas.

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


Difference between NULL and 0?

2004-12-22 Thread Andrew J. Huang
Gentle developers,

This is a really pretty dumb question, but NULL and 0 act differently using the 
gnu toolchain.  What exactly is the difference?

Thanks,
Andy

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


RE: Glib - shared libraries [long] and now palmdev-prep

2004-11-17 Thread Andrew Comley
Hello Matt,

Many thanks for your invaluable help!

I had an older version of PRC-Tools which I have now replaced
with 2.3 - have now got much further - however when I try to use
m68k-palmos-stubgen I hit a brick wall again, the only response I can get
is:

Usage: m68k-palmos-stubgen [options] deffile
Creates GLib support files ('base-jumps.s' and 'base-stubs.c') or
a SysLib support file ('base-dispatch.s') from an export clause in
deffile; base is 'deffile' by default.
Options:
  -b FILE, --base FILE  Set output filename base prefix

And no stub files created - am I missing something again??

Much appreciated

Andrew Comley





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew Bevan
Sent: 16 November 2004 22:49
To: Palm Developer Forum
Subject: Re: Glib - shared libraries [long] and now palmdev-prep


Howdy!

 I have searched everywhere for palmdev-prep (seems to be a useful tool!),
 however I cannot find it - yet again all help will be very appreciated.

What version of PRC-Tools (the PalmOS GCC tools) are you using?  I'm using
2.3
under my Linux machine, and didn't have any problems under Windows with the
PRC-Tools which shipps with the new Palm development environment thingy.

I'm not entirely sure which version of PRC-Tools GLib libraries were added
to.

Have a great day,
 Matthew Bevan

--
Matthew Bevan, Margin Software
 - Re-inventing the wheel, every time.

Finagle's First Law:
If an experiment works, something has gone wrong.

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



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


RE: Glib - shared libraries [long]

2004-11-17 Thread Andrew Comley
Hello Matt (again),

Apologies if you've spent any time on the last query but (thanks to your
help)
I have now successfully built the library and the app that uses it!
(I wish I understood the format of the makefile better).

I will now go away!

Many many thanks

Andrew Comley

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew Bevan
Sent: 16 November 2004 21:28
To: Palm Developer Forum
Subject: Re: Glib - shared libraries [long]


Howdy, Andrew!

 Many many thanks for that, you are being incredibly helpful!

Thanks!  Can you tell customer service is my dayjob? ;-)

 I will give this some real attention tomorrow (UK wind down time now) -
 but one quick question - do I need any specific glib files to make this
 all work??

The glib startup code is built into the palmos GCC development tools.  If
you hunt around in the library directories for GCC you'll find some .a
files,
I believe.  This stub code is then included in the .a file for your
library, and is in turn included by any application using the library.

This stub code checks for the presence of the GLib on the device, opens it,
and sets up a relocation table.  It also satisfys GCC's need for valid
function references.  I'm not sure, but with a little work it should be
possible to use GLibs with CodeWarrior - but with the advent of the new
developer suite, CodeWarrior is becoming a little less important in the
grand
scheme of things.

After typing 'make', and before typing 'make clean' (which removes excess
temporary files, while leaving the .a and .prc), you'll find
MyFontLib-jumps.s and MyFontLib-stubs.c (and corresponding .o files).
Examine these.

These files are the core functionality of GLibs!  Note that the -stubs file
is
basically another representation of the .def file - in the GLib_myFL
function
is the assembly used to map each function in the library to the function
/in/
the library (by number, which is why order is important in the .def file),
the name of the library, the actual code to call each function, and code to
arrange global access for the GLib.

The -jumps file is the actual function/relocation table, which is mashed
when
the library is loaded for use in the application.  (I think - someone
correct
me if I'm wrong.)

Note that you may have difficulty compiling the font library if you don't
have
exactly the right version of pilrc... I just removed the fontfamily
definitions from the RCP to get it to compile, but it won't run that way.

Have a great day,
 Matthew Bevan

--
Matthew Bevan, Margin Software
 - Re-inventing the wheel, every time.

Finagle's Eighth Law:
If an experiment works, something has gone wrong.

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



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


Glib - shared libraries

2004-11-16 Thread Andrew Comley
Can anyone tell me if Glib is still a good way to develop shared libraries?

If so are there any simple (really simple) instructions on how to get it to
work!

many thanks

Andrew Comley



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


RE: Glib - shared libraries

2004-11-16 Thread Andrew Comley
Many thanks for the link, however can you spare the time to give the step by
step
sequence?

I have tried to build but I get the following:---

$ make
pilrc -q -allowEditID -I Src/ -I Rsrc/ -q Rsrc/*.rcp Rsrc/
m68k-palmos-gcc -Wall -O2 -DCOMPILE_LIB -I. -ISrc   -c -o
Src/Fonts/FntLibraryPrivate.o Src/Fonts/FntLibraryPrivate.c
sdkfind: warning: 'sdk' not found in /PalmDev
Src/Fonts/FntLibraryPrivate.c:1: PalmOS.h: No such file or directory
In file included from Src/Fonts/FntLibraryPrivate.c:2:
Library.h:4: PalmOS.h: No such file or directory
make: *** [Src/Fonts/FntLibraryPrivate.o] Error 1

---

I am using palmos4.0 which appears in all my succesful builds cygwin output.

Any help will be seriously appreciated!

Thanks again

Andrew Comley


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew Bevan
Sent: 16 November 2004 18:37
To: Palm Developer Forum
Subject: Re: Glib - shared libraries


Howdy, Andrew!

On November 16, 2004 10:16 am, Andrew Comley wrote:
 Can anyone tell me if Glib is still a good way to develop shared
libraries?

 If so are there any simple (really simple) instructions on how to get it
to
 work!

I don't know about you, but I learn well from examples rather than full
instructions.  Below is a link to an example GLib library - a font library,
to be exact.

All exported library functions must be defined in Library.def - you can
add
to the bottom, but do not change the order for backwards compatability.
Library.h are the definitions for the functions in the librray, and should
be
included by the client application.  libLibrary.a is included as a library
in the client application, as well, and provides the behind-the-scenes
mapping of functions to library.

You can include complete resources in your library, but be sure you don't
map
over anything in your client application, as the lib's resources are loaded
after your application's, and PalmOS searches top-down.

The included makefile compiles everything in the Src directory into the
library.  No startup code is nessicary.

http://www.marginsoftware.com/attachments/FontLibrary.zip

Have a great day,
 Matthew Bevan

--
Matthew Bevan, Margin Software
 - Re-inventing the wheel, every time.

Finagle's Eighth Law:
If an experiment works, something has gone wrong.

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



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


RE: Glib - shared libraries [long]

2004-11-16 Thread Andrew Comley
Matthew,

Many many thanks for that, you are being incredibly helpful!

I will give this some real attention tomorrow (UK wind down time now) -
but one quick question - do I need any specific glib files to make this
all work??

best regards

Andrew Comley


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew Bevan
Sent: 16 November 2004 19:56
To: Palm Developer Forum
Subject: Re: Glib - shared libraries [long]


On November 16, 2004 11:11 am, Andrew Comley wrote:
 Many thanks for the link, however can you spare the time to give the step
 by step sequence?

In MyFontLib (the Library):

1. Develop code, one (or more) function per file in Src, organized into
functional categories via subdirectories in Src.  See SOURCES variable, line
13 of the Makefile.  (Make will not use files more than one directory deeper
than Src.  I.e. Src/Tools/Old/Tool.c will not be compiled.)

2. Develop resources inside Rsrc/Resources.rcp and other RCP files within
that
directory.  All RCP files will be compiled to produce the end GLib PRC.

3. Create Library.h which declares all exported functions.  Global variables
may not be shared between Library and Client, however.  Use access
functions.
(You /can/ use globals within the library - unlike shared libraries.)

4. Create MyFontLib.def, listing within the export{} section each exported
function, one per line.  Do not delete old lines or add lines to anything
but
the end, otherwise you will break compatability with older versions.
(PalmOS
uses this, as can be seen by the V2, and V5 versions of some functions in
the
SDK.)

5. Compile using Make.  This will produce libMyFontLib.a and MyFontLib.prc.
The PRC is the installable library, required for client applications to run.
The .a file is the developer library used to attach MyFontLib.prc to the
client application at runtime.

In LibTest (the Client):

1. Place an updated Library.h and libMyFontLib.a in the LibTest directory,
overwriting the old versions.  These are the two files needed by each client
application at compile-time - and the only files needed.  Once you link
against the library (-L. -lMyFontLib) you require not additional code to use
the functions within the library.

2. Develop code and resources for the client application.

3. Compile using Make - examine the Makefile in the LibTest directory.  It
is
similar to the library's makefile and relies heavily on default targets.

4. Load up the two PRCs into an Emulator or Simulator.  Enjoy.

General Notes:

1. You'll likely want to register your own creator ID for the library and
application, not to mention rename the entire library.  In the library, you
need to modify Rsrc/Resources.rcp lines 5-7, Makefile line 1, and line 1 of
MyFontLib.def.  Then rename MyFontLib.def to whatever you entered on line 1
of the Makefile.  Delete the .a and .prc files, and the library should
re-compile fine.  For the client application, update line 1 and 7 of the
Makefile, and lines 5-7 of Rsrc/Resources.rcp.  Delete the .a and .prc files
and copy the new .a file from the library directory, and the client
application should compile fine.

2. Use functions from the library in the client application as if they were
functions built right into your client application.  The font example uses
FntLibraryStartup on line 10 of Application.c and FntLibraryShutdown on line
26 of same.  They are defined in Library.h, with actual code in the library.

3. Try writing your functions completely within the application, first.
Write
them in such a way as they do not rely on global variables presented in the
application (i.e. instead of using a global to store the current VFS volume,
pass it as the first argument).  This will make debugging much, much easier,
as debugging (on PalmOS) libraries like this is damn near impossible.  Only
when the functions work, perfectly, split them into a seperate library.

 I am using palmos4.0 which appears in all my succesful builds cygwin
 output.

For the broadest audiance, I do not specify a specific SDK version when
building.  Try running palmos-dev-prep again to force it to set a default
SDK
(usually the newest), then compile again.  Or, you can add -palmos4 to the
CFLAGS varaible in the Makefiles.  (I'd reccomend the first, as you
shouldn't
need to specify a SDK version.)

I hope you get it to work with a minimum of difficulty,
 Matthew Bevan

--
Matthew Bevan, Margin Software
 - Re-inventing the wheel, every time.

Finagle's Tenth Law:
No matter what the result someone is always eager to misinterpret
it.

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



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


RE: Glib - shared libraries [long] and now palmdev-prep

2004-11-16 Thread Andrew Comley
Hello again,

I have searched everywhere for palmdev-prep (seems to be a useful tool!),
however
I cannot find it - yet again all help will be very appreciated.

Cygwin just responds with command not found.

Best regards

Andrew Comley

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew Bevan
Sent: 16 November 2004 21:28
To: Palm Developer Forum
Subject: Re: Glib - shared libraries [long]


Howdy, Andrew!

 Many many thanks for that, you are being incredibly helpful!

Thanks!  Can you tell customer service is my dayjob? ;-)

 I will give this some real attention tomorrow (UK wind down time now) -
 but one quick question - do I need any specific glib files to make this
 all work??

The glib startup code is built into the palmos GCC development tools.  If
you hunt around in the library directories for GCC you'll find some .a
files,
I believe.  This stub code is then included in the .a file for your
library, and is in turn included by any application using the library.

This stub code checks for the presence of the GLib on the device, opens it,
and sets up a relocation table.  It also satisfys GCC's need for valid
function references.  I'm not sure, but with a little work it should be
possible to use GLibs with CodeWarrior - but with the advent of the new
developer suite, CodeWarrior is becoming a little less important in the
grand
scheme of things.

After typing 'make', and before typing 'make clean' (which removes excess
temporary files, while leaving the .a and .prc), you'll find
MyFontLib-jumps.s and MyFontLib-stubs.c (and corresponding .o files).
Examine these.

These files are the core functionality of GLibs!  Note that the -stubs file
is
basically another representation of the .def file - in the GLib_myFL
function
is the assembly used to map each function in the library to the function
/in/
the library (by number, which is why order is important in the .def file),
the name of the library, the actual code to call each function, and code to
arrange global access for the GLib.

The -jumps file is the actual function/relocation table, which is mashed
when
the library is loaded for use in the application.  (I think - someone
correct
me if I'm wrong.)

Note that you may have difficulty compiling the font library if you don't
have
exactly the right version of pilrc... I just removed the fontfamily
definitions from the RCP to get it to compile, but it won't run that way.

Have a great day,
 Matthew Bevan

--
Matthew Bevan, Margin Software
 - Re-inventing the wheel, every time.

Finagle's Eighth Law:
If an experiment works, something has gone wrong.

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



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


re: IR Toggle shortcut: Debugging complex IR exchange between handheld and POSE

2004-11-01 Thread Andrew J. Huang
Hi,

This is a second, succincter, description of my needs

I need to debug some IR communications and have gone beyond the capabilities of IR 
loopback.  Has anybody used the following features on POSE:

A) Infrared serial mode toggle (shortcut-.-s), about which the Knowledge Base 
(Answer #254) says, This shortcut toggles the output port of infrared data between 
the built-in IR port and the built-in serial port.  This sounds like it would execute 
IR exchanges across the serial link.

B) Serial port redirection to the PC's COM port (POSE Settings/Properties) should 
direct POSE serial output to a specific COM port.

As far as I can tell, these shortcuts don't do what they say.  I would appreciate any 
hints.

Thanks,
Andy

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


IR Toggle shortcut: Debugging complex IR exchange between handheld and POSE

2004-10-27 Thread Andrew J. Huang
Hi,

I am developing an application that does a fairly complex IR exchange.  I've
debugged as much as I can on POSE with the IR loopback and now I need to
move onto devices.  However, I want to have access to my debug logs that
POSE can provide so I would like to run my exchanges between POSE and a
device.  This should be possible, but I haven't worked it out.

  1) I've set up an IR/USB dongle on the PC.  I have proven that this works
by enabling HotSync via IR and performed a HotSync across it.

  2) I've converted the IR/USB data stream into a serial data stream with
IRCOMM2K (see http://www.ircomm2k.de/).  This is a virtual driver that
makes the IR dongle appear to be a serial port.  Again, I've proven that
this works by enabling only serial HotSync and performing a Hotsync with it.
This demonstrates that PC applications (i.e. HotSync) can use IRCOMM2K as a
serial interface rather than an IR.

With IR communications into the PC established this way, I then turned to
setting up POSE to use this path in the reverse direction.  This would seem
to be two simple steps:

  a) Redirect POSE serial I/O to the PC COM port assigned to the virtual
driver of step 2, above.  Settings/Properties in POSE brings up the
Redirection menu.

  b) The shortcut-.-s developer shortcut (goto
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_alp.php and
search for hidden shortcuts) will toggle IR I/O between the IR hardware
and the serial port hardware.

I have had no success at all with either of these.  Doing steps a) and b) on
POSE and then trying an exchange through the dongle with the handheld gives
no activity.  The IR toggle shortcut, on the device, seems to do nothing -
if I do the toggle (so that IR goes to serial) I can still perform an IR
HotSync.  Have any of you successfully used the IR toggle?

Of course, if you have any suggestions for an alternative approach to
testing such exchanges, I'd surely listen.

Thanks,
Andy Huang


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


T3 Calendar vs Datebook

2004-07-01 Thread Andrew Waites
Hi,

Our app has a backup function which copies DBs to the SD card.  This is used when 
roadwarriors lose their customer or product DBs.  For completeness I've been also 
backing up the main Palm DBs (Datebook, ToDos, Memos, etc).

On the T3 these PIMs have been replaced (sort of) with new versions and DBs but the 
doco (what little there is) indicates that the old DBs still exist (sort of - as in as 
some kind of write through pseudo DB) to support legacy apps.  All seems to mostly 
work but we are seeing some nasty crashes on T3s when recovering DatebookDB from SD 
back to the Palm (using standard VFS calls).

This does not seem to happen all the time - don't you just love that.

I've not been able to locate layouts for the new databases. But could probably just 
work out if the app is on a T3 and back up only the new DB (Calendar) if that is all I 
need to do.  Sadly, some other datebook related things are not all that happy.

Our app does write to the Datebook and stores the RID of the Datebook entry so we can 
allow the user to manage our entries directly through the standard app.  This now sort 
of works but not entirely - once again I suspect this has something to do with how the 
T3 interfaces to the old datebook format.

So, any ideas where I can find some more info on what is going on here? I've looked in 
the palmone area.

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


MemHandleUnlock not Succeeding on T2

2003-12-08 Thread Andrew Waites
Hi,

I have a very wierd situation on code that has been working fine on OS4 and
OS5.0 (T1).  This little gem (being memory related ) is wonderfully
transient but after loading up production code with lots of traces it looks
increasingly like MemHandleUnlock calls are sometimes completing
successfully but leaving handles locked.  Specifically this is biting me
when I am trying to expand records (Unlock, Resize, Lock).  I have only been
able to reproduce the errors my users are seeing by forcing extra
(un-unlocked) locks on the handle before I start this sequence.

Has anyone seen anything like this?

thanks
Andrew Waites
Just4Markets Pty Ltd



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


Where is the image file when there is no Memory Stick

2003-07-11 Thread Andrew
We are doing a project on SONY CLIE NX70V. The requirements include sending
image file ,which has been taken by the build in CAM, to server. Normally,
image file is stored in the Memory Stick. But, at current stage, we didn't
find where the image file stores when there is no memory stick. So where are
them and how to read them back?



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


How to detect current Internet Connection status

2003-07-07 Thread Andrew
Hi

Is there any API can get current network connection status, please give me a
cue.



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


How to get the size of a record in Database?

2003-07-03 Thread Andrew
I use a database to store records with different length. When and retrieve
them back, I need to know the size of each record. But, I read all over the
API reference, but didn't find it.

Please help me out.



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


Re: Where does the pic file store?

2003-06-29 Thread Andrew
stupid me , i found them in memory stick.

Andrew [EMAIL PROTECTED] дÈëÓʼþ news:[EMAIL PROTECTED]

 We are doing a project on SONY CLIE NX70V. The requirements include
sending
 image file which has been taken by the build in CAM. But, at current
stage,
 we didn't find where the image file stores. It seems that those image
files
 are not in internal memory. So where are them?







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


Where does the pic file store?

2003-06-27 Thread Andrew
We are doing a project on SONY CLIE NX70V. The requirements include sending
image file which has been taken by the build in CAM. But, at current stage,
we didn't find where the image file stores. It seems that those image files
are not in internal memory. So where are them?



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


Tricky Things about WinDrawLine

2003-06-26 Thread Andrew
HI All,

In order to simulate a mouse drag event on Palm, the application has been
design to use pen drag to resize a table's width.

To achieve that, the problem is that we currently use 'WinDrawLine' to draw
a vertical line, then use the pen to drag it horizontally. The background
suppose to be same as before. But, actually, when the vertical line passed,
the background even every thing on the screen include menu bar, has been
removed.

In order to skip the problem, we set  'WinDrawOperation ' to 'winInvert'
mode(which is Bitwise XOR the color-matched source pixel onto the
destination). Unfortunately, it does make sense. The backround still has
been removed to blank.

So, How To Draw a Line without affect backround components.



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


How to Implement Version Update

2003-06-24 Thread Andrew
Hi All,

The application we are doing now has been designed to have VERSION UPDATE
function. It means that the application can download the latest version from
server via network and then the running application replace itself with the
new one.

At current stage, the problems of doing that include:

1. How to download an application (*.prc) file correctlly? The application
we have done uses NetLib interface to download data stream, and it can only
store the data as a stream Database, not a resource Database. So, when
download finished, the data cannot be treated as an applicaiton as those
displaying in the main menu.

2. How does a running application replace itself with others?

Any suggestion is welcome!!



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


How to implements PASSWORD field?

2003-06-22 Thread Andrew
The application I am currently doing now needs to set a PASSWORD entering
text field. But there is no such kind of attribute in field. So, how can I
set PASSWORD display as *** then retrieve the correct value back?



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


Problem with Modem(newbie)

2003-06-17 Thread Andrew
Hi there

The application I am doing now needs to control a dial up process. I cannot
find any tutorial about this issue. Would any one tell me how does a Palm
device connect to internet via a modem and how to use program to control it?



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


Re: Database Vs Text files(Beginner)

2003-06-16 Thread Andrew
Which sort of XML parser are you using? or you created your own parser
alternatively?


 There's also a (questionable) trend toward using XML, rather than a CSV,
 as the intermediate file.  A recent online webinar from Sybase iAnywhere
 and AvantGo featured their M-Server software which can send data between
 the server and a handheld using XML, either by cradle sync or wireless
 sync.

 Anyone who's seen XML knows it's big.  Not only is bandwidth an issue,
 but on the device side, conversion from XML into a Palm database may be
 slow process.  I do, however, like XML for its portable nature. Perhaps
 one day, XML may become viable for handhelds.

 --Mike Y.
 www.ytechnology.com



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


PalmOS 5.2 Multichannel Sound Library

2003-06-16 Thread Andrew Springman
The Companion and Reference for PalmOS 5 mentions 16 channels of
multi channel audio (1 in, 15 out).  However, the library supporting
this was not included in 5.0 (i.e. Tungsten|T).  Palm announced that
the library was to be released in 5.2.
1) Was the multichannel audio library released in 5.2 (i.e. Zire 71)?

2) Will 5.2 be released for Tungsten|T ?  If not, is there a way to
load the library alone?
3) Has anyone had any experience with the multichannel audio
library?  If so, what can you tell us about it?
Thanks and blessings,
Andrew Springman
ittyMIDI.com 

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


Re: Midi command

2003-06-16 Thread Andrew Springman
Yes.  Please be more specific about what you are trying to do.  Are you 
trying to do something using the internal speaker?  Are you trying to send 
MIDI to an external device?  Does the handheld have polyphonic alarm 
capability?

Blessings,
Andrew Springman
www.ittyMIDI.com
At 05:01 PM 6/16/03 +0200, you wrote:
Hi,

Is it possible to play midi command on OS5 like
note on, program change, etc... ?
Thanks
Chris
--
For information on using the Palm Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


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


Re: PalmOS 5.2 Multichannel Sound Library

2003-06-16 Thread Andrew Springman
Aaron,

Thanks for your reply.  I'll take a look.  I'm confused, though.  Are you 
saying that multichannel audio is available on the Tungsten|T?  Or perhaps, 
you mixed the sound in your own code?

Blessings,
Andrew
At 09:12 PM 6/16/03 +0200, you wrote:
 3) Has anyone had any experience with the multichannel audio
 library?  If so, what can you tell us about it?
andrew, check out our lemmings game (www.ardiri.com/palm/lemmings)
we wrote a midi engine for the game, and, it runs on Tungsten|T
units. we only included piano + snare samples, but, with a broader
sample set (need around 1Mb for good midi) - it sounds pretty
nice!
---
Aaron Ardiri[EMAIL PROTECTED]
CEO - CTO   +46 70 656 1143
Mobile Wizardry  http://www.mobilewizardry.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


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


Problem with INetLib

2003-06-12 Thread Andrew
Hello everyone

I am trying to use INetLib to make connection to a server via TCP/IP
protocol. But there are few examples  about this issue. Would any developer
show me some core codes of creating the connection. Thanks in advance.



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


Re: Http in INetLib

2003-06-12 Thread Andrew
I am developing a application for SONY Clie NX70 plus PHS card which is a
communication card. It is a Palm OS 5 devices. I am wandering whether it can
support INetLib or not. Because I have tried to open the INetLib library but
failed. I don't know why.


Ben Combee [EMAIL PROTECTED]  news:[EMAIL PROTECTED]

 whould you show some code of using INetLib to create the connection

 I wouldn't recommend using INetLib for any new projects, as its not
 available on all Palm OS 4 devices, and it will never be available
 for Palm OS 5.  The only devices where it is the only way to
 communicate using the radio are the Palm VII, Palm VIIx, and Palm
 i705.  On all other devices, you can directly use NetLib.

 If you are going to go ahead with INetLib, the chapter on INetLib
 development in my book, Palm OS Web Application Developer's Guide
 is recommended.  It's about 100 pages of info on using this library.

 -- 
 Ben Combee [EMAIL PROTECTED]
 CodeWarrior for Palm OS Technical Lead, Metrowerks
 For programming help, see http://www.palmoswerks.com/





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


No overwrite when launching off Card

2003-03-18 Thread Andrew Waites
Hi,

Ths Extension card section in the Palm doco indicates that if you launch an
app off the card and the same appexists on the Palm then you will be
prompted whether or not to replace it

In my testing if I copy an app from Palm to card then launch off the card
there is no prompting..it runs the existing app on the Palm.  This is true
if I have different versions of the app on the Palm and the card. I have
tried copying to a different .prc filename on the card.. no joy. If I
manually set the creator on the Palm to a different creator I trigger the
popup...

It looks like PalmOS is being too smart and saying ah but that is the same
creator so they must know what they are doing, I'll just run from the Palm
(no copy). This is wierd and I am happy to believe I am doing something
stupid but ..stupidity being what it is .. I can't think what.

Has anyone seen this before?

rgds
Andrew Waites



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


Getting amount of memory left

2003-03-12 Thread Andrew Tan
Hello,
I'm trying to get the amount of memory left available on the device.

Using this call:
MemCardInfo (0, 0, 0, 0, 0, 0, ramsize, memfree);

I get RAM size values and amount of memory free. However, it doesn't
match the values displayed on the Launcher, Info form. Is there another
function or a way to calculate the 'correct' free space left?

Andrew Tan



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


Launcher system trap

2003-03-05 Thread Andrew Tan
Hello,

Anyone know the system trap which is called to run the system launcher
application?

Andrew



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


Re: Anyone using HTTP Library from palmgear?

2003-02-13 Thread Andrew J. Huang
Glenn,

A couple of points:

1) Although HTTP used to be run with a single
transaction per TCP connection, I believe that
everybody is doing multiple commands per
connection.  There's a bit in HTTP somewhere that
says to keep the connection open - persistent I
think.  I would be shocked if the lib doesn't do
this.

2) Have you tried the simple test of putting the
CONNECT into the main code rather than the
constructor?  The constructor might be running in
a different context.

best regards,
Andy



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



RE: Opinions on Expectation of problems with a known invalid global

2003-02-13 Thread Andrew J. Huang
Kevin,

I think that the answer is that your testing may
not reveal a problem, but somewhere, somewhen,
somebody will find it.  And it will happen when
you are trying to make a critical release upon
which the life of your company depends, or worse,
upon which the life of a patient depends, given
that you're doing medical stuff.  Fix it now, when
you can see it, when you haven't released it, when
you still remember it.

In your testing, your hardware and software
configuration leaves your memory configuration in
a place such that the global flag reference finds
real physical memory.  In another time (newer or
older OS release) another place (newer or older
hardware platform) another user (somebody with
more/less software or hardware) the flag will be
located where there isn't memory and you will
crash hard.  Or worse, it might just happen to
reference an I/O register that changes when read.

-andy




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



ExgDBRead to Card 1 (Memory Card)

2003-02-12 Thread Andrew Waites
Hi,

I'm struggling with using Exchange manager to backup databases to a memory
card. I've looked all over the place and believe this is the way to go but
am open to alternate approaches.

My problem is that I cannot see how to force the db to be written to card 1.
CardNo is an argument to ExgDBRead but the doco indicates that it is a
return value only. Any ideas how I can tell DBRead to put the DB onto the
memory card?

thanks

Andrew Waites



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



you really don't need to call me a 'Trol'l

2003-02-11 Thread Andrew J. Huang
Just a mild point of clarification (very low S/N):

Troll is a verb referring to the act of dragging
bait or lures back and forth in front of gullible
listers.  It often elicits fantastic flames from
the unwary.  Unlike real-water trollers, I usually
have a high opinion of internet trollers who're
usually quite subtle and well informed.

I happen to like trolling and would be
disappointed to see the term morph into an insult.

Best regards,
Andy



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



Re: Handspring says delete third-party applications

2003-02-11 Thread Andrew J. Huang
Although this topic is getting a bit far from
Palm development, I believe that we need to pay
attention to this more than the latest tool or
bug!

First, has anybody written back to handspring in
response to this newsletter?  I believe that the
third party developers are a critical resource for
Palm and their licensees and Handspring needs to
support our efforts.  If they feel that we are
doing a bad job, i.e. producing code that drains
the batteries, then they should be on this forum
showing us how and why that is the case.
Otherwise I think they are just blaming us for
poor hardware design.  I don't have any evidence
either way - are Handsprings known for short
battery life?

Gary Gorseline worried:
Also, with PalmSource's new and recent
licensing agreements
and in some cases, lack of renewal of certain
license
agreements, gives me (personally) the
impression that they
are not considering the developers as a
necessary part of
their success.  Look at the Zire and when
China comes out
with units under $50, how important is the
developer segment
to PalmSource, Palm or the licensees?

I'm not sure I would interpret this news as
necessarily dire.  If I interpret your message
correctly, I think that you're worried that the
users of low priced Zires won't want to buy
business applications.  Perhaps this may be the
case, but take a look at the PC market: I just
bought a new Dell desktop for $370 (Open Box
deal) and I will add software to it.  Given that
backdrop, I think that even $50 Zires will still
want new applications.

The $50 Zire will change the applications that we
build.  The market will be different and need
different things.  I'd invest in Ardiri.com if he
started charging for games.  There are other
segments that could really make it when the
community of users is huge, but I'll start taking
food from my kids mouths if I say any more.

Andy Huang
ps: I'm reading digests only so I'm sluggardly
responsive


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



HostTransfer sample for prc-tools

2003-02-11 Thread Andrew J. Huang
Have any of you ported HostTransfer to prc-tools?
I've been struggling with it for two weeks, making
progress, but also running into problems at every
turn.

Right now I'm fighting with DmGet1Resource(ainRsc,
ainID) which fails to get the app/lib name, even
though the database was opened successfully with
DmOpenDatabaseByTypeCreator.  All of this is code
straight from the examples directory.

If there is a complete port to prc-tools, I would
greatly appreciate a pointer to it.

Thanks,
Andy


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



Text input to a field/HostTransfer under prc-tools

2003-02-07 Thread Andrew J. Huang
Hello (palm-dev) World,

I'm using the HostTransfer example as a template
for a project and I'm having a pretty basic
problem: I can't get text into the main fields
('MainOutDataField') so that the SEND button
will actually do something.

Since I'm using prc-tools, I had to construct an
rcp file by guessing at the intent of the _res.h
file.  I strongly suspect that I screwed this up
and misconfigured the MainOutDataField so that it
doesn't accept data.

Am I anywhere on the right track here?

Thanks,
Andy




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



RE: In the spirit of reducing noise ratio..do we need to post the FAQ

2003-02-06 Thread Andrew J. Huang
Ken Corey offered:

I'd be happy to auto-post a mini-FAQ to the group
perhaps
once a week if that sounds like a good idea to
most folks.

Maybe.  As a newbie with a critical project to get
done, I know I won't have time/interest to read
the faq.  From my perspective, gentle reminders
that the answer is in the FAQ would be better.

Cheers,
Andy


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



Re: Exchange Library project settings confusion

2003-02-04 Thread Andrew J. Huang
Hi Matt,

You mentioned grubbing through the Exchange
Manager OS code.  Where can I find this?  I
picked up the Limited OS sources and they were
quite limited.  Do I need a higher level of
licensing to see the real sources?

Thanks,
Andy

Subject: Re: Exchange Library project settings
confusion
From: Matt Hebley
[EMAIL PROTECTED]
Date: Tue, 4 Feb 2003 10:26:23 +1300
X-Message-Number: 63

It is all quite complicated. You can have an
exchange library, or an
application that looks like an exchange library.
It just depends on how you
wish to have these things install, lock, and
register themselves. A lot can
be learned by looking through the Exchange Manager
OS code.

Here is one tip I found...

...I finally grubbed through the OS source and
found that the exchange
manager will only use databases with type 'appl'
or 'exgl', not 'libr'!


Matt


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



How to return to my application after the Exchange Manager was used to send data to Date Book.

2002-08-14 Thread Andrew Filimonov

Hello,

I'm using Exchage Manger to put an event to Date Book locally. After the the
data transferr complete, the Date Book application launched. Is there a way
to prevent the launch of the Date Book and keep my application running.

Thank you,
Andrew.



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



Palm m505 contrast?

2001-12-05 Thread Andrew Perron

Hi all,

I was recently playing with (software) overclocking an m505 and noticed 
that it was significantly reducing the brightness.

This got me thinking of NoStreak Hack and how it modifies the bus 
bandwidth available to the display.  Would it be possible and feasible 
to increase the contrast of the m505 with similar techniques?

Cheers,

Andrew

P.S. Please at least CC my e-mail as I will not have access to news for 
the next while, thanks.


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



Re: decompile prc?

2001-07-29 Thread Andrew Francis

Igor Mozolevsky [EMAIL PROTECTED] wrote in message
news:58207@palm-dev-forum...

 Incidentally, if you read the license agreement you got with the soft,
and
 if it's been written by half clever person, you'll find that
decompling
 binary code is forbidden :-(

Of course, that may not apply to you, depending upon the laws in your
county/state/country :)

--
Andrew Francis
[EMAIL PROTECTED]



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



Re: Can Palm Inc own the word Palm ?

2001-07-10 Thread Andrew Francis


Gary Gorsline [EMAIL PROTECTED] wrote in message
news:56065@palm-dev-forum...
  If you have a product for several platforms,
 like CE and Pocket PC and Palm OS and Windows 9X, can you not advertise
them
 as MyAppName CE, MyAppName Pocket PC, MyAppName Palm OS and MyAppName
 Windows.

I'm pretty sure that it's legal to use names like MyAppName for Windows
and MyAppName for Palm without infringing on the trademark. To determine
whether a name violates a trademark, the main question asked is would the
average consumer be confused by the naming? - and I think it's fair to say
that your average consumer wouldn't look at MyAppName for Palm and get
confused as to whether it was a product of Palm Inc, or equivalent to the
Palm.

There was a big tizz when Microsoft made noise about trademarking Windows,
and I'm pretty sure that the general consensus afterwards is that names like
Lotus 1-2-3 for Windows weren't in violation.

That said, I'm not a lawyer and my memory is somewhat fuzzy, so go ask an
attorney in your jurisdiction :)

--
Andrew Francis
[EMAIL PROTECTED]



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



Format of Datebook database

2001-07-09 Thread Andrew Francis

I'm trying to figure out the format of the Datebook database on the Palm,
and I'm getting nowhere. All I've managed to find is source code for things
that use the format (the sample Datebook conduit in the CDK, and source in
the Coldsync and pilot-link utilities) - but while the code may work it's
hardly clear on what exactly it's doing :)

Searching the web and the knowledge base isn't really helping me either.
Does anyone know of a textual description of the datebook format on the
handheld?

Thanks

--
Andrew Francis
[EMAIL PROTECTED]





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



  1   2   >