Re: wrong calculation in codewarrior

2010-07-15 Thread Alan Ingleby
As a quick fix, you may want to try int size = 4 bytes.  it defaults to 2.
look in settings.

All these issues you are having relate to basic C programming questions.
You should google for a guide to C type conversions etc.

Alan

On 16 July 2010 06:38, codemaker  wrote:

> Thank you all for your contribution. I still need your advice to figure
> this out.
> I have to transfer a few thousand lines of code that works fine in other
> compiler and I must fully understand the conversion.
>
>
> You use the L when you make any use of 32bit constants? (Even in the
> initialization, and on 0)
> Same with doubles even they have fraction?
>
>double r = 0.0L;
>double d = 0.0L;
>double m=10L, h=10L, i;
>
>
>
>i = m + h / 24.0L;
>i += 10L + h;
>m = (i - 5544.5L) / 12225L;
>
>
> By the way I must have L on both variables.
> tmpY = 2008L * 367L; // (this one does not give the correct value -> 2008L
> * 367)
>
>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>



-- 
Alan Ingleby

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

Re: Can part of a PRC be optionally loaded by user?

2010-03-09 Thread Alan Ingleby
I have a "Root" object which our system's only global pointer and is used to
access all parts of our handheld framework.  It's then easy to store a
pointer to this class in a feature, then use it in any shared libraries.  I
suppose I could pass it as an argument to the shared library, but I felt
that using a feature to pass it provided better backwards/forwards
compatibility if I decide to pass different data down the track.

On 10 March 2010 04:04, Doug Reeder  wrote:

> Easily access globals? No.  But either a shared library or a gLib can
> access storage used by the main app, if you pass it a pointer.
>
>
>
> On Mar 9, 2010, at 7:13 AM, Luc Le Blanc wrote:
>
>  I'll rephrase my question: in order to save space for users with low-end
>> devices, how can I put optional features into another PRC that could still
>> easily access globals from the main PRC?
>>
>> Is a code library a good option?
>>
>>
>> Luc Le Blanc
>> http://www.speleo.qc.ca/Auriga
>> --
>> For information on using the ACCESS Developer Forums, or to unsubscribe,
>> please see http://www.access-company.com/developers/forums/
>>
>
> Doug Reeder
> reeder...@gmail.com
> http://reeder29.livejournal.com/
> https://twitter.com/reeder29
>
> https://twitter.com/hominidsoftware
> http://outlinetracker.com
>
>
>
>
>
>
>
>
>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>



-- 
Alan Ingleby

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

Re: QVGA POSE or Simulator available?

2010-01-20 Thread Alan Ingleby
I'd suggest testing against StyleTap.  It's 240x240, and will use your 108
density resources if you provide them. (Assuming you have a PPC laying
around)

2010/1/21 Luc Le Blanc 

> I'd like to test my software with a QVGA display before these new Aceeca
> PDAs reach the market. I support Palm and Sony hi-res but I have doubts
> about my current handling of a 320x240 display. Is there a QVGA POSE
> (Handera 330?) or Simulator available with this feature? I don't find any in
> my toolbox.
>
>
> Luc Le Blanc
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>



-- 
Alan Ingleby

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

Re: Older Palm OS SDKs?

2009-10-21 Thread Alan Ingleby
Google is your friend : http://www.google.com.au/search?q=sdk35-prc.zip

2009/10/22 Alan Ingleby 

