Re: Network library source?

2002-01-26 Thread Brian Smith
On Sat, 26 Jan 2002, Steve Mann wrote: > The new O'Reilly book Palm OS Network Programming has examples of > listening sockets. I haven't tried them, but the descriptions sound > reasonable. That's how I got listening sockets in general working, by using that book as a guide (the online version

Re: Network library source?

2002-01-26 Thread Steve Mann
>I've been >trying several different suggestions for listening on a specific port for >TCP/IP connections, and everything I'm trying is failing in one way or >another. The new O'Reilly book Palm OS Network Programming has examples of listening sockets. I haven't tried them, but the descriptions

Re: Freeing Memory - Approach

2002-01-26 Thread Ben Combee
> Personally, I felt that "MemPtrFree" is missing something. Although it did > release the memory back to the OS, but it seems to be still holding some > information of that memory block. You are too paranoid about this. All memory in the dynamic heap is stored as chunks. A chunk has a lock cou

Network library source?

2002-01-26 Thread Brian Smith
Is the source for the network library available anywhere? I've been trying several different suggestions for listening on a specific port for TCP/IP connections, and everything I'm trying is failing in one way or another. It would be helpful to trace through the source as figure out just what th

Re: UnHiLighting a selection

2002-01-26 Thread C Srinivas
The macro "noListSelection" is just that, -1. csrins. __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www

Re: Freeing Memory - Approach

2002-01-26 Thread Andy Yeong
Hi, Personally, I felt that "MemPtrFree" is missing something. Although it did release the memory back to the OS, but it seems to be still holding some information of that memory block. Since there are 2 ways (maybe more) of freeing a memory, there are also 2 ways of creating memory space. We sh

Re: Freeing Memory - Approach

2002-01-26 Thread Joe
--- Andy Yeong wrote: > As a matter for better understanding, I'm wondering is there > any difference between the 2 program. > > char *testPtr; > MemHandle testH; > testH = MemHandleNew(10); // just create a memory of 10 bytes > testPtr = MemHandleLock(testH); > > Program 1's freeing metho

Re: Code Warrior Compiler bug?

2002-01-26 Thread Dave Carrigan
Marco Pantaleoni <[EMAIL PROTECTED]> writes: > Otherwise, as suggested by others, you can resort to #pragma to specify > packed structures, but this is not portable and I'd tend to consider > this one a bad programming practice. I think that it's a horrible programming practice, and should not b

Re: Freeing Memory - Approach

2002-01-26 Thread Keith Rollin
No you don't. Locked chunks can be freed just fine. Even in "Program 1", there's no need to unlock the handle. As for the original question, there's no practical difference between the two approaches. It mostly depends on what kind of reference (pointer or handle) you have handy. Usually,

Re: Freeing Memory - Approach

2002-01-26 Thread John Leung
For you second method, you'll still need to unlock the pointer with MemPtrUnlock(testPtr); On 27 Jan 2002 at 10:21, Andy Yeong wrote: > Hi, > > As a matter for better understanding, I'm wondering is there > any difference between the 2 program. > > char *testPtr; > MemHandle testH; > > test

Freeing Memory - Approach

2002-01-26 Thread Andy Yeong
Hi, As a matter for better understanding, I'm wondering is there any difference between the 2 program. char *testPtr; MemHandle testH; testH = MemHandleNew(10); // just create a memory of 10 bytes testPtr = MemHandleLock(testH); Program 1's freeing method M

RE: UnHiLighting a selection

2002-01-26 Thread Scott Johnson
> LstSetSelection ( list, -1 ); But it's much better programming practice to use the appropriate documented symbolic names for constants: LstSetSelection ( list, noListSelection ); Wait, did I say "documented"? Hmmm, the latest API documentation at... http://www.palmos.com/dev/support

How can an application that currently isn't the active one recieve TCP/IP traffic

2002-01-26 Thread Sverker Abrahamsson
I am quite new to Palm programming so maybe this isn't possible to do at all but I am looking into porting to the Palm platform a messaging service which we currently have developed for PocketPC and Symbian devices. When I read the API specifications and search in this newsgroup it seams that it i

Re: UnHiLighting a selection