> I've got 5r3 here.
>
> I've been developing Palm software for several years now, and never
> encountered issues with SDK versions.  Maybe I'm just lucky, but I wonder if
> there's a solution to your problem which does not involve needing the older
> SDK...??
>
> Oh, and the A6 printer is awful That's the worst printer I've ever had
> to deal with.
>
> Alan
>
> 2009/10/19 Jonathan Carse 
>
> Hi Guys,
>>
>> I am still supporting some old Palm OS software.
>>
>> Ridiculously, I have reached a situation where I must re-compile my
>> software with an older PRC tools (2.1) and with an older Palm OS SDK (not
>> 5r4).
>> The reason for that is my application crashes when a certain other
>> application which I don't have the source code for is installed on the same
>> device (an A6 printer library by Sipix).
>>
>> PRC Tools 2.1 is unavailable using standard cygwin installation, but I can
>> download and extract it on my own.
>>
>> However, I'm looking for an old Palm OS SDK since PRC tools 2.1 doesn't
>> seen to be compatible with the latest SDK (the headers don't compile due to
>> a "badly punctuated list in #define" error --- I'm drawing the line here, I
>> don't want to get dirty dealing with compatibility issues).
>>
>> AccessDevNet.com only lists the latest SDK.
>>
>> Thanks
>>
>> --
>> For information on using the ACCESS Developer Forums, or to unsubscribe, 
>> please see http://www.access-company.com/developers/forums/
>>
>>
>
>
> --
> Alan Ingleby
>



-- 
Alan Ingleby

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

Re: Older Palm OS SDKs?

2009-10-21 Thread Alan Ingleby
I've got 5r3 here.

I've been developing Palm software for several years now, and never
encountered issues with SDK versions.  Maybe I'm just lucky, but I wonder if
there's a solution to your problem which does not involve needing the older
SDK...??

Oh, and the A6 printer is awful That's the worst printer I've ever had
to deal with.

Alan

2009/10/19 Jonathan Carse 

> Hi Guys,
>
> I am still supporting some old Palm OS software.
>
> Ridiculously, I have reached a situation where I must re-compile my
> software with an older PRC tools (2.1) and with an older Palm OS SDK (not
> 5r4).
> The reason for that is my application crashes when a certain other
> application which I don't have the source code for is installed on the same
> device (an A6 printer library by Sipix).
>
> PRC Tools 2.1 is unavailable using standard cygwin installation, but I can
> download and extract it on my own.
>
> However, I'm looking for an old Palm OS SDK since PRC tools 2.1 doesn't
> seen to be compatible with the latest SDK (the headers don't compile due to
> a "badly punctuated list in #define" error --- I'm drawing the line here, I
> don't want to get dirty dealing with compatibility issues).
>
> AccessDevNet.com only lists the latest SDK.
>
> Thanks
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/
>
>


-- 
Alan Ingleby

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

Re: Access to Knowledge Base

2008-05-28 Thread Alan Ingleby
Sorry if this is a bit vague, but couldn't you use an anonymous proxy server
to relay all your requests to the KB?  If you were to set your browser to
use a proxy server which ran it's proxy on port 80, then you would have no
problem.

(I think this should work)

Regards,

Alan Ingleby
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> >
> >
> > Me, too.  US EPA will not open the port for a contractor.
> >
> > -Elizabeth
> >
> >
> > |+--->
> > ||  [EMAIL PROTECTED]|
> > ||  erks.com |
> > ||   |
> > ||  10/30/00 |
> > ||  11:07 AM |
> > ||  Please   |
> > ||  respond to   |
> > ||  palm-dev-foru|
> > ||  m|
> > ||   |
> > |+--->
> >   >---|
> >   |   |
> >   |   To: palm-dev-forum@news.palmos.com  |
> >   |   cc: |
> >   |   Subject: RE: Access to Knowledge Base   |
> >   >---|
> >
> >
> >
> >
> >
> > > To date there have been relatively few requests to change the port, at
> > > least in proportion to the number of people who are fine with
> > > it, and in
> > > relation to the effort required to move to a different port.  But we
> > > certainly do hear the comments, so keep them coming... we all
> > > have more to
> > > do than we have time for, so helping us determine where to
> > > spend our time
> > > is in your best interests.
> > >
> > > In other words, vote early, vote often...
> >
> > We at Metrowerks all have this issue, and don't have access to the KB
> > because of the company firewall.  Now that we're owned by Motorola, any
> > change to that firewall has to go through about a 6-month approval
> process,
> > so it'll never happen for us.
> >
> > There's my vote.  :)
> >
> > -hkmlt
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please
> > see http://www.palmos.com/dev/tech/support/forums/
> >
> >
> >
> >
> >
>
>





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


Re: how to keep database info on application update?

2008-05-28 Thread Alan Ingleby
> > Say I have an application on a Palm which creates some databases that
the
> > user modifies. I then write an update version of the app, and want to
sync
> > that onto the device while still keeping the database information the
user
> > has input.
> >
> > Does that happen automatically? I mean, does the new app version
overwrite
> > the previous version but keep the database memory intact?
Yep.

Regards,

Alan Ingleby






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


Re: PalmOS Floating Point Limits

2008-05-28 Thread Alan Ingleby
Does anyone know why some programs use an external floating point library
(mathlib.prc) when the PalmOS 2.0 an up supports up to 64 bit floating point
arithmetic directly??  Is there some problem with the Palm floating point
functions?

Also, the PalmOS Programmers Companion says that you can just use standard
mathematical symbols for all this... Does this mean that this would work
fine:

#include "NewFloatMgr.h" // Note: I'm using SDK3.0

FlpDouble a,b,c;

a=2.0;
b=3.0;
c=b*a;

So would this work correctly?? I always thought that C required floating
point numbers to be calculated using functions?

Also, where can I find out about the precision of these Double Floats (i.e.
the biggest number they can handle, etc?) The Palm manuals make no mention
of this.  (I guess they're presuming that we're all die-hard C guru's who
know it off the top of our heads..?)

Regards,

Alan Ingleby





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


Re: Access to Knowledge Base

2008-05-28 Thread Alan Ingleby
I have done a little more research into this problem.  All users who can't
get to port 8080 because of the firewall, simply set your proxy server to
one of the below public anonymous proxy servers.  Then all outgoing HTTP
connections are to port 80 on the proxy, and the proxy only has to worry
about Palm's port 8080.

Set your proxy server to PORT 80, and the server address as one of the
below:

142.169.242.4, or 164.124.250.226, or 168.126.72.10, or 168.126.72.12, or
168.126.72.13, or 168.126.72.26, or 168.216.147.130, or 169.133.1.51, or
192.117.238.94, or 193.89.27.199, or 194.140.17.130, or 194.213.91.6, or
194.239.178.252, or 195.37.223.225, or 195.74.0.28, or 198.161.26.2, or
198.161.26.33, or 198.161.26.65, or 200.1.161.59, or 202.30.245.3, or
202.39.143.5, or 203.103.174.194, or 203.108.181.62, or 203.144.250.66, or
203.241.162.32, or 203.37.184.60, or 203.41.7.130, or 204.140.188.5, or
204.211.154.142, or 204.211.154.144, or 205.134.211.44, or 208.196.150.4, or
209.121.142.2, or 209.20.42.6:3128209.5.107.10, or 210.172.76.30, or
210.8.56.1, or 210.96.52.1, that's it!

DICLAIMER : I didn't come up with this list, I found it by doing a search on
AltaVista for +"anonymous prox*", and going to this link :
http://proxys4all.cgi.net/anon/ip.html.

BTW: Please let me know how you go with this!

Regards,

Alan Ingleby
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
>
> Why has to be port 8080?  Some companies use HTTP.
>
> -Elizabeth
>
>
> |+--->
> ||  [EMAIL PROTECTED]|
> ||  om   |
> ||   |
> ||  10/31/00 |
> ||  08:25 AM |
> ||  Please   |
> ||  respond to   |
> ||  palm-dev-foru|
> ||  m|
> ||   |
> |+--->
>   >---|
>   |   |
>   |   To: palm-dev-forum@news.palmos.com  |
>   |   cc: |
>   |   Subject: Access to Knowledge Base   |
>   >---|
>
>
>
>
>
> Perhaps if I, Elizabeth, Heather, and everyone at Metrowerks complains, I
mean
> "votes", about this issue (no access to Knowledge Base because of fire
walls)
> every day, one day we will be able to look up needed information
ourselves.
> Until then, I guess we will have to send our questions to the forum,
questions
> that we might have been able to get answers to ourselves.
>
> Dave Heil
> Preco Electronics
> [EMAIL PROTECTED]
> 208-322-4288
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please
> see http://www.palmos.com/dev/tech/support/forums/
>
>
>
>
>





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


Re: Access to Knowledge Base

2008-05-28 Thread Alan Ingleby
Of course.  Sorry about that.  I was thinking you were behind a NAT
firewall, rather than a proxy server.  Or course this wouldn't work.
Bummer... At least I tried!

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Brian Mathis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Heather Tufts wrote:
> > > outgoing HTTP
> > > connections are to port 80 on the proxy, and the proxy only
> > > has to worry
> > > about Palm's port 8080.
> > >
> > > Set your proxy server to PORT 80, and the server address as one of the
> > > below:
> >
> > Any different from what I had already?  I'm using a company proxy server
on
> > port 80 to get out of our firewall, and then when I go to search on the
KB,
> > the search functionality requires that I be on port 8080, which I'm not
> > because I have to be on port 80 in order to get to the KB website in the
> > first place.  How would I configure the anonymous proxy server to use
port
> > 8080 when it gets to the KB?  I wouldn't, right?  (Pardon my
ignorance --
> > I'm CodeWarrior support, not a network guru.)
> >
> > Regardless, I tried what you suggested, but with no different results
> > (network error - could not resolve address or page could not be
displayed
> > when searching).  I did not try the whole list, but I did try five
random
> > addresses in the list.
> >
> > -hkmlt
>
>
> Yes you're right.  It's an interesting idea, but pretty much useless for
> most people who need it.  To get outside, you need to use your company's
> proxy.  If you change it to something else, you won't be able to access
the
> outside world.
>
> --
> Brian Mathis
> Direct Edge
> http://www.directedge.com
>
>





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


More Float Problems...

2008-05-28 Thread Alan Ingleby
I'm using SDK3.0, and NewFloatMgr.h.  This line of code:

FlpCompDouble amount;

amount.fd = FlpAToF(".00");

should assign a double precision value of .00 to amount, but when
read back using FlpFToA, it reads 2989542.08.  What's going on?? Any ideas??

Thanks

Alan Ingleby





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


Re: More Float Problems...

2008-05-28 Thread Alan Ingleby
> >amount.fd = FlpAToF(".00");
> >
> >should assign a double precision value of .00 to amount, but when
> >read back using FlpFToA, it reads 2989542.08.  What's going on?? Any
ideas??
>
> I didn't take the time to investigate, but if I recall correctly, that API
has a fairly tight limit on the number of digits it can handle, and I think
you're over the limit. Of course, it'd be nice to have an API that can
handle as many digits as the type can represent.

I think I know what you mean.  I have dug a bit deeper into my code, and
noticed that FlpAToF("") works fine, it's just when you add the
".00" on the end it doesn't work.

I don't suppose anyone knows of a simple function to do this conversion
manually?? I'd really appreciate the help here, thanks!

Alan Ingleby





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


Re: More Float Problems...

2008-05-28 Thread Alan Ingleby
Thanks for your help.. For your information, and others who read the group,
I found this routine in a search through the archives.  I have modified it
slightly to make it a bit tighter.  Original credits go to Steve Mann
[EMAIL PROTECTED] - thanks Steve!

FlpFloat GetFloatFromString(Char* s)
{
 Char   leftstr[12], rightstr[12];
 FlpCompFloat leftval, rightval, result;
 Int16   j=0, k=0;

 // strip off LHS of number
 for(j = 0; (s[j] != '\0') && (s[j] != '.'); j++) leftstr[j] = s[j];
 leftstr[j] = '\0'; // done, terminate it
 // strip off RHS of number
 if(s[j] == '.') j++;
 while(s[j] != '\0') rightstr[k++] = s[j++]; // get RHS
 rightstr[k] = '\0'; // done, terminate it
 // convert the two parts to floating point #s
 leftval.f = (float) StrAToI(leftstr);
 rightval.f = (float) StrAToI(rightstr);
 // convert RHS to proper fraction
 for(j = 1;j <= StrLen(rightstr); j++) rightval.f /= 10.0;
 // combine and return results
 result.f = leftval.f + rightval.f;
 return result.ff;
}

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Peter Epstein" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> At 01:11 PM 11/2/2000, Alan Ingleby wrote:
> >I think I know what you mean.  I have dug a bit deeper into my code, and
> >noticed that FlpAToF("") works fine, it's just when you add the
> >".00" on the end it doesn't work.
> >
> >I don't suppose anyone knows of a simple function to do this conversion
> >manually?? I'd really appreciate the help here, thanks!
>
> I don't know of any simple way to do this if you need to handle more than
8 (or whatever the limit is) non-zero digits. You can easily parse the
digits yourself to generate an integer, but the integer needs to be big
enough to hold all the digits, and that's going to require 64 bit math. Or,
you can break your string in half and convert each half to floating point.
If you adjust the exponents properly, you should be able to make this work.
> --
> Peter Epstein
> Palm Inc. Developer
>
>
>





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


Trying to set 2bit on OS3.0

2008-05-28 Thread Alan Ingleby
The emulator crashes with a "chunk under-locked" error when running this
code on a en_3.0 rom:

 if (!(error = ScrDisplayMode(scrDisplayModeGetSupportedDepths, NULL, NULL,
&newDepth, NULL))){
  if (!(error = ScrDisplayMode(scrDisplayModeGet, NULL, NULL, &oldDepth,
NULL))){
   if ((oldDepth < 2) && ((newDepth & 2) == 2)) { // If screen is capable of
2 bit color, then set it to that!
newDepth = 2;
ScrDisplayMode(scrDisplayModeSet, NULL, NULL,&newDepth, NULL);
FrmCustomAlert(AINGDebugAlert,"2 Bit!","","");
   }
   else {
FrmCustomAlert(AINGDebugAlert,"No Change","","");
   }
  }
 }

Any ideas?  I'm using the 3.0 SDK.  The code runs fine on os 3.1 and above.
--
Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122





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


Screen Zoomer

2008-05-28 Thread Alan Ingleby
I'm running 1600x1200 on my new 19" NEC MultiSync monitor, so now the
Codewarrior Constructor is a bit too small.  I need a screen zoom utility
that will let me interact with the zoomed area... All the zoomers I've
looked at still require the mouse clicks etc to occur on the original
(small) screen).  Does anyone know to achieve this?

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122





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


Re: OS 3.5, listboxes with large amounts of data

2008-05-28 Thread Alan Ingleby
I also have a list of 20,000 items, 11 visible at once.  When I use the
LstSetTopItem function to move the list to an item between (approx) 2975 and
5950 or 9925 to 11900, and call a LstDrawList, the list draws, the
immediately erases itself.  This only happens between alternate
ranges...i.e.: the first 2975 items work fine, the second 2975 don't the
third work fine, the fourth don't etc...

If I use the up/down buttons on the right hand side of the listbox to scroll
the list where it is currently invisible, it redraws OK.

I originally thought the fault was with my List drawing function, but
stepping through the screen drawing process, the screen is erased
immediately AFTER the last line is drawn, and my function has finished...

Please help, as this is a VERY annoying bug, and it's driving me crazy
trying to work it out!

By the sound of things, this seems to be a bug in the PalmOS!

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122

"Michael Ryan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I've got a listbox with a list of about 4,000 items.  For all the listbox
> drawing commands we use a simple callback function to simply draw items to
> the listbox depending on user criteria.  In Palm OS 3.5 we have a strange
> problem where just after the callback function is done all the listbox
> drawing functions will randomly erase items off the listbox.  They're
still
> marked as visible yet they don't show up on the screen.  I know that it's
> not the callback function as I've placed breakpoints at the end of the
> function to watch the values dance through.  At the very end of the last
> iteration of the callback function everything is displayed correctly on
the
> listbox and in between the time it takes for the listbox command to return
> to the previous code it suddenly erases much of the items in the listbox.
>
> Has anyone else had this problem?  If so, have you found acceptable
> workarounds?  I've tried various combinations of the listbox routines from
> list.h and nothing seems to work.
>
> We only have this problem with OS 3.5.  All the other OSes work as they
> should.
>
> Thanks,
> Michael Ryan
>
>
>
>





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


Re: OS 3.5, listboxes with large amounts of data

2008-05-28 Thread Alan Ingleby
Anyone from Palm willing to comment on this bug?  Why is it there?  When
will it be fixed? Is there a workaround?

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> > From: Alan Ingleby [mailto:[EMAIL PROTECTED]
> > This only happens between alternate ranges...i.e.:
> > the first 2975 items work fine, the second 2975 don't
> > the third work fine, the fourth don't etc...
>
> Well, assuming the standard font which is 11 pixels high, then 11 times
2975
> equals 32725, which is suspiciously close to the maximum number that can
be
> represented in a signed 16-bit integer.  The Palm drawing coordinate
system
> is based on 16-bit signed integers.  So even without knowing exactly
what's
> going wrong here, you may be out of luck.
>
> -slj-
>
>
>





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


Re: OS 3.5, listboxes with large amounts of data

2008-05-28 Thread Alan Ingleby
I don't suppose you want to share the code for the List-Gadget you created?

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Neil Rhodes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I have had problems with large numbers of list items in a list prior to OS
> 3.5.  It seemed to occur when the line height * number of items exceeded
> 32K.  In your case, 4000*12 is definitely greater than 32K.  I ended up
> writing my own gadget to simulate a list.
>
> I didn't track down exactly why the error was occurring, though.
>
> > I've got a listbox with a list of about 4,000 items.  For all the
listbox
> > drawing commands we use a simple callback function to simply draw items
to
> > the listbox depending on user criteria.  In Palm OS 3.5 we have a
strange
> > problem where just after the callback function is done all the listbox
> > drawing functions will randomly erase items off the listbox.  They're
still
> > marked as visible yet they don't show up on the screen.  I know that
it's
> > not the callback function as I've placed breakpoints at the end of the
> > function to watch the values dance through.  At the very end of the last
> > iteration of the callback function everything is displayed correctly on
the
> > listbox and in between the time it takes for the listbox command to
return
> > to the previous code it suddenly erases much of the items in the
listbox.
> >
> > Has anyone else had this problem?  If so, have you found acceptable
> > workarounds?  I've tried various combinations of the listbox routines
from
> > list.h and nothing seems to work.
>
> --
> Neil Rhodes
> [EMAIL PROTECTED]Available for contract programming
> Coauthor: Palm Programming: the Developer's Guide (O'Reilly)
>
>
>





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


Re: OS 3.5, listboxes with large amounts of data

2008-05-28 Thread Alan Ingleby
At last a breakthrough!!  I have a pretty good workaround for the "OS3.5
Large Lists" bug!!  BTW: If David Fedor is reading this, I'd really
appreciate confirmation that this IS a bug, and that my suggestion is an
acceptable workaround.

This is the type of code that buggers up under 3.5:

  LstSetTopItem(listPtr, index);
  LstEraseList(listPtr);
  LstDrawList(listPtr);

So just replace it with this...

  LstSetTopItem(listPtr, index - 12);
  LstScrollList(listPtr, 1, 12);

Obviously you have to check that your index is not less than 12 to begin
with, but if it is, the normal drawing code works anyway so who cares?

Let me know if this fixes your problems.  I know it's fixed mine.

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Michael Ryan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I've got a listbox with a list of about 4,000 items.  For all the listbox
> drawing commands we use a simple callback function to simply draw items to
> the listbox depending on user criteria.  In Palm OS 3.5 we have a strange
> problem where just after the callback function is done all the listbox
> drawing functions will randomly erase items off the listbox.  They're
still
> marked as visible yet they don't show up on the screen.  I know that it's
> not the callback function as I've placed breakpoints at the end of the
> function to watch the values dance through.  At the very end of the last
> iteration of the callback function everything is displayed correctly on
the
> listbox and in between the time it takes for the listbox command to return
> to the previous code it suddenly erases much of the items in the listbox.
>
> Has anyone else had this problem?  If so, have you found acceptable
> workarounds?  I've tried various combinations of the listbox routines from
> list.h and nothing seems to work.
>
> We only have this problem with OS 3.5.  All the other OSes work as they
> should.
>
> Thanks,
> Michael Ryan
>
>
>
>





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


Re: "projecting" a Palm application

2008-05-28 Thread Alan Ingleby
Palm themselves used POSE during a developers conference I attended.

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Owen Flagel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I've got to demonstrate a Palm application to a group of about 30
> people. I was wondering what is the best way of "projecting" an
> application to a screen? Is using  POSE with a PC and then
> projecting the best approach, or is there  other software that is
> typically used for demos?
>
> Thanks, Owen
>
>





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


Re: Getting Palm Debug ROMs ..

2008-05-28 Thread Alan Ingleby
Yes.  I guess all the legalese is just Palm being extra-cautious about their
copyright.

Unfortunately, you'll have to wait a few weeks for the paperwork to be
processed.

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Steve Fillingham" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi all,
> This has probably been asked a thousand times, but, do I need to fill
> out the 'Prototype Licence and Confidentiality Agreement' to be able to
> download the debug ROM's.  The agreement goes on about some prototype, and
> keeping it in a locked room with only secure personel allowed to access
it,
> and keep records of who accesses it and so on, so that 3Com can audit the
> log at anytime.
> This seems overkill for a small time developer like myself.
> Am I heading in the right direction ??
> Any help much appreciated, I am dieing to get a hold of one of those
> debug ROM's.
>
> ---
> Steve Fillingham
> CodeDrive Pty Ltd
> [EMAIL PROTECTED]
>
>
>
>





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


Re: Data Encryption on Palm OS

2008-04-27 Thread Alan Ingleby
/***
* FUNCTION NAME : HelperRC4(Char* sIn, UInt32 iInLen, Char* sKey, UInt32
iKeyLen)
*   DESCRIPTION : Encrypts (in place) the data pointed to by sIn using the
*  encryption key pointed to by sKey
*   RETURNS : none
*PARAMETERS : sIn - pointer to the data to encrypt
*  iInLen - Number of bytes to encrypt
*  sKey - pointer to the encryption key
*  iKeyLen - Number of bytes in the encryption key
*  PRECONDITION : none
* POSTCONDITION : none
*  COMMENTS : RC4 encryption is reversible.  ie: use the same function
again
*  to decrypt the string.
***/
void HelperRC4(Char * sIn, UInt32 iInLen, Char * sKey, UInt32 iKeyLen)
{

UInt8 *inp = (UInt8 *) sIn;
UInt8 *key = (UInt8 *) sKey;

UInt8 s[256];
UInt8 k[256];
UInt32 i;
UInt32 j;
UInt8 temp;
UInt32 t;
UInt32 x;

for (i = 0; i < 256; i++)
{
s[i] = (UInt8) i;
}

j = 0;

for (i = 0; i < 256; i++)
{
k[i] = key[j++];
j %= iKeyLen;
}

j = 0;

for (i = 0; i < 256; i++)
{
j = (j + s[i] + k[i]) % 256;
temp = s[i];
s[i] = s[j];
s[j] = temp;
}

i = 0;
j = 0;

for (x = 0; x < iInLen; x++)
{
i = (i + 1) % 256;
j = (j + s[i]) % 256;
temp = s[i];
s[i] = s[j];
s[j] = temp;
t = (s[i] + s[j]) % 256;
inp[x] ^= s[t];
}
}

2008/4/25 Lionscribe <[EMAIL PROTECTED]>:

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



-- 
Alan Ingleby

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

FrmCustomAlert Error - FIXED

2008-04-14 Thread Alan Ingleby
(your app) called SysFatalAlert with the message : "Field.c, Line:175,
Invalid isertion point position".
(your app) called SysFatalAlert with the message : "Field.c, Line:2770,
Invalid isertion point position".

Both of these errors can be caused by called FrmCustomAlert if the resulting
error message (after substitution of your passed in strings) ends with a
"\n" char.

I post this for information only, because I just wasted 30 minutes working
this out, and no one seems to have noticed it before.

(Yes, similar errors can be created by passing empty / null as a string
parameters to this function too... )

Alan Ingleby

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

Re: RC4 encryption in Palm

2007-04-12 Thread Alan Ingleby
RC4 is really simple to implement.  I'd suggest you use that.  Here's the
code.

/***
* FUNCTION NAME : HelperRC4(Char* sIn, UInt32 iInLen, Char* sKey, UInt32
iKeyLen)
*   DESCRIPTION : Encrypts (in place) the data pointed to by sIn using the
*  encryption key pointed to by sKey
*   RETURNS : none
*PARAMETERS : sIn - pointer to the data to encrypt
*  iInLen - Number of bytes to encrypt
*  sKey - pointer to the encryption key
*  iKeyLen - Number of bytes in the encryption key
*  PRECONDITION : none
* POSTCONDITION : none
*  COMMENTS : RC4 encryption is reversible.  ie: use the same function
again
*  to decrypt the string.
***/
void HelperRC4(Char * sIn, UInt32 iInLen, Char * sKey, UInt32 iKeyLen)
{

UInt8 *inp = (UInt8 *) sIn;
UInt8 *key = (UInt8 *) sKey;

UInt8 s[256];
UInt8 k[256];
UInt32 i;
UInt32 j;
UInt8 temp;
UInt32 t;
UInt32 x;

for (i = 0; i < 256; i++)
{
s[i] = (UInt8) i;
}

j = 0;

for (i = 0; i < 256; i++)
{
k[i] = key[j++];
j %= iKeyLen;
}

j = 0;

for (i = 0; i < 256; i++)
{
j = (j + s[i] + k[i]) % 256;
temp = s[i];
s[i] = s[j];
s[j] = temp;
}

i = 0;
j = 0;

for (x = 0; x < iInLen; x++)
{
i = (i + 1) % 256;
j = (j + s[i]) % 256;
temp = s[i];
s[i] = s[j];
s[j] = temp;
t = (s[i] + s[j]) % 256;
inp[x] ^= s[t];
}
}

On 4/13/07, Alexander R. Pruss <[EMAIL PROTECTED]> wrote:
>
> You could use AES.  There is an open source AES library.  If you want
> example code that uses it, get the NVBackup source code (
> handypalmstuff.sf.net).
> --
> 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: Please help ..urgent needed

2007-04-10 Thread Alan Ingleby
Your app has been called with a special launch code.  Check your launch
codes, and call an API to switch to your app, then exit.  Your app will be
re-launched with a normal launch code.

Alan Ingleby

On 4/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>  I have developed an application for Palm Treo 650 which works
> fine from the main screen.Now i registered the same application with send
> menu using Exchange manager API.When i try to launch my application from
> the send menu,nothing happpens.I just want when i click my application
> from the send menu,my main form should open..not more than that.What event
> i need to handle to acheive this.
>
> I will be grateful  to you all if i can get a sample which is creating
> exchange libarary from an application so that it can be launched from the
> home screen as well as from the send menu.
>
>
> Please help .I will be grateful to you all.
>
>
> regards
> Kapil Kaushik
> Delhi,India
> --
> 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: Vista and CW9.3

2007-03-12 Thread Alan Ingleby
I recently upgraded my laptop to Vista to see what all the fuss was about,
and found Codewarrior to be running just fine.  Debugging into an emulator
works too.

As soon as I get a chance, I'm going to be wiping the HD, and re-installing
XP.  Vista runs like a dog on my Laptop.  It might be because it was never a
clean install, or it may be because my computer is so old (18 months), but
it's at least half the speed it used to be.  I'd suggest avoiding Vista
unless your PC is brand new, and comes with it pre-installed.

Oh, and UAC is bloody annoying... It blocks Hamachi from auto-starting, and
brings up messages every time I try to run VS2003 or VS2005.

Alan

On 3/12/07, Lionscribe <[EMAIL PROTECTED]> wrote:
>
> Anyone know if CodeWarrior 9.3 works with Windows Vista?
> LionScribe
>
> --
> 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: Reasonable Use of a Form?

2007-02-07 Thread Alan Ingleby
I have a library function which draws a bitmap over the middle of the
screen, and updates a progress bar on it.  I use this for lengthy
calculations etc.

It also does a save behind, so the original screen content it blocked.

Alan

On 2/8/07, Lionscribe <[EMAIL PROTECTED]> wrote:
>
> I do it all the time for short computations. The functions
> FrmInitForm, FrmDrawForm,
> FrmEraseForm, FrmDeleteForm
> do not cause events.
> But in long computations it is only fair to let user cancel in middle,
> especially on a Treo where a Phone Call may be coming in. Either use a
> separate event loop, or keep on posting custom events and do part of the
> computation by each event.
>
>
> Lionscribe
>
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: GETUPTIMEMS

2007-02-05 Thread Alan Ingleby
TimGetTicks()

On 2/5/07, Sruthi <[EMAIL PROTECTED]> wrote:
>
> hi Niel,
>
>  I tried both the functions. These are the results i got while
> trying.
>
> We cant find SysGetTicks() in PalmOS 5 UI pdf.
> Using  SysTicksPerSecond() i get 100 all times.
>
> While using the GETUPTIMEMS() function it returns random number of  5
> digits.
>
> Since we are porting from brew need to get a value around this to get
> the code flow correct.
> Hope i got my problem
>
> Thanks in advance,
> Sruthi
>
>
>
>
>
> Neil Whitworth wrote:
>
> > Sruthi wrote:
> >
> >> hi all,
> >>
> >>   How to get the similar function like the GETUPTIMEMS() in
> >> PalmOS. In brew this function returns time in milliseconds since the
> >> device was powered on. We need to get the same feature in palmOS.
> >> Anyone gone through this issue please guide us.
> >>
> >> Thanks,
> >> Sruthi
> >>
> >>
> >>
> >>
> > SysGetTicks() returns the number of 'ticks' since last reboot.
> > SysTicksPerSecond() returns the numebr of 'ticks' per second.
> >
> > Check the documentation, as system ticks are NOT advanced while the
> > device is asleep.
> >
>
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Why no CtlGetUsable?

2007-01-23 Thread Alan Ingleby
I can't see an API which will allow me to detect the usable state of a
control.  I know I can go directly to the ControlAttrType structure on only
versions of the OS, but what about a correct way?

Alan

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

Re: palm .net frame work

2007-01-23 Thread Alan Ingleby
It can not be done.  There is no .net runtime for the PalmOS.  There is
currently a project underway to develop one, called upCLeaR.  Google for it,
and you'll be able to read more about it, but it is only in the early stages
of development at the moment, so don't hold your breath.

You could also look into AppForge.  They have some sort of .Net abilities
for the Palm, but I think it's done through some sort of cross-compiler, so
it's not really a .net runtime.

Alan

On 1/22/07, Durgesh Trivedi <[EMAIL PROTECTED]> wrote:
>
> Is it possible to develop the palm os application by the use of MS .net
> frame wrk can any budy guide me regarding this and provide some  good  link
> and examples to develop the palm application  with the MS .net.
> thanks
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: Fatal Alert when app commences on a real Dana, but not in POSE

2007-01-17 Thread Alan Ingleby
Wow.. weird... it really falls under the category of:
1) Internal compiler problem
2) Stack (as has been mentioned)
3) Segmentation.
4) Bizzarre.