2002-01-26 Thread Bob Withers
At 04:39 PM 1/26/2002 -0800, Todd Cary wrote: >If a user makes a selection from List, the item is HiLighted - as >expected. Then, if I delete the item from the list, the HiLight is >moved to another, or if I edit the item, the item stays HiLighted after >the edit. > >I would like to make the user

UnHiLighting a selection

2002-01-26 Thread Todd Cary
If a user makes a selection from List, the item is HiLighted - as expected. Then, if I delete the item from the list, the HiLight is moved to another, or if I edit the item, the item stays HiLighted after the edit. I would like to make the user re-select and item - in other words, after the dele

RE: UI In Non-UI Environment [Q]

2002-01-26 Thread Steve Mann
>Do you know why FrmAlert() would be better than calling >ErrAlertCustom()? Offhand no, because I don't use ErrAlertCustom because it's a System use only function. The reason I suggested FrmAlert with a resource is that it's common to hard-code a string in a call FrmCustomAlert ( AlertName, "

RE: CW7 => CW8 painful project migration

2002-01-26 Thread Scott Johnson
> From: George Aslanis [mailto:[EMAIL PROTECTED]] > "HwrRsc.c Line 77, Resource for app form 3300 not found"' > The form was replaced with a test form with only an OK button. > What resource is it looking for? It can't find your form resource with id 3300. > Why doesn't the message display the

Re: Source code for Address Book

2002-01-26 Thread Joe
--- Blair Kingsland wrote: > Is the source code for the Address Book app available from Palm? > > Postings here say it is available in the PalmOS SDK. But the > source code for the built-in Palm apps is not in the version > of the SDK3.5 that I downloaded from Palm. > > Am I missing something?

Source code for Address Book

2002-01-26 Thread Blair Kingsland
Is the source code for the Address Book app available from Palm? Postings here say it is available in the PalmOS SDK. But the source code for the built-in Palm apps is not in the version of the SDK3.5 that I downloaded from Palm. Am I missing something? Thanks. Blair Kingsland -- For infor

RE: UI In Non-UI Environment [Q]

2002-01-26 Thread Dave Slotter
Hi Steve. As I mentioned in my previous message, I had tried looking at ErrAlertCustom() but found out that it eventually calls FrmCustomAlert(), which isn't all that much different conceptually than FrmAlert(). Do you know why FrmAlert() would be better than calling ErrAlertCustom()? Thanks.

Re: maxDateTemplateLen and DateTemplateToAscii()

2002-01-26 Thread Ken Krugler
>It has been brought to my attention that the Palm OS Reference talks about >maxDateTemplateLen in the description of DateTemplateToAscii(), but >maxDateTemplateLen is never defined in the SDK. > >This seems to be a bug in the includes, which we'll correct in the next big >SDK release. Actually i

Re: Where can I find Sample Source code

2002-01-26 Thread Joe
> --- Joe wrote: > > Also, the SDK contains the source code for most of the > > built in apps (Expense, MemoPad, etc.) > --- Max Bian wrote: > It seems the sources do not include the form resources, > any reason why they are not included? > > Max Where did you get the source code, Max? The s

Re: handled=true for CategorySelect?

2002-01-26 Thread Max Bian
If you have a popup list specifying a list with a popup trigger, you usually don't have the need to handle the ctlselect event for the popup trigger. The system will do it for you and set the lable based on the list selection. Unless you want to set the label different from what you have selected

Re: Where can I find Sample Source code

2002-01-26 Thread Max Bian
--- Joe <[EMAIL PROTECTED]> wrote: > > Also, the SDK contains the source code for most of the built in apps > (Expense, MemoPad, etc.) > It seems the sources do not include the form resources, any reason why they are not included? Max = http://www.weirdwww.com/ _

CW7 => CW8 painful project migration

2002-01-26 Thread George Aslanis
Hello, We are dealing with migrating apps to CW8. The latest problem involve a CW7 multi-segment app generating a runtime error of 'VendrTraxM2(unknown version) called SysFatalAlert with the message "HwrRsc.c Line 77, Resource for app form 3300 not found"' The form was replaced with a test for

Re: Where can I find Sample Source code