A few thoughts then...

 - Have you tried runing the app on a simulator?
 - Have you tried Gremlins, even though it appears to work well on POSE...?
 - Have you got all the POSE debugging options checked?
 - Have you tried POSE with both a Debug and Release Rom?
 - Rather than an Alert in the pilot main, try a BEEP api call.

hope this helps.. (probably not huh)... I don't have a Dana, so can't help u
test it, but I do have most other Palms, and if you're still stuck in a few
more days, I am willing to have a bash at helping you...

Contact me off-list if you want help.

Alan Ingleby

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

Re: how to create java palm application supporting floating point

2007-01-17 Thread Alan Ingleby
It will beep at you, won't it?

On 1/17/07, yin xiang <[EMAIL PROTECTED]> wrote:

> How can I get notified when my Treo receive SMS message?

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

Re: how to create java palm application supporting floating point

2007-01-16 Thread Alan Ingleby
.. or superwaba... ?

Alan

On 1/17/07, Benoit HERVIER <[EMAIL PROTECTED]> wrote:
>
> I suggest the excellent onboard compiler named iziBasic...
>
> Http://www.aldweb.com/
>
>
> .. Original Message ...
> On Tue, 16 Jan 2007 09:25:48 -0600 ""Dmitry Grinberg"" <[EMAIL PROTECTED]
> >
> wrote:
> >is java a requirement for this project? Java runtimes for PalmOS PDAs
> >are messy, there are a few versions, each different, and some devices
> >are not supported at all. The app you wanted is doable in under 50
> >lines of C, perhaps you should look into that?
> >
> >On 1/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> I am a newbie to palm development and want to use Java to create an
> >> application for the palm os (I own a zire 71)  and I need to be able to
> do
> >> floating point calculations  such as...
> >>
> >> Enter value A ___
> >> Enter value B ___
> >>
> >> Submit Button
> >>
> >> -
> >> Take values A and B, divide them and return the results as a decimal
> >> number not as an integer value.  I also need to be able to use square
> root
> >> calculations.
> >>
> >> Can I use netbeans 5.5 for creating this application or is there
> another
> >> tool one would suggest?
> >>
> >> Thanks in advance
> >> Dean-O
> >>
> >> --
> >> 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: DmitryGrinberg
> >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/
> ___
> Benoit HERVIER
> http://www.khertan.net
> Sent from my Palm
>
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: Shameless plugin: upCLeaR

2007-01-07 Thread Alan Ingleby
I'll be interested when you have some working code.  Keep me posted.

On 1/6/07, Heriberto Delgado <[EMAIL PROTECTED]> wrote:
>
> Hmm... I agree with you on that, Alan. Under a 12 MHz Palm, running
> managed code is almost bound to take a high penalty on speed. Fortunately,
> most new Palm devices do not run at that speed :) .
> I hope to release, sooner than later, a native ARM version of the project,
> one that runs at full ARM speed, with minimal PACE intervention. Maybe, with
> the right libraries, it could even handle native threading. Who knows? It
> might work :)
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: run time error

2007-01-04 Thread Alan Ingleby
You're dereferencing an invalid pointer somewhere.

On 1/5/07, rupesh bhavsar <[EMAIL PROTECTED]> wrote:
>
> Run68K.c, Line:1245, Invalid read from FFE8
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Frameworks for porting PalmOS to PPC

2007-01-04 Thread Alan Ingleby
I'm after a bit of feedback on PalmOS to PPC porting.  We've written a PPC
version of one of our apps before, but last time we just re-wrote it using
.NetCF, which had the drawback of being painfully slow, and didn't have any
shared code.

This time I was thinking of using MFC, and trying to push as much code as
possible into device independant C++ classes, with other classes dedicated
to a DAL (mainly for IrDA, Database Abstraction, and other such things)
therefore being able to share a majority of code between Palm and PPC. I
guess the nastiest part of this porting project will probably be the UI
code, because I figure it will still have to be written twice.

I'm after opinions on whether MFC is the way to go, or should I be looking
at another 3rd party framework.  Are there any frameworks which lend
themselves to Palm-PPC cross platform work?

(Note that we already have a very large PalmOS codebase in C/C++, so
AppForge or other RAD-style cross platform development tools aren't really
an option.)

Alan Ingleby
Profitlink Consulting

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

Re: Shameless plugin: upCLeaR

2007-01-04 Thread Alan Ingleby
I think trying to support .NET on a 68k processor, while a good learning
excercise etc, will be pretty nasty.  It's never going to provide enough
speed for anything beyond a hello world style app.  Consider the speed
.NETCF on a 400mhz PocketPC; it's pretty slow. I'd hate to think how much
slower it would be on a 12mhz Palm.

Alan

On 1/5/07, Heriberto Delgado <[EMAIL PROTECTED]> wrote:
>
> Interesting questions, all of them, Alan.
>
> It's unlikely that I use code from Mono or Portable .NET at this stage.
> I'm more of a C++ guy than a C one; got myself somewhat confused trying to
> read some of the source code of both projects. Yes, I know this is going to
> take me a lng time, but frankly, I'm learning so much from this, that
> it's definitively worth it. And I fully expect the resulting application
> will also be worth the effort.
>
> My policy on this project, also true of many other projects at work and/or
> on my free time, is this: Make it work, then make it work efficiently.
> Sometimes that means I will be coding twice or thrice the time that would be
> normally expected, but it lets me having things done earlier than expected,
> AND if any fundamental changes need to be made to the project, they could be
> easily made at that time. So, yes, I plan to implement pseudo-threading
> >>for now<<.
> It's quite probable that 68k projects will retain that threading model. As
> for native ARM apps, I'm currently exploring alternatives already
> implemented in other ARM-based devices that might work on Palm. Who knows?
> It might succeed.
>
> Of course, I WILL implement support for loading assemblies from media
> cards, in addition to the current model. I really wish to have both
> implemented on upCLeaR, and (for this time) I wanted to start with the
> "hardest" one, just to have it ready as soon as possible. So don't worry,
> sooner or later support for media cards will happen.
>
> Thanks, Alan, for your interest on the project! It is my intent the best
> of myself with the outcome of this project, so wish me luck!
>
> - Izhido
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: Simple question: testing that API is present before calling it?

2007-01-03 Thread Alan Ingleby
Here's what I use:

Boolean HelperDeviceHasNVFS()
{
Boolean bRet = false;

#ifdef sysFtrNumDmAutoBackup
UInt32 iVal;

if (FtrGet(sysFtrCreator, sysFtrNumDmAutoBackup, &iVal)==errNone)
{
if (iVal==1)
{
bRet = true;
}
}
#else//sysFtrNumDmAutoBackup
#warning sysFtrNumDmAutoBackup was not defined - NVFS Autodetection is not
enabled.  Upgrade to the latest Palm SDK to fix this.
#endif//sysFtrNumDmAutoBackup
return bRet;
}


On 1/4/07, Gregg Woodcock <[EMAIL PROTECTED]> wrote:
>
> I am finally (because I have to in order to work around a bug on the OS)
> call an API that is not fully backwards compatible (and also doesn't have
> a
> glue function).  So I will need to test that the API exists before I call
> it, lest I crash on older HW.  What is the proper way to do this?
> In case it matters, the calls are DmSync() and DmSyncDatabase().
> --
> For God, Family and Republic!
> Orthodoxy Orthopraxy Operatur!
> My plan to save the world:
> More Jesus, Less Government!
>
>
>
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: Shameless plugin: upCLeaR

2007-01-03 Thread Alan Ingleby
Are you planning to use chunks of code from PNet or Mono where you can, or
just re-writing the entire thing from scratch?  It's ging to take you a hell
of a long time if you're going to write everything from scratch.

Are you suggesting that because you're interpreting the CIL atm, you'll
implement pseudo-threading within the CLR?

I'd suggest making use of the SD card to store the assemblies, rather than
packaging them into PRC files.  Most palms have SD these days.

Alan

On 1/4/07, Heriberto Delgado <[EMAIL PROTECTED]> wrote:
>
> Hi, Alan!
>
> I wondered about that, too. I always expected that, just like what
> happened with Java and J2ME, somebody would try to "port .NET" to PalmOS.
> But it didn't happen. So I decided to try it myself :) .
>
> As for the other two questions, well, now that I finally managed to load
> an assembly into memory, I think it's time to bring the Execution Engine to
> life, by calling the main entry point of the assembly. So, if everything
> works OK, the next release should at least print something at the screen, be
> it either "Hello world!", or "6" (the output of the C# TestApplication I've
> built into the project). Also, I'm currently focusing on having a fully
> compliant CIL interpreter, so the core platform features (threading,
> application domains, garbage collection, and such) should be relatively easy
> to implement. Things like a JIT, native threading, memory isolation, and so
> on, will come later. We'll see about that.
>
> - Izhido
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: Shameless plugin: upCLeaR

2007-01-03 Thread Alan Ingleby
Looks like a promising project.  I've wondered when someone would try to do
this.

I wonder how you're going to handle issues such as Threading on the Palm
though?

How long until a "Hello World" app will run?

Alan

On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi everybody!
>
> I promise I won't be doing this too often. I know forums are not the place
> for advertisements. Just wanted to tell you about my project. It's called
> upCLeaR. It is (or will be, once finished) an implementation of the Common
> Language Specification (ECMA-335, the basis for Microsoft's .NET Framework)
> for all kinds of computer devices, focusing primarily on small, portable
> devices.
>
> It's still at a very early stage, but things are going on swiftly. All
> projects compile & run, although they don't (yet) do anything useful.
>
> I'm posting this here because, as of the latest release (2007-01-02),
> initial support for PalmOS has finally been added. It works with a similar
> approach to that of the Java J2ME runtime on the Palm.
>
> If this piqued your interest, go ahead, read my blog, download the latest
> version, and try it. I will be very happy to hear your comments.
>
> My blog is at:
>
> http://heribertod.blogspot.com/
>
> The project is being hosted at SourceForge, using a MIT-style license, at:
>
> http://www.sourceforge.net/projects/upclear
>
> Thanks for your time reading this!
>
> - Izhido
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
>

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

Re: Decimal field validation...

2006-11-14 Thread Alan Ingleby
ahh... that was it.  Hence my hand rolled version...On 11/15/06, News <[EMAIL PROTECTED]> wrote:
It doesn't allow "-" characters.Regards,Steve Mann# # #On Nov 14, 2006, at 3:43 PM, Alan Ingleby wrote:
I always thought a numeric field didn't allow "-" and "." symbols.On 11/15/06, 
Efrenk <[EMAIL PROTECTED] > wrote:
Add this to the form's frmOpenEventFieldType *yourfield; FieldAttrType attr1;yourfield = (FieldType *)FrmGetObjectPtr(FrmGetActiveForm(), FrmGetObjectIndex(FrmGetActiveForm(), yourfield'sname));
FldGetAttributes(yourfield,&attr1);attr1.numeric = 1;FldSetAttributes(yourfield,&attr1);That allows only numerical values to be inserted (including decimal and negative numbers). Other characters won't be allowed
--For information on using the PalmSource Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/
-- 

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




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