2002-01-26 Thread Max Bian
Get a book and read through it in one day helps more. :) One place to find open source Palm app is freshmeat.net. freewarepalm is also a place. If you want more, search google for "palm source code". Max --- "news.palmos.com" <[EMAIL PROTECTED]> wrote: > Where can I find source code of (lot o

Re: Raw Data Date Representation

2002-01-26 Thread Ken Billing
That's it! Thanks, Peter. "Peter Epstein" <[EMAIL PROTECTED]> wrote in message news:74733@palm-dev-forum... > > I assume you've checked and found it > doesn't match our DateType (7 bits for year, 4 for month, and 5 for day > -- For information on using the Palm Developer Forums, or to unsubs

handled=true for CategorySelect?

2002-01-26 Thread Jay Bloodworth
The app I'm working on has the idiomatic popup trigger in the upper right corner of several forms that display lists of records. I handled ctlSelect for the trigger by using CategorySelect and redrawing the list if necessary. Category select runs the popup and the edit categories dialog if neces

Re: Where can I find Sample Source code

2002-01-26 Thread Douglas Olson - Pocket Technologies, Inc.
What development tool are you using? Douglas "news.palmos.com" <[EMAIL PROTECTED]> wrote in message news:74768@palm-dev-forum... > > Where can I find source code of (lot of) sample programs for Palm? > This will help in to jumpstart sw. dev. > > -- haresh > > > > > -- For information on usin

Re: Where can I find Sample Source code

2002-01-26 Thread Joe
--- "news.palmos.com" wrote: > Where can I find source code of (lot of) sample programs for Palm? > This will help in to jumpstart sw. dev. The KB lists a bunch of sample code at http://oasis.palm.com/dev/kb/browse.cfm?type=7 Also, the SDK contains the source code for most of the built in apps (

test

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

Where can I find Sample Source code

2002-01-26 Thread news.palmos.com
Where can I find source code of (lot of) sample programs for Palm? This will help in to jumpstart sw. dev. -- haresh -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: Code Warrior Compiler bug?

2002-01-26 Thread Laurence Mee
OK, most of what I would have said has been said by others - sizeof is implemented correctly in that it includes any padding due to byte alignment. If you have any code that relies on sizeof returning the size of the actual data without padding then that code has been written badly and is certainl

Re: Code Warrior Compiler bug?

2002-01-26 Thread Marco Pantaleoni
On Fri, Jan 25, 2002 at 07:59:18PM -0800, Phong Nguyen wrote: > What I want to do is: > > char buffer[100]; > char* message = buffer; > int index = 0; > buildHeader (&message[index]); > index += sizeof(HeaderType); > assembleData (&message[index]); > index += 10; > buildTrailer (&message[index]);

Re: Code Warrior Compiler bug?

2002-01-26 Thread Ben Combee
"Phong Nguyen" <[EMAIL PROTECTED]> wrote in message news:74740@palm-dev-forum... > > Thanks for the answers so far but if there is no > solution for this issue, it would really be a SERIOUS > problem for me and also for everyone out there when > using the built-in function sizeof(..) !!! What

Re: Plug in Problems

2002-01-26 Thread Ben Combee
> The shared library does sound cleaner. However, the details of function > dispatch arent hidden from the creator in this approach. The assembly in > the Palm sample apps looks a bit hairy, I'm more of an x86 guy myself. Is > that code doing basically the same thing as my structure of function

Re: Demo and Source Code of PackBits Compression Bug - RESOLVED!

2002-01-26 Thread Ben Combee
> Ben: Should CodeWarrior's logic be traversing the plugins\linker folder any > deeper, like it did here when it found the PalmResPostLinker.dll file in the > linker\old folder BEFORE the linker folder? Just thought I'd include you in > the reply list, so that you are aware of what I did with OLD

Re: Code Warrior Compiler bug?

2002-01-26 Thread Atul Shingade
Well, I think Phong, that same problem I have also faced. Well, try this one typedef struct { UInt8Flag1; UInt8Flag2; CharMyNumber[19]; }First; typedef struct { UInt8Flag1; UInt16 MyID; float Qty; Char MyNumber[19]; }Second;