Re: Decimal field validation...

2006-11-14 Thread Alan Ingleby
I always thought a numeric field didn't allow "-" and "." symbols.On 11/15/06, Efrenk <[EMAIL PROTECTED]
> wrote:Add this to the form's frmOpenEventFieldType *yourfield;
FieldAttrType attr1;yourfield = (FieldType *)FrmGetObjectPtr(FrmGetActiveForm(), FrmGetObjectIndex(FrmGetActiveForm(), yourfield'sname));FldGetAttributes(yourfield,&attr1);attr1.numeric
 = 1;FldSetAttributes(yourfield,&attr1);That allows only numerical values to be inserted (including decimal and negative numbers). Other characters won't be allowed--For information on using the PalmSource Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

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

Re: Decimal field validation...

2006-11-14 Thread Alan Ingleby
Scan thru looking for char values >=0 or <= 9.  The only other chars allowed must be a single decimal point, and possibly a '-' sign.  pretty easy really.AlanOn 11/14/06, 
Jorge Vasquez <[EMAIL PROTECTED]> wrote:
Regards,Anybody has any idea on how to validate a field to guarantee that theuser has entered a valid decimal number?Thanks,--Jorge Andres Vasquez--For information on using the PalmSource Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

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

Re: Converting a char sequence to a float and converting it back

2006-10-17 Thread Alan Ingleby
Look through the archives for GetStringFromDouble and GetDoubleFromStringOn 10/18/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:I created a NUMERIC MAXCHARS 40 UNDERLINED text field for the GUI.
And I figured out how to get the text inside that text field inside the Palm C Code.I seem to only be able to extract it as a char sequence even though it is NUMERIC.How can i convert my char sequence into float?
static Char bar[80];And how can i set it back to a char sequence to then apply it back to a different text field?The reason I want to do this is to do some math on the number, then spit it back out in a different text field.
thanks,David--For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/


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

E2 Hotsync Problem

2006-08-10 Thread Alan Ingleby
After using a Serial cable to print to a serial printer, I cannot hotsync my E2 to a PC though the usual USB cable.The solution seems to be, 1) Plug the USB cable into the Palm, 2) Unplug the USB cable 3) Plug the cable back in, then press the hotsync button.
It seems to be a problem with either PalmUSBD.sys, or the Palm E2 internals.  The seem to be getting confused when the palm is switched from a Serial and USB cable.Any ideas?Alan Ingleby

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

Re: Send Bitmap Image to Server...

2006-05-30 Thread Alan Ingleby

Kabir,

Maybe you could hire one of the palm developers on this forum to do it for you?

Alan

On 5/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi,
At present I am trying to send JPEG files to server. Please give me hint, How 
to do that. JPEG files are stored in Pictures folder. Also tell me how to 
locate that file.
Bhagvat

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



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


Re: Int16 to double

2006-03-19 Thread Alan Ingleby
Err.. Just cast it?

Int16 i = 100;
double d = (double)i;

That easy enought for you?

Alan

On 3/20/06, John Jenusaitis <[EMAIL PROTECTED]> wrote:
> Does anybody know the best way to convert an Int16 to a double?
>
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/support/forums/
>

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


Re: Newbee question - linked lists

2006-03-01 Thread Alan Ingleby
That's because you're setting current to point to the memory location,
then unlocking that location.  It *will* work, but you need to assume
that only it's handle is unlocked, the memory is not longer allowed to
be accessed.  Plus, keep in mind that once you *do* lock the memory
again, it may have moved, so make sure you set current to point to the
return value of the lock statement.

You should be storing Handles in your linked list,  then locking them
to get the next node not pointers.

If this is all too hard for you, just stop using handles altogether. 
Just use MemPtrNew and MemPtrFree.   Newer devices have a fair amount
of memory.

Another suggestion may be to switch to using C++, then you can
abstract away the memory handling (whichever way you chose to do it). 
<- this would be my preference, altough I've never really used linked
lists much.

Alan

On 3/1/06, Thomas L. Christensen <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have written a few Palm OS programs, but I'm no great programmer.
> Now I'm trying to make a simple card game. I want to save all cards in
> a linked list. It is first time ever I use a linked list in a program,
> but it seems like it works. But well, I have a questions:
>
> In the code, I update a value in a structure
>
> current->next = newcard;
>
> _without_ first using MemHandleLock. It works, but is it safe?
>
> Also, if you have any comments to the code, please let me know. It is
> first time I use a linked list, so if I can make things smarter, I
> would like to hear how. Thanks...
>
>
>  code ===
> struct card {
> UInt16 value;
> UInt16 color;
> struct card *next;
> };
> struct card *cards; //head pointer
> struct card *newcard;
> struct card *current;
> MemHandle mh[52]; //I free all the handles on exit
>
> Boolean make_cards()
> {
> mh[0] = MemHandleNew(sizeof(struct card));
> if (!mh[0])
> return 0;
> cards = MemHandleLock(mh[0]);
> cards->next = NULL;
> cards->value = 1;
> cards->color = 0;
> current = cards;
> MemHandleUnlock(mh[0]);
>
> for (UInt8 i=1;i<=3;i++) //make three more cards
> {
> mh[i] = MemHandleNew(sizeof(struct card));
> if (!mh[i])
> return 0;
> newcard = MemHandleLock(mh[i]);
> current->next = newcard;
> /*
> Can I do this? Shouldn't I use MemHandleLock
> before I write data to current->next?
> For some reasons it works. Luck?
> */
> newcard->value = 1;
> newcard->color = i; //new color
> newcard->next = NULL;
> current = current->next;  // or current = newcard;
> MemHandleUnlock(mh[i]);
> }
>
> return 1;
> }
>
> Boolean Test()
> {
> Char tmp[7];
> UInt8 i;
> struct card *temp;
> temp = cards;
>
> for(i=0;i<4;i++)
> {
> StrPrintF(tmp, "%d %d", temp->value,temp->color);
> WinDrawChars(tmp, StrLen(tmp),10 + (i*15), 10);
> temp=temp->next;
> }
> return 0;
> }
>
>
>
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/support/forums/
>

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


Re: Having trouble useing FlpAToF

2006-02-19 Thread Alan Ingleby
// ==
void GetStringFromDouble(Char* str, double dblNum, Int16 numFractDigits) {

 double flpIP, zeros, round;
 Int32 remainder, longNumber;
 Int16 i, strLen;
 Char buffer[16];

 str[0] = 0;

 if (dblNum < 0.0D) {
 dblNum = -dblNum;
 StrCat(str,"-");
 }

 zeros = 1.0D;
 for (i = 0; i < numFractDigits; i++) {
 zeros *= 10.0D;
 }
 round = 0.5D / zeros;

 dblNum += round;
 flpIP = (Int32) dblNum;
 dblNum -= flpIP;

 StrIToA(buffer, (Int32) flpIP);
 StrCat(str, buffer);
 strLen = (Int16)StrLen(str);
 StrCat(str, ".");  // put in the decimal point and terminate the string
 str[numFractDigits + strLen + 1] = '\0';
 longNumber = (Int32) (dblNum * zeros);  // fractional part

 for (i = numFractDigits + strLen; i > strLen; i--) {
 remainder = longNumber % 10;  // convert the integer part
 str[i] = (Char) (remainder + 0x30);
 longNumber /= 10;
 }
}
// ==
double GetDoubleFromString(Char* s) {
#define DOUBLE_STRING_BUFFER_SIZE 12

 Char   leftstr[DOUBLE_STRING_BUFFER_SIZE],
rightstr[DOUBLE_STRING_BUFFER_SIZE];
 double   leftval, rightval, result;
 Int16   j=0, k=0;
 Boolean   isNegative = false;

 if (*s == '-') {
 isNegative = true;
 s++;
 }
 // strip off LHS of number
 for(j = 0; (s[j] != '\0') && (s[j] != '.') && (j <
DOUBLE_STRING_BUFFER_SIZE); j++) {
 leftstr[j] = s[j];
 }

 if (j == DOUBLE_STRING_BUFFER_SIZE) { // ERROR - RETURN ZERO
 result = 0.0D;
 return result;
 }

 leftstr[j] = '\0'; // done, terminate it

 if (leftstr[0] == ' ') {
 leftstr[0] = '0';
 }

 // strip off RHS of number

 if(s[j] == '.') {
 j++;
 }

 while((s[j] != '\0') && (k < DOUBLE_STRING_BUFFER_SIZE)) {
 rightstr[k++] = s[j++]; // get RHS
 }

 if (k == DOUBLE_STRING_BUFFER_SIZE) { // ERROR - RETURN ZERO
 result = 0.0D;
 return result;
 }

 rightstr[k] = '\0'; // done, terminate it

 // convert the two parts to floating point #s

 leftval = (double)StrAToI(leftstr);

 rightval = (double)StrAToI(rightstr);

 // convert RHS to proper fraction
 for(j = 1;j <= StrLen(rightstr); j++) {
 rightval /= 10.0D;
 }

 // combine and return results

 result = leftval + rightval;

 if (isNegative) result *= -1.0D;

 return result;
}

// ==

Alan

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


Re: How can I create a WebBrowser for a Handheld ?

2006-01-24 Thread Alan Ingleby
Hasn't enyone here noticed home much this looks like a homework question???

C'mon... Seriously... Do your own homework!!!

Alan

On 1/23/06, Chinmaya <[EMAIL PROTECTED]> wrote:
> Hi ,
> I want to create a "WebBrowser" just like a Desktop "Internet Explorer" for a 
> Palm Handheld.
> For this "what are the minimum requirements I need?" & "what are the 
> procedures that I have to follow to do it?"
> Please explain in detail and clearly.
> Thanks in advance!.
>
> Regarding
> chinmaya
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/support/forums/
>

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


Re: Numeric fields no longer accept a period (.) on E2 and TX?

2006-01-18 Thread Alan Ingleby
I personally use a non-numeric field, and filter all the key events. 
this allows the control to accept a "-" symbol too :-)..

On 1/18/06, Henk Jonas <[EMAIL PROTECTED]> wrote:
> Luc Le Blanc wrote:
> > My app offers a smart virtual keypad that can navigate between the input 
> > fields of the calling form (see attached image). When I handle a numeric 
> > field, the input field in the keypad is also set as numeric (through field 
> > attributes). When the user taps the decimal button, I enqueue a '.' or ',' 
> > character, depending on system prefs. This works fine on all devices, 
> > except on the Tungsten E2 and TX, where it doesn't do anything. Even using 
> > Graffiti to enter a '.' doesn't work on these devices. Has the meaning of a 
> > numeric field changed over time? Aren't floating-point numbers accepted 
> > anymore?
> >
>
> I've just checked it on my TX, it still works. I have a German
> enviroment and can enter the "," using graffiti. The field is made with
> pilrc and has the numeric flag set (in the rcp file). You can check it:
> it's PalmPDF, when you select a PDF file and then go to PalmDOC in the
> menu you will get a form where you can enter start and end page. Here
> you can enter "," or "." depending on your system settings. Might be,
> the behaviour is different between the numeric is set in the constructor
> or set afterwards in the form handling code. You might check this.
>
> Regards
> Henk
>
> --
> -
>Henk Jonas[EMAIL PROTECTED]
>Palm OS (r) certified developer
>
>Please contact me, if you need an off-site contract worker.
> -
>
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/support/forums/
>

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


Re: Numeric fields no longer accept a period (.) on E2 and TX?

2006-01-17 Thread Alan Ingleby
I didn't think they ever were.

On 1/18/06, Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> Aren't floating-point numbers accepted anymore?

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


Re: cannot reproduce LifeDrive bug

2005-10-19 Thread Alan Ingleby
The obvious conclusion here is that NVFS devices truly suck.  I've had
no end of porblems with subtle stability bugs.

Is there a local Palm rep you can contact to get a loan device?  I
know we've always been able to do that in the past, but I'm in
Australia, and I don't know if things work differently where you are.

Alan

On 10/20/05, Brian <[EMAIL PROTECTED]> wrote:
> It runs fine on the Palm 5.2 and 5.3 Debug and Release Simulators, as well as 
> on my m515.
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/support/forums/
>

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


Re: cannot reproduce LifeDrive bug

2005-10-18 Thread Alan Ingleby
Does it run OK on a Debug OS 4.x Emulator?

Debug simulator?

Alan

On 10/19/05, Brian <[EMAIL PROTECTED]> wrote:
> I do not have an actual LifeDrive, so I have to use the Simulators. I have a 
> user reporting a bug that I cannot reproduce with the Simulators. They've 
> given me pretty precise instructions where it happens, it's just after they 
> click OK on a certain Alert, and I don't do anything unusual there. I've 
> tried both the Debug and Release versions. I'm running CW 8.3.
>
> Any common gotchas or workarounds on this? Is there somehow I'm not running 
> the latest version of things, or is there a way to test that? I've downloaded 
> and installed the various palmOne_SDK_5_0... stuff.
>
> Thanks
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/support/forums/
>

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


Re: problem with memory

2004-10-22 Thread Alan Ingleby
Did you try MemPtrFree?

Alan

On Fri, 22 Oct 2004 10:42:18 -0300, Zechner Christian
<[EMAIL PROTECTED]> wrote:
> Hello!...
> 
> I'm using "MemGluePtrNew" because I need more than 64K.
> 
> How can I free this block of memory?
> 
> I can't find this function.
> 
> --
> 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: Error : Object not in Form

2004-10-04 Thread Alan Ingleby
Remember some API calls expect a ObjectID, others expect ObjectIndex,
these are both Int16, so it's easy to get them mixed up.  This error
could be caused be such a mistake.

.. or some sort of stack corruption..

Alan


On Mon,  4 Oct 2004 05:40:57 -, piyush  jain
<[EMAIL PROTECTED]> wrote:
> Hello all ,
> 
> I recieve the error when call the  using FrmGotoForm (...) ..
> but it is surprising me when i tested it alone and call form my another for ,  its 
> working fine in my application so why it cause a problem when i call it by any 
> particular combination .]
> 
> in my form im am using ListSetChoices and LstDraw funtion and Lstsetheight function 
> , is it possible that they cause The problem ...
> 
> in my debugging i found that there is problem with list structure , but i dosnt 
> caught the exact reason of the error .
> 
> Thank you
> 
> piyush
> 
> --
> 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: How do I take advantage of TRANSPARENCY in bitmaps

2004-10-04 Thread Alan Ingleby
FWIW, here's a sample of how I do it.

BITMAPFAMILYEX ID LockBitmapFamily
BEGIN
BITMAP "Lock1b.bmp" BPP 1 NOCOMPRESS DENSITY 72
BITMAP "Lock8b.bmp" BPP 8 COMPRESS DENSITY 72 TRANSPARENT 255 255 255
BITMAP "Lock8b2d.bmp" BPP 8 COMPRESS DENSITY 144 TRANSPARENT 255 255 255
END 

Alan


On Mon, 04 Oct 2004 01:00:32 -0400, Matt Graham <[EMAIL PROTECTED]> wrote:
> PEC wrote:
> > I have tried defining a transparency color in the bmp files and
> > defining it accordingly in the rcp with TRANSPARENTINDEX, however
> > there is no transparency shown neither for pre-OS5 nor for OS5
> > devices.
> 
> I was having that problem once too.  I think I fixed it by
> removing the COLORTABLE keyword from the bitmap definition.
> 
> /*
>   * matt
>   */
> 
> 
> 
> --
> 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: PODS 1.1

2004-09-29 Thread Alan Ingleby
Firefox has a nice built in Download manager.  You're not still using
IE are you?

Alan


On Wed, 29 Sep 2004 11:31:43 +0200, Ben Combee <[EMAIL PROTECTED]> wrote:
> At 10:35 AM 9/29/2004, you wrote:
> >Hi!
> >
> >I try to download PODS 1.1, but the 265M file is too big for me (my
> >company have a slow inet connection)...
> >
> >Where I found the splitted version?
> >Please,please,please help me:(((
> 
> We are not posting a split version until the final 1.1 release.  You might
> want to look into download managers that can resume DLs effectively.
> 
> 
> -- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
> "Combee on Palm OS" weblog: http://palmos.combee.net/
> Developer Fourm Archives:   http://news.palmos.com/read/all_forums/
> 
> 
> 
> 
> --
> 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: RCP files instead of RSRC files

2004-09-22 Thread Alan Ingleby
You should read Ben Combee's instructions at : 

http://www.palmoswerks.com/stories/storyReader$140

Alan

On Wed, 22 Sep 2004 18:18:08 -0400, Acrocat <[EMAIL PROTECTED]> wrote:
> I have a project I am converting over to CW 9.3.  I am used to using RSRC files for 
> my projects, but this one is using RCP files (which actually looks like it's much 
> easier to make changes, etc.)
> 
> If I covert my projects to RCP files, are there settings that I need to change in 
> the Target properties?  Or is it as simple as deleting the RSRC files from the 
> project and adding the RCP files?
> 
> Do the RCP files support Simplified Chinese and Japanese?
> 
> What format should the RCP file be stored as?  ANSII, UTF-8, etc...
> 
> Edward
> 
> --
> 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: Reading Hotsync Settings

2004-09-12 Thread Alan Ingleby
After further testing, this code works fine on < OS5.  How do I do the same 
thing in >=OS5?

 Char s[256];
 UInt16 i = 256;

 DlkControl(dlkCtlGetPCHostAddr, s, &i);

Alan 



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


Reading Hotsync Settings

2004-09-12 Thread Alan Ingleby
I need to read the Prinary PC setup info from the Hotsync App 
programatically.

I've already tried DlkControl, and getting the sysResIDDlkLocalPCAddr 
preference, with no luck.

And Ideas?

Alan Ingleby 



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


Re: GMail

2004-09-06 Thread Alan Ingleby
All gone now.

"Alan Ingleby" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I just got 6 gmail invites, so I figured the PalmOS dev community is a nice 
>place to dump them.. Let me know if you want one.
>
> Don't post your requests to the forum, email them to 
> [EMAIL PROTECTED]
>
> Alan Ingleby
>
> 



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


Re: heaps

2004-09-06 Thread Alan Ingleby
Large chunks of the heap are taken up by the OS (IP Stack etc).  I think 
there should be about 190 free for your use.

Alan

"Legziel, Daniel" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

Hi
What is the heap on palm 4.0 devices. In myt testing I cant use all of
the 256k advertised. Is there a way to take advanatage of it all? Are
there multiple dynamic heaps?




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


OT: GMail

2004-09-06 Thread Alan Ingleby
I just got 6 gmail invites, so I figured the PalmOS dev community is a nice 
place to dump them.. Let me know if you want one.

Don't post your requests to the forum, email them to [EMAIL PROTECTED]

Alan Ingleby 



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


Re: Limits on Locking and Unlocking a memory chunk?

2004-08-05 Thread Alan Ingleby
"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > sorry i could not understand ur reply.
> > u mean to say that MemHandleLock increases the count and then
> > MemHandleUnlock decreases the same count.
> > and so the net affect on this count remained zero. Is this waht u mean??
>
> if the lock count is greater than 16, it'll barf. end of story.
>
> so, you should lock and unlock evenly. lock = +1, unlock = -1
> if it dies after 16 locks, if means you have not unlocked at all
> = bad.

Check your code paths.  What you're seeing is a definite result of
mismatched locks and unlocks.

You're locking the handle more times than you're unlocking it.

for (int i = 0; i < 1000; i++)
{
MemHandleLock(mh);
MemHandleUnlock(mh);
}
Works fine.  That's 1000 locks.

Check all possible code paths.  You're missing something really obvious.

Alan



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


Re: DMWriteCheckFailed

2004-08-05 Thread Alan Ingleby
"Dave Mottorn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a big application that was getting unwieldy so I divided it into
two
> programs.  I removed unneeded routines and variables from it and
recompiled
> it and that part seems to be running fine.  I set up a new application
using
> the wizard in CodeWarrior and copied the routines and variables I needed
> into it.  When I start the program I get a DmWriteCheck error before it
even
> gets into the Pilot Main routine.  When I try the PDA in debug mode I get
a
> debugger trap with the ErrDisplayFileLineMsg before it gets into any of my
> code.  It will compile, download, and hotsync without error.
>
> Any ideas what to do next?

1) Hard Reset the device, and try again (Why aren't you using an Emulator?).
2) Check for segmentation problems? (Remember which things must be in the
first segment etc.)
3) Possible stack overflow?

That's all I can think of off the top of my head.

Alan



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


IrDA Printing Code

2004-08-04 Thread Alan Ingleby
I have a PalmOS class which uses IrDA to print to Citizen CMP-10, and Canon
i70/i80 series printers, but I'm unable to figure out why I can't also print
to HP series printers.  The class is build using CW9, and works on all
PalmOS 3.x - 5.x devices.

I'm willing to share this class with anyone who can help get it printing to
the HP450 series printer.  (All HP printers are probably the same as far as
IrDA printing goes I think)

Any takers?

Alan



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


Re: Anyone tried this free SQL for Palm ?

2004-08-02 Thread Alan Ingleby
"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 06:28 PM 8/1/2004, you wrote:
> >That's because CW is assuming "unsigned" meant "unsigned int", which is
16
> >bits, therefore :31 is illegal.  Set it up for 32 bit ints.
>
> Or say "unsigned long" in the bitfield declaration.
>
Looking through the codebase, I found that it's not really very portable.
It declares standard types i8, i16, i32 - a common solution to datatype
portability issues - but rarely uses them in code.

Alan



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


Re: Anyone tried this free SQL for Palm ?

2004-08-01 Thread Alan Ingleby
That's because CW is assuming "unsigned" meant "unsigned int", which is 16
bits, therefore :31 is illegal.  Set it up for 32 bit ints.

Alan
"Mike Margerum" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> im getting
> "Illegal bitfield decleration" in Code warrior
> in SqlLiteInt.h
> struct Token {
>   const char *z;  /* Text of the token.  Not NULL-terminated! */
>   unsigned dyn  : 1;  /* True for malloced memory, false for static */
>   unsigned n: 31; /* Number of characters in this token */
> };
>
>



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


Re: How to install new palm OS

2004-07-27 Thread Alan Ingleby
"Simone" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

> sorry if this's not the proper place where to ask my question.

It isn't.

> I have to install a new OS on my handheld. Is it possible?
> I'd like to upgrade from palm os 4.1 to 5.x

PalmOS versions vefore 5.0 run on completely different hardware to PalmOS
versions after 5.0.  Roms are not interchangable between the two.

The last Pre-5.0 rom you can use is (IIRC) v4.1.2.

Alan



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


Re: Reset makes device unresponsive...

2004-06-24 Thread Alan Ingleby
"Samuel Trimble" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This has happened 3 times in the last week, so it would be great if
somebody
> knew why it was happening or how to get around it. Here's the problem:
While
> testing my app on my Tungsten C, the occasional Fatal Alert comes up (as
> happens while testing unfinished applications) so I pull out my trusty
> paperclip and press the reset on the back of the device. At which point
the
> screen slowly fades, as if it is drawing random pixels until the screen
has
> static lines running from top to bottom. Once this happens (and it doesn't
> happen every time) the device becomes unresponsive. I can't reset, can't
> press any buttons, can't do anything to it. The power button doesn't even
> work. I have to wait until the battery totally runs dry, charge it up
again,
> and re-sync everything back to the device (thank god for BackupBuddy).
Which
> as you can imagine, is quite a pain because I can't test on or use my
> personal device again for a long while. This hasn't happened before this
> week, and in this week it's happened 3 times. Any ideas or comments would
be
> greatly appreciated. Thanks.

Did you try holding the UP scroller while resetting to switch of reset
launch codes?

.. or it could be a hardware problem.

Alan



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


Re: Newbie question

2004-06-24 Thread Alan Ingleby
"Thiago Neves Santos" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all I'm new to palm programming and to this list. And I'm having some
problems to make this application handle menu events. It is from the Palm
Programming Bible. It doesn't respond to any menu events. Can someone help
me?

Have you tried debugging your code.. Step through the event handler, and see
what's happening there.

Alan



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


Re: memory-mapping a file on Palm OS 5.0 or later

2004-06-24 Thread Alan Ingleby
"Mohammad M Nur" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I need to store a large data file (about 5MB) as a part of my application
> and need to search and retrieve data very fast. I wonder if I could
> memory-map that big file somehow for faster access. My target Palm OS is
5.x
> or later. Please advice.

Have you considered the File Streaming APIs?

Alan



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


Re: memory leaks - why debug them?

2004-06-10 Thread Alan Ingleby
"Ornstein, Adam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have an odd developer question.  Why should developers care about memory
> leaks in their programs?  The OS cleans up the extra junk anyways.  Is
there
> a real technical reason that we would need to get rid of all memory leaks?

You're kidding, aren't you?..

Sure, the OS will clean up once your app shuts down, but the OS does not
have any garbage collection per se, so if your app is running for a long
period of time, it could eventually chew up all system resources (depending
on the location of the leak, etc.)

If your app has memory leaks, it's a coding error.  Just fix it.  The
emulator logs make this pretty damn easy too.

Alan



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


Re: NetLib on simulator

2004-06-10 Thread Alan Ingleby
I think you'll find that there have been several posts in the past about
similar issues.  I've personally never been able to get NetLibReceive to
work reliably on a Simulator.

As always, I'd be very happy if someone comes up with a solution... But I
doubt it.

Alan

"David R." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> I'm having similar issues with a Treo 600 app I've written that works fine
> on the device but doesn't work on the simulator. Anyone out there with
some
> suggestions?
>
>
> - Original Message - 
> From: "Robert Reimiller" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Thursday, June 10, 2004 5:29 PM
> Subject: Re: NetLib on simulator
>
>
> > On Thu, 10 Jun 2004 16:45:12 -0400, "Philip Wilder"
> > <[EMAIL PROTECTED]> wrote:
> >
> > >Has anybody out there in palm dev world been able to make any NetLib
apps
> > >that run successfully on the Palm OS 5 Simulator? I'm attempting to
> > >connect
> > >to a java socket on the same machine. I've been over the code time and
> > >time
> > >again and it looks good to me it simply doesn't work.
> >
> > I have a program that runs fine on the POSE with 3.5 roms, as well as a
> > Tungsten C which is 5.2. When run on the 5.2 or 5.4 simulators it
returns
> > a NETERRINTERNAL error from the netlibreceive call. The socket is
> > properly bound because I can see the simulator sending the packet on a
> > network analyzer and the response coming back. Unfortunately the
> > simulators don't have a debug log like POSE does (at least I've never
> > found it) so it is not possible to see the actual winsock error code
> > that is getting translated.
> >
> > Bob
> >
> > -- 
> > 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: OS 5+ SDK Bug

2004-04-25 Thread Alan Ingleby
"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 12:05 AM 4/23/2004, you wrote:
> >DlkUserInfoType has a different version, and is incompatible with the SDK
on
> >OS5+ devices.
> >Does anyone at PalmSource know when will this be fixed?  Has anyone come
up
> >with a workaround?
>
> Would you like for PalmSource to provide a "DlkUserInfoType_OS5"
> typedef?  This really has never been documented on the client side, at
> least for OS 5 and earlier, there's no "Dlk Manager" section of the Palm
OS
> SDK.  I'd be glad to publish a KB article with the correct definition and
> talking about the problem if someone wanted to write up a quick problem
> description for me.

The problem lies with the OS5+ implementation of the DlkUserInfoHdrType
struct.  Now I've had time to think about it, and considering Aaron's
comments, I'd say the the problem isn't that the definition of the structure
has changed, but the structure is not an ARM native structure, which cannot
be (easily) used from within 68k code.  This would (probably) explain the
extra 6 bytes in the struct, as will as the version num,ber change from
0x0102 to 0x0201.  (ie: Endian changes.).. What's really needed (for me, at
least) it a way of reading this structure, and parsing it to/from it's OS5
stored (ARKM NAtive?) format, and the format the SDK dictates it should be
in (when read from m68k code).

Alan



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


OS 5+ SDK Bug

2004-04-23 Thread Alan Ingleby
DlkUserInfoType has a different version, and is incompatible with the SDK on
OS5+ devices.

Does anyone at PalmSource know when will this be fixed?  Has anyone come up
with a workaround?

Alan



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


Re: Bug in PalmOS 5.0's DlkUserInfo structure

2004-04-22 Thread Alan Ingleby
I know this is an OLD post I'm replying to, but has this been resolved yet??
I need info out of the  DlkUserInfo struct, but on a Zire71, it's all
screwed up!

Alan

"Jeff Ishaq" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi folks.  I'm toying with the HotSync info on a PalmOS 5 device.  It is
in
> a different format than previous versions of the OS.  See my info from a
> previous post:
>
> http://groups.yahoo.com/group/conduit-dev-forum/message/11050
>
> First of all, the DlkUserInfo structures, as defined in
> Incs\Core\System\DlServer.h, have not been updated in the PalmOS 5.0
> SDK.  The dlkUserInfoPrefVersion is still 0x0102, when in fact PalmOS 5.0
> will report 0x0201.  Also, if you cast a pointer to the
sysResIDDlkUserInfo
> resource to a DlkUserInfoType ptr, the nameAndLog elements appear to be
> invalid.  This furthers my claim.
>
> Is there any information on the new format of the sysResIDDlkUserInfo
> resource used in PalmOS 5.0 (i.e., version 0x0201)?  It seems as if the
use
> of the length fields 'userNameLen' and 'syncLogLen' has been deprecated,
> but I'm curious about any other changes, as well.
>
> Thanks,
> -Jeff Ishaq
>
>
>



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


Re: CW9.3 Browser Coloring a bit sporadic

2004-04-18 Thread Alan Ingleby
Did you select "syntax coloring" from the Document Settings menu?

If it's not this, then you're simple encountering a known bug in the syntax
highlighting code in CW.  This bug is not fixed, and there is no workaround.

Alan

"Randy Pulsifer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

I have a header file with a number of structures, typedef's - the usual sort
of stuff and for the longest time the browser coloring never worked on
anything defined in this particular header file. It worked on other .h files
that I had created but not this ('natch this is my main header file). Then
one day it started working. I could not match this good fortune with any of
my upgrades to the various patches (I am presently up to V9.3 Pro.), and so
shrugged and kept going. Today, I edit said header file and simply add a
fourth element to an existing structure and now when I build, the coloring
has disappeared - as well, of course, as has the dropdown lists of the
elements in the structure.
Anyone with any clues, or workarounds? Do header files have to have an even
number of lines or something? That's not it, I checked - in fact, I went
directly back into the file and deleted the element I added and the file's
coloring remains black. Any other ideas?
Regards,
Randyp




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


Re: Frequency Meter with Palm is it pssoible?

2004-04-14 Thread Alan Ingleby
"Chris Messineo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I would guess the freq range would be in the 200-300 cpm range.  It is a
> graphite shaft with maybe a displacement of  3-5 inches.  Sure I could
> buy a Freq Analyzer for 350 bucks that would do the job, but there is no
> fun in buying one when you can make one with a PDA or a computer.  I was
> able to make one with a computer using  my Wave Studio software that
> came with my  sound card.  I  had to make a sound pick-up with a 2x4 and
> a piece of plastic and recorded the sound with the PC microphone...not
> an exact science but with math I could figure out the cpm.  But I
> thought of a better idea?  Maybe I could use my PDA and use the IR
> sensor?  I will investigate vibration sensors, thanks.

I have a better solution: Stick the Palm in front of the oscillating object,
such that at the peak of displacement, the object touches the Palm screen.
The simple detect the penup/pendown events, and voila!

You may want to use a screen protector :-)

Seriously though, I'm fairly use the IrDA hardware on most devices does not
provide the low level of access you need... Use want to be able to read the
analog resistance across the ir receiver, and map that over time, detecting
peaks and troughs... The hardware is obviously capable of that under the
hood, but that functionality is almost certainly not exposed to the user..

Omniremote had a function which allows recording of the remote signals
generated by regular remote controls... Perhaps that's a place to start
looking..

Alan



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


Re: Problem using StrIToH on Palm Os5.2

2004-04-07 Thread Alan Ingleby
"Ton van Overbeek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> In article <[EMAIL PROTECTED]>, Alexandre Luz Barreto wrote:
> > I have a program that works fine on devices with palmos 4.1 and  early
> > but on OS 5.2 i get a invalid ptr error
> > whats wrong?
> >
> > ULong romVersion;
> > char *PalmOS = NULL;
> >
> > FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);
> > StrIToH(PalmOS,romVersion);
> >
> >
>
> You have to allocate memory for the result string, which you obviously
> do not (char *PalmOS = NULL). StrIToH is now trying to write to address 0
> which is a big NoNo. So invalid ptr is correct. You are overwriting low
> memory on Palmos 4.x devices, which is a *bad* thing.

I'd strongly suggest you run your code on a debug emulator before releasing
it to any more victim^H^H^H^H^H^Husers, or you risk serious issues.

A debug emulator will help you pick up on a lot of programming errors such
as this one, and hopefully result in a much more stable product.

Alan



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


Re: Using zlib without compressing data

2004-03-29 Thread Alan Ingleby
"joe bloggs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does anyone know why this extra data is added to every
> chunk passed to the deflate function?

Probably to tell the decompression engine that the data is not compressed...

Alan



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


Re: zlib compression problems

2004-03-22 Thread Alan Ingleby
"Christian Lindemeier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> During my test I had about 70500 Bytes of data that had to be compressed,
but it can be much more, all of it is text. I think plain text gets the best
results if I'm compressing it.
> My problem with compressing the complete file that I'm getting in the end
of the process is how to get enough buffer to write the compressed data
into.
> I didn't get any changes by compre4ssing the data. I used ethereal to
examine the output that I got and there wasn't any differences between the
normal data and the same data after I tried to compress it.

I initially spend days getting my data compression all sorted.  All I can
suggest is that you go down the same road.  Sorry I don't think I can help,
other than to say that it's obviously not working now, so keep at it, and
good luck.

Alan



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


Re: zlib compression problems

2004-03-21 Thread Alan Ingleby
"Christian Lindemeier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm trying to compress some data I'm fetching from a database on the palm.
> I'm using Palm OS 4.2 and the SysZLib but I'm having some difficulties.
> I'm reading one column at a time and trying to compress it with deflate.
> The data I'm reading is written into a memory heap before it gets
compressed and written into another heap before I write it with
FileWrite(...) into a stream that I'm uploading to the server.
> Everything seems to be working fine, but after the compression nothing
seems to be done, the oputput stays the same, as if I weren't compressing at
all.
> I've read that maybe I should use deflateSetDictionary() but I can't find
were to initialise the dictionary or which one to use.

How long is the string/data you are trying to compress?  (If it's less than
20 bytes, the compression ain't gotta do much.)

The best results are acheived if you stick all your data together, and
compress it as one block.

Alan



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


Re: How do I change the application to customize each button?

2004-03-09 Thread Alan Ingleby
"armada.li" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I use codewarrior9.3.How do I do?
> If you don't know what I mean,please see the attachment.

These are Popup Triggers.  Look it up.  Download sample applications from
Palm.

Alan



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


Re: IR Print

2004-03-02 Thread Alan Ingleby
"Davi Carvalho" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to do a program that prints in an infrared printer. Any of you
> knows a simple program that uses the infrared comunication and so I can
take
> some clues?

If you *must* roll-your-own, look for "ir-ping".  It's a sample app with
full source code, which should get you started.

Alan



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


Re: Developer Suite Now Available

2004-02-26 Thread Alan Ingleby
"Magnus Berg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Alan Ingleby wrote:
> > http://www.palmos.com/dev/dl/dl_tools/dl_pods/
> >
> > The download link seems to be broken right now, but I assume it will be
> > working in the next few hours.
>
> I think the host name "iws-stage.palmsource.com" just hasn't been
> mirrored to the DNSes yet.
>

If that's the case, (which upon further investigation seems likely), does
anyone at PalmSource feel generous enough to tell us the IP address of this
machine?

Alan



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


Developer Suite Now Available

2004-02-26 Thread Alan Ingleby
http://www.palmos.com/dev/dl/dl_tools/dl_pods/

The download link seems to be broken right now, but I assume it will be
working in the next few hours.

Alan Ingleby



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


Re: address book question

2004-02-23 Thread Alan Ingleby
"Ted Pederson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My app needs to have a list of contacts, just like the address book. I
> need to keep track of name, company, and the various phone numbers.
> Instead of keeping this info in my own database, is it possible to link
> up to the build in address book?

It certainly is.  Download the address book source code, and start there.

Alan



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


Re: Converting Palm App to Win CE App

2004-02-23 Thread Alan Ingleby
"Manoel Teixeira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >   0 - we use gcc and evc (Microsoft);
> >   1 - the product will be release for free;
> >   2 - it's part of a bigger project that is a XBase Compiler, that
is
> >  free, too. It's operational now. The documentation is yet in
portuguese,
> >  soon it wiil be in english . the XBase Compiler generates C code to
palm
> > and
> >  PPC;
> >   3 - the API's can be used separately from the XBase compiler, so
you
> >  can write app's in C and use the API's;
> >   4 - now, the interface is generated at run-time. I'm presently
> working
> >  to deploy during this year a GUI generator. Help will be appreciatted;
> >   5- the single item that will not be free, is the sincronizer (it's
> >  optional, you can do your own tools for that), a generic TCP/IP server
> that
> >  can update records at the PDA side and at the server side with a script
> >  language, like this:


I'm VERY interested in getting a sample of this app.  Please get in contact
with me, and I'll be glad to help where I can.

Alan



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


Re: Palm OS Developer Suíte - Now Available ?

2004-02-18 Thread Alan Ingleby
"Keith Rollin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> There are some logistical issues being worked out, related to the
> fact that the download is 250MB, and there are 300,000 developers who
> may want it (not counting Aaron and David).  :-)

Why not post a .torrent link for it?

I'm sure most developers would know about bittorrent by now.

Alan



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


Re: Palm OS Developer Suíte - Now Available?

2004-02-12 Thread Alan Ingleby

"Laurens" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Johnson wrote:
> > From: Alan Ingleby [mailto:[EMAIL PROTECTED]
> >> Palm InfoCenter reports that Palm OS Developer Suite is now
> >> available. I can't find it at the link they say it's at
> >> Is this a mistake, or am I just blind?
> >
> > I'd call it a slight over-promise, but consistent with their history
> > of releasing cool new stuff in person at the conference first.
> > According to
> > http://www.palmos.com/dev/tools/dev_suite.html --
>
> When I first heard the news of this suite I assumed that it would use PRC
> Tools in combination with CDT. However, the above-mentioned press release
> says that "the Palm OS Developer Suite is a new tool chain from
PalmSource,
> Inc." Anyone have more info on this?

I'd say you're first assumption would be right.  It's been done before.
prc-eclipse.

Alan



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


Palm OS Developer Suíte - Now Available?

2004-02-11 Thread Alan Ingleby
Palm InfoCenter reports
(http://www.palminfocenter.com/view_story.asp?ID=6530) that Palm OS
Developer Suite is now available.

I can't find it at the link they say it's at
(http://www.palmsource.com/developers).

Is this a mistake, or am I just blind?

Alan



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


Re: linker error

2004-02-10 Thread Alan Ingleby
I'm sorry, but I get the impression that you're not very familiar with C
programming.  I could be wrong here, so please feel free to correct me.  Get
a good book on C programming fundamentals, and read it.  The problems you
are having don't sound like they're related to PalmOS, or Codewarrior;
they're fundamental C issues.

Alan

"Partha B" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> HI all,
>
> I always had this "Linker Error: func_xxx referenced
> from func_yyy is undefined" in CodeWarrior.
>
> I used to work around this error by including the .c
> file directly where I call the function, instead of
> including the .h file.
>
> Now I am into serious development of huge apps running
> on Palm OS 5.2 using CW 9.0. Can somebody tell this
> ignorant person the "right way" of using multiple
> source files? I've gone through the archives of this
> list, and I somehow dont seem to get a solution to
> this problem (using extern "c" directive etc).
>
> Thanks very much.
> Partha.
> Note: I m writing my apps in C using CW9.0. I tried
> various linkers in the project settings, but didnt help.
>
> __
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
>



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


Re: port to WinCE

2004-02-10 Thread Alan Ingleby
The biggest problem I see is the GUI and Syncronisation components.

Have you made any headway into solving these problems?

Are you currently licensing / sharing your current work on the Memory and
Data Manager APIs? :-)

Alan
"Manoel Teixeira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>   I've done it  (MemoryMgr and DataMgr) and it runs quicker in wince the
in palm/OS.
>   Manoel
>
>
> On Tue, 10 Feb 2004 17:11:48 +0100, "Aaron Ardiri"
<[EMAIL PROTECTED]> escreveu:
>
> > De: "Aaron Ardiri" <[EMAIL PROTECTED]>
> > Data: Tue, 10 Feb 2004 17:11:48 +0100
> > Para: "Palm Developer Forum" <[EMAIL PROTECTED]>
> > Assunto: Re: port to WinCE
> >
> > > > http://www.palmside.com/dal.htm
> > > > http://www.mobilewizardry.com/multi-platform/index.php
> > >
> > > These abstractions are a great idea, but I wonder about to the memory
and
> > > performance overhead they introduce, and whether the effort they save
by
> > > having a single code base is offset by implementation issues.  I'd be
very
> > > interested in hearing from users of either of these systems.
> >
> > we've had absolutely no performance issues - if you are at palmsource,
> > why not chase us down and we can show you demo's of things running that
> > surely should be native (atari 2600 emulator is good example) :P
> >
> > ---
> > Aaron Ardiri
> > PalmOS Certified Developer
> > [EMAIL PROTECTED]
> > http://www.mobilewizardry.com/members/aaron_ardiri.php
> >
> >
> > -- 
> > 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: Porting a large C++ program

2004-02-04 Thread Alan Ingleby
Plus don't forget a shared library has no access to globals, which included
(IFAIK) static member variables of a C++ class.

Alan

<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> > Hi
> >
> > I'm looking into porting a large C++ library to the PalmOS (v3.5 and
> > higher). The library is certain to become bigger than 64K. Exceptions
> and
> > 1) create a GLib shared library.
> >
> > 2) create a mulit-segment application.
> >
> Your app will be multi-segment, but that's not a
> big issue since the compilers doing all the work.
> You've just got to learn a small set of things
> about managing muti-segment sets of source.
>
> As far as the library goes the approach I used was
> to break the library up into logical modules and
> implement each module as a static library.  You
> don't specify whether you need this library to be
> shared or not, but then the same thing is true -
> split it into managable modules.
>
> I understand that there are ways to build multi-
> -segment shared libraries, but I would have
> thought that things like debugging would become
> more difficult.
>
> Chris
> Tutty
>
> 
> This message was sent using InSPire Net Webmail.
> http://www.inspire.net.nz
>
>
>



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


Re: Auto Load my app After a Soft Reset

2004-02-03 Thread Alan Ingleby
Why not listen for the sysAppLaunchCmdSystemReset launch notification, then
enqueue an event to launch your app?

Never tried this myself, but that's the first thing I'd try if I needed to.

Alan

"Régis Daniel de Oliveira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hy all!
>
> Does anybody can explain me how can i load my app after a soft reset?
> I read that i need to use some alarm functions, but i dont know how to
make
> them working.
>
> Any code will be gratefull.
>
> Thanks!!!
>
>
> Régis Daniel de Oliveira
>
>
>



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


Re: .NET Support.

2004-02-03 Thread Alan Ingleby
That's my point; there are already two .NET engines out there, Mono and
DotGNU.

They just need porting to PalmOS.

I'm fairly sure it's going to be nightmarishly difficult to implement, but
much of the work has already been done.

FYI: The DotGNU codebase can already compile on the gcc-m68k toolchain.
It's just the linking stage which barfs due to PalmOS 64K limits.

It's also possible to Compile the codebase using tools.

I'm really not sure how far I'll get with this, as I don't know GCC/Cygwin
etc very well at all, but I'm a reasonable competent PalmOS developer (CW
User normally), so I'm going to give it my best shot.

FWIW, I'm sure the likes of Aaron would get this thing compiling within a
few hours of trying.. So if you're reading this Mr Ardiri... Wanna give it a
shot?? :-)

Alan

"Fruber Malcome" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> There are some ports already - for Unix, porting that should be to
> difficult...?

> "Alan Ingleby" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Anyone know if Palm will be talking about .NET support at the Developer
> > Conference?
> >
> > Assuming Palm are not rushing into .NET support right now, I was
thinking
> it
> > might be a fun project to try porting Mono, or DotGNU to PalmOS... Any
> > takers?



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


Re: llegal use of incomplete struct/union/class 'struct TableType'

2004-02-01 Thread Alan Ingleby
"Edward P. Ross" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You may be better off will a more custom solution yourself (using vectors
or
> maps etc.) - since there's no assurance that the internals will stay the
> same.

There IS an assurance that the internals will stay the same for older OS
versions, so as long as you are testing for the OS version < 3.5 before
deciding which code path to take, it's totally safe.

This is that same thing that the glue libraries do.

Alan



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


.NET Support.

2004-02-01 Thread Alan Ingleby
Anyone know if Palm will be talking about .NET support at the Developer
Conference?

Assuming Palm are not rushing into .NET support right now, I was thinking it
might be a fun project to try porting Mono, or DotGNU to PalmOS... Any
takers?

Alan



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


  1   2   3   4   5   >