Re: What am I doing wrong here?

2008-05-29 Thread John Leung
I don't see what's wrong. I only have one question for you. Did you open your database in read-only mode? If you did, you'll get a fatal error when you try to create a new record. On Thu, 12 Oct 2000 22:12:39 -0400, "Sean L. Gilley" <[EMAIL PROTECTED]> wrote: > > >I have a program with the fo

Re: Using MathLib...

2008-05-28 Thread John Leung
You'll also need to add the "PalmCompatibility.h" include in the MathLib.h file. On Tue, 29 Aug 2000 09:05:40 -0300, "Felipe Crochik" <[EMAIL PROTECTED]> wrote: > >Hi, > >If you are using the PalmOS 3.5 SDK you need to edit the mathlib.c includes >section and change the "pilot.h" include to "

Re: Is someone using MathLib inside an C++ project?

2008-05-28 Thread John Leung
I'm writing my program in C++ and uses MathLib. But I don't have any problem with it at all. Are you sure that your problem is in MathLib? When you convert your C project to C++, did you actually create a new C++ project file with the proper library? (That is, in CodeWarrior, you should be using

Re: Recursive FrmReturnToForm : no way?

2008-05-28 Thread John Leung
There's one more thing you may want to consider. FrmReturnToForm will make a frmUpdateEvent only for OS3.5 and greater. For older OS, you won't get a frmUpdateEvent from FrmReturnToForm. So if you're going to use globals and test for it in Form2's frmUpdateEvent, then you'll also need to test wh

Re: Platinum question

2008-05-28 Thread John Leung
On Fri, 22 Sep 2000 19:54:15 -0700, "B. Flaumenhaft" <[EMAIL PROTECTED]> wrote: >Again: C++ isn't properly implemented on the Palm. Hmm. Does it mean that we really shouldn't be using C++ when programming Palm apps? Are there any known potential problems or side effects if you use C++? --

Re: table static text problem

2003-12-17 Thread John Leung
I don't see you inserting anything into any text field. You didn't even get the handle to the field and modify the field. All you were trying to do is to draw something on screen. And what is the purpose of calling TblGetSelection in your code? You didn't even attempt to retrieve anything!

Question with CW9.2's project dependency setup

2003-12-13 Thread John Leung
Hi, I have a project A with "Debug" and "Release" targets and a project B also with "Debug" and "Release" targets. Can anyone tell me how to put project B into both project A's "Debug" and "Release" targets' dependency list? What I want is to compile project A's "Debug" and at the same time a

Re: nilEvent

2003-12-09 Thread John Leung
Have you tried using FrmSetFocus to initialize "the cursor" to one of the fields? On 9 Dec 2003 at 20:10, Vu Pham wrote: > Hi all, > > I work on a form that waits for user input two data fields. If the user does not > input after a given interval, this form will close by itself and user defaut

Is there a T3 simulator?

2003-12-09 Thread John Leung
Is there a simulator for T3? PalmSource's web site provided a Palm OS 5.3 simulator, but it wasn't a simulator for T3. Also, can anyone tell me which device/OS uses double density? I like to find a right combo to test how my app will look on a double density device. John -- For information

Re: Question making graphical push button with PilRC

2003-12-08 Thread John Leung
Thanks for the info. I guess for now, I'll just have to deal with the warning messages. John On 8 Dec 2003 at 16:52, Ben Combee wrote: > At 04:31 PM 12/8/2003, John Leung wrote: > >I've just tried updating to PilRC 3.0 beta 4. Replaced the PilRC directory > >under

Re: Question making graphical push button with PilRC

2003-12-08 Thread John Leung
! Any ideas? John On 8 Dec 2003 at 16:01, Ben Combee wrote: > At 03:56 PM 12/8/2003, John Leung wrote: > >I'm trying to create a graphical push button in a form using the following: > > > >PUSHBUTTON "" ID TestPushButton AT (1 100 12 12) GRAPHICAL B

Question making graphical push button with PilRC

2003-12-08 Thread John Leung
I'm trying to create a graphical push button in a form using the following: PUSHBUTTON "" ID TestPushButton AT (1 100 12 12) GRAPHICAL BITMAPID ImageBmp SELECTEDBITMAPID SelImageBmp GROUP 1 But everytime I compile the file under CW 9.2, I keep getting the following warning message: "graphic

Re: Allocating memory for C++ objects

2003-11-25 Thread John Leung
Mmm, I didn't know that the standard operator new uses global variables. Is it the exception handling in the standard new that uses global? On 25 Nov 2003 at 08:45, Riccardo Cohen wrote: > PS:standard new does not work if your app is launched without > sysAppLaunchFlagNewGlobals because it u

PilRC Designer question

2003-11-17 Thread John Leung
I've a question about the PilRC Designer that comes with CW9. When you create a form (or a bitmap) in the Designer, is it possible to manually assign both the ID name and the actual ID integer itself? John -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Creating C++ Code Resource project under CW9.2 ?

2003-10-25 Thread John Leung
C++ function as __Startup__, the name is mangled to include type > information. Saying > > extern "C" void __Startup__(); > > for the declaration tells the compiler that it shouldn't encode that info > into the linkname, and you'll be able to li

Creating C++ Code Resource project under CW9.2 ?

2003-10-24 Thread John Leung
Hi, I'm still having problem trying to create a C++ Code Resource project from scratch using CW 9.2. I've done a few experiments and the only why I found out how to create a Code Resource project is by using "Palm OS Application Stationery" with "Palm OS C App" selection. If I started using "

Re: PlugIn questions using CW 9.2

2003-10-23 Thread John Leung
Palm OS Runtime.mcp PalmOSRuntime_2i_A5.lib MSL_C++_PalmOS_2i_Dbg.lib PlugIn.h PlugIn.cpp The content of PlugIn.h and PlugIn.cpp are basically the same as the source from "PlugIn - 1" example from Knowledge Base except that I've updated it with #include instead of #include John Leung [EMAIL

PlugIn questions using CW 9.2

2003-10-23 Thread John Leung
Hi, I was trying to re-create the "Plugin - 1" example from PalmSource's Developer Knowledge Base using the new CW 9.2. But I ran into some problem an I hope someone can help. In CW, I started off with creating a "New" project using the "Palm OS C++ Application Wizard". I used all the defaul

Re: virtual destructor

2003-10-22 Thread John Leung
will be skipped:\n" << flush; A *b1 = new B; delete b1; cout << "Test 2: Everything is OK:\n" << flush; B *b2 = new B;// Note that we have B* instead of A* delete b2; cout << "Test 3: Everything is OK as we

Re: virtual destructor

2003-10-22 Thread John Leung
Oops, there're a few syntax error. But you get the idea. On 22 Oct 2003 at 16:34, John Leung wrote: > It is a "good" practice for base class' destructor to be virtual. However, it > is not absolutely necessary and it won't always cause problem if you avoid the

Re: virtual destructor

2003-10-22 Thread John Leung
lete (see > > palmoswerks.com) to avoid this issue. > > > >> HOW CAN YOU PROGRAM IN C++ IN THOSE CONDITIONS ??? > > > > > > Very well. Just avoid the trouble spots, and use a mixture of OOP and > > procedural programming to handle launches whe

Re: CodeWarrior for Palm OS 9.2 update NOW AVAILABLE!

2003-10-01 Thread John Leung
> > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > see http://www.palmos.com/dev/support/forums/ > > John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

How do you localize your app?

2003-09-26 Thread John Leung
suggestions? John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: non-editable text in a table

2003-04-03 Thread John Leung
ad-function. > > > > > > - Veronica > > > > > > Michel.P wrote: > > > > The problem with using a label in tables is that it > > > > will always add a colon ':' to the text, so the second > > > > option might be only solution

Re: Error ID Record

2003-01-15 Thread John Leung
. When I use the API "SyncWriteRec" to insert the record I get the error message: "DataMgr.c, Line 6317 Invalid uniqueID passed" What's wrong ? Gianni -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/for

Re: Question with PilRC Designer in CodeWarrior v9

2002-12-29 Thread John Leung
_ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > see http://www.palmos.com/dev/support/f

Question with PilRC Designer in CodeWarrior v9

2002-12-29 Thread John Leung
I just started playing with the PilRC Designer that came with CodeWarrior v9 today and there is something I don't quite understand. Whenever I open the rcp file (created by one of the project wizards in CodeWarrior), I keep getting the "dana Alpha Smart" image instead of the usual Palm Device image

Re: Codewarrior for PalmOS v9

2002-12-27 Thread John Leung
I've finally get around to testing v9 today and I was testing out one of those default project wizard. More specifically: Palm OS Share Library Wizard. During the last step of the wizard, I was given the choice of including MathLib into the project, and so I did. When I looked at the resulting s

Re: Operator overload compiler problem

2002-11-24 Thread John Leung
what I'm doing wrong? > > Also what include file do I need for the C function double floor( > double x ); ? > > Roger > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/

Re: Endian math?

2002-11-23 Thread John Leung
m Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Waht's in New CW9?

2002-11-23 Thread John Leung
> Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ >

Re: menu help!

2002-10-23 Thread John Leung
gt; > > > > > > > > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Drawing program...how do I remove the first pen up event?

2002-10-23 Thread John Leung
case penUpEvent: > >case penMoveEvent: > >if(eventP->screenY <148) > > { > > setdot(eventP->screenX, eventP->screenY); //calls > > WinPaintLine > and > > changes the "old" values > > handled = true; > >} > > break; > > > > > > > > > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: LstGetSelection?? why is it alway 0?

2002-10-16 Thread John Leung
lstWireTypePtr); > >Char * lstWireTypeText = LstGetSelectionText(lstWireTypePtr >,lstWireTypeSelection); > >if(lstWireTypeSelection != noListSelection){ > >//Rest Of Function > >} > > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please

Re: Why LstGetSelection() doesn't return noListSelection? Please help

2002-06-04 Thread John Leung
st is no selected??? > > Thanks a lot for any help. > > tnn > > __ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- > For information on using the Palm Develop

RE: Chunk overlocked.. any help ? (not that easy :-)

2002-04-16 Thread John Leung
e future.. > >// do some stuff with this record >MemHandleUnlock(recordH); > } > } > } >} // next in loop > >//If you don't need to sort other field of the records, >//you can sort by date, then you don'

Re: FrmHideObject

2002-04-08 Thread John Leung
his mainly because very few people cares about the old OS. I'm sorry if I struck a nerve on anyone. John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: FrmHideObject

2002-04-08 Thread John Leung
ator update that will let you > set the HotSync Name like the Emulator does? > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Can we request glue functions?

2002-04-05 Thread John Leung
Hi, I just had a quick look at the OS5 SDK and it seems like there is still no glue library functions for FrmShowObject and FrmHideObject. Especially now that we can't even compile if we try to access internal data structures of the form objects. (Yes! I do know about the define statement, but

Re: Basic "C" question

2002-04-02 Thread John Leung
tack is the area of RAM >used to contain function parameters and local variables. Applications may >access the area of the stack above the stack pointer, >but not below it." > >All I want to to is get the value of encDate into record.Date. I cant see >why this is failing u

Re: Basic "C" question

2002-04-02 Thread John Leung
ot byte!) > > error = AddToDateDatabase(&record); > > > > } > > > > And this seems to be fine. > > > > - bobby > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, > > please see http://www.palmos.com/d

Re: Basic "C" question

2002-04-01 Thread John Leung
Try replace the following line Char *encDate = "34857384573498573498"; with Char encDate[] = "34857384573498573498"; Also, have you ever tried the following before? StrCopy(record.Date, "34857384573498573498"); On Mon, 01 Apr 2002 19:02:31 -0800, Ed <[EMAIL PROTECTED]> wrote: > >With the

Re: Problem - SelectDay()

2002-03-11 Thread John Leung
(selectDayByDay, &thisDay.month, &thisDay.day, >&thisDay.year,"Date")) { > ... > ... > ... >} > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/

Re: FrmPopupForm problem

2002-03-05 Thread John Leung
OM. One more thing that I'm not sure if you're aware of. For a from created by a FrmPopupForm, you won't get a frmCloseEvent when you close your popup form. John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums,

Re: Hiding and Showing List Objects in OS v3.0

2002-02-21 Thread John Leung
I think it really sucks that the SDK 4.0 upd 1 didn't have glue functions for FrmHideObject and FrmShowObject. Since these 2 know problems has been around for so long and the only way to fix it is to access the internal record structure. On 21 Feb 2002 at 20:11, Terry Dennis wrote: > John:

Re: Help! Backup changes UniqueIDs in database??

2002-02-09 Thread John Leung
On Fri, 8 Feb 2002 16:26:52 -0800 (PST), Joe <[EMAIL PROTECTED]> wrote: > >You really should not count on the uniqueID being unchanging, and you >should also not count on it being truly unique. It isn't. For one >thing, "old versions" of the Mac Palm desktop sw did not properly >handle the uniqu

Re: Need help examining some UI's attribute without accessing their data structure

2002-02-07 Thread John Leung
On Thu, 7 Feb 2002 07:14:04 -0800 (PST), Joe <[EMAIL PROTECTED]> wrote: > >--- John Leung wrote: >> >> 1. Checking if a menu (or a command bar) is visible. >> ... >> > >Perhaps this thread will help you: >http://www.escribe.com/computing/pcpqa/m51

Need help examining some UI's attribute without accessing their data structure

2002-02-06 Thread John Leung
Well, by now we all know that we really shouldn't directly access a UI's data structure, but for the following few cases I don't really know how I should go about checking some UI's status without looking into the data structure. Any help is appreciated. 1. Checking if a menu (or a command bar)

Re: letter/grafitti recognition in dropdown menus

2002-01-28 Thread John Leung
Well, I looked up the documentation. The list attribute to set is "search". However, there is one thing I found very interesting though. A list's attribute data is stored in a ListType structure and from the doc, there is a big warning saying never access structure elements directly because it

Re: Freeing Memory - Approach

2002-01-28 Thread John Leung
will be moved if > MemPtrFree() immediately follows MemPtrUnlock, but it's still possible. > > Bob Whiteman > Senior Software Engineer > Pico Communications > > "John Leung" <[EMAIL PROTECTED]> wrote in message > news:74794@palm-dev-forum... > > >

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

Re: Can we remove a menu from a form?

2002-01-13 Thread John Leung
I guess it is a Palm OS bug then because I tried using resource ID=0 and I stepped through the debugger and saw it got executed. But when I tap on the menu, the menu bar still get popup up. On Mon, 14 Jan 2002 10:43:57 +1100, Michael Glickman <[EMAIL PROTECTED]> wrote: > >That's true. >You ca

Re: Can we remove a menu from a form?

2002-01-13 Thread John Leung
nu will be displayed, although the resources are still > > there. > > > > There could be better ways to do the same. > > > > Max > > --- John Leung <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > During the runtime of a progr

Can we remove a menu from a form?

2002-01-13 Thread John Leung
Hi all, During the runtime of a program, we can dynamically assign a menu to a form by using FrmSetMenu. But what if later on, we wish to remove that menu from the form. Is there any way we can do that? I tried giving FrmSetMenu a zero menu resource ID, but it doesn't work. Anyone have any ide

Re: How to remove a listbox ?

2002-01-06 Thread John Leung
ons of the OS. > >#define DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS is your friend! :-) > >Yes, we're prolly starting to sound like a stuck record in this respect... >but it's in your interest. :-) > > >Gavin. > >-Original Message- >From: John Leung [mailt

Re: How to remove a listbox ?

2002-01-06 Thread John Leung
urns, which >indicates which (or none) item has been selected. > >Max >--- John Leung <[EMAIL PROTECTED]> wrote: >> To clear up the list box, try this: >> >> list = GetObjectPtr(ListResourceIndex); >> list->attr.usable = 0; >> LstEraseList(list);

Re: How to remove a listbox ?

2002-01-06 Thread John Leung
I believe FrmShowObject and FrmHideObject won't work on a ListType object under OS 3.3 and lower devices. You can give it a try on the emulator. On Sun, 6 Jan 2002 19:29:53 -, "Laurence Mee" <[EMAIL PROTECTED]> wrote: > >I would not necessarily advise using the member variables of the List

Re: How to remove a listbox ?

2002-01-06 Thread John Leung
; list->attr.usable = 0; > LstDrawList(list) > > I even try using FrmDrawForm(FrmGetActiveForm()) > but it still left a part of the listbox behind. > > Thanks ! > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > s

Re: Visor ROMs

2001-12-17 Thread John Leung
ireless Business Engine(tm) > > Evan Wise > Sprite Herder > infowave > E: [EMAIL PROTECTED] > T: 604 473 3779 > F: 604 473 3633 > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see >http://www.palmos.com/dev/t

Re: Visor ROMs

2001-12-17 Thread John Leung
On 17 Dec 2001 at 14:27, Dave Lippincott wrote: > guess you didn't look too hard... > http://www.handspring.com/developers/tech_pose.jhtml > Thanks. Don't know how I missed that. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev

Visor ROMs

2001-12-17 Thread John Leung
Does anyone knows where do we get Visor ROMs? I went to Handspring's web site but I couldn't find any info where we can get them. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Basic C/C++ Question

2001-12-07 Thread John Leung
online! > http://greetings.yahoo.com > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > see http://www.palmos.com/dev/tech/support/forums/ > > John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the P

Re: Creator code

2001-10-29 Thread John Leung
rums, or to unsubscribe, please see >http://www.palmos.com/dev/tech/support/forums/ > > John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: Any problem using DmDeleteRecord but not provide a conduit?

2001-09-26 Thread John Leung
nks for the insight. So what methods can we use to detect if we're running without a conduit? I suppose we can still use DmRemoveRecord to permanently delete a "deleted" record (given a correct record index). John Leung EMail: [EMAIL PROTECTED] Web: http://persweb.direct.ca/jleung/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Any problem using DmDeleteRecord but not provide a conduit?

2001-09-26 Thread John Leung
At 10:23 AM 26/09/2001 +0100, Philip Sheard wrote: > > I understand that the purpose of DmDeleteRecord (and DmArchiveRecord) > > is to allow a desktop conduit to propagate the changes to desktop > > applications. But what if I wrote a conduit for PC only but not for a > > Mac (or users just doesn

Any problem using DmDeleteRecord but not provide a conduit?

2001-09-25 Thread John Leung
I understand that the purpose of DmDeleteRecord (and DmArchiveRecord) is to allow a desktop conduit to propagate the changes to desktop applications. But what if I wrote a conduit for PC only but not for a Mac (or users just doesn't want to install the conduit). So, would there be any problem if

Re: problem reading integers

2001-09-04 Thread John Leung
Ah, you're right! Stupid me. It clearly stated in the error message and I missed it. At 02:00 PM 04/09/2001 -0700, Marshall Clow wrote: > >What you suggested makes a lot of sense and I think it should work. It > still doesn't work for me though, am I doing something else wrong as > well? No

Re: problem reading integers

2001-09-04 Thread John Leung
PackedRange *packedRange) >{ > const char *s = packedRange->name; > > range->name = s; > s += StrLen(s) + 1; > range->startRange = *((Int32*)s); > s = s + 4; > range->endRange = *((Int32*)s); >} > >Thank you, I r

Re: problem reading integers

2001-09-04 Thread John Leung
the pointer type itself: packedRange->startRange = *((Int32*) s); Give this a try and see if it works for you. John Leung EMail: [EMAIL PROTECTED] Web: http://persweb.direct.ca/jleung/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.c

RE: Saving LocalID of storage chunk in database field

2001-08-30 Thread John Leung
self, I do have a solution for my problem, namely use my own ID (as you and many other people suggested before). John Leung EMail: [EMAIL PROTECTED] Web: http://persweb.direct.ca/jleung/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Resize Form

2001-08-29 Thread John Leung
Have you tried WinSetWindowBounds? On 29 Aug 2001, at 18:09, Ji Lee wrote: > Hi, > > Is there a way to resize a form without accessing form internal > structure or using FrmNewForm() ? I can call FrmGetFormBounds to get > current bound of the form. However, I can't find a function that > allows

Re: Visor ROM image

2001-08-28 Thread John Leung
dy paperwork again, and i >really don't have the two weeks to wait >for the legal docs, etc. > >Thanks to anyone who can help. > >Cheers, > >ray > >ps my direct email: [EMAIL PROTECTED] > >-- >For information on using the Palm Developer Forums, or t

RE: Saving LocalID of storage chunk in database field

2001-08-27 Thread John Leung
On 27 Aug 2001, at 13:37, Peter Epstein wrote: > ... > > You might not want to do this if you have multiple references to the > same string. In that case, I recommend creating references to database > records based on the unique ID of the record. At one time, unique IDs > weren't preserved after

Re: DB record numbers and DB uniqueIDs

2001-06-27 Thread John Leung
On Wed, 27 Jun 2001 15:25:29 -0700, "Seeley, Steve E" <[EMAIL PROTECTED]> wrote: > >Hi all, > > I'm hoping someone can help me understand record numbers and >uniqueIDs. > >The uniqueID for a DB record is generated at creation time of the record. >And remains the same for the life time of tha

RE: C++ virtual functions are global with Code Warrior

2001-06-26 Thread John Leung
I never used the GNU stuff before, can someone tell me is this problem strictly a Code Warrior problem or does the GNU compiler suffer the same problem as well? If the GNU compiler works, maybe one of your alternative is to change compiler. >-Original Message- >From: [EMAIL PROTECTE

Form Bitmap Resource and Bitmap Resource Question

2001-06-11 Thread John Leung
Can anyone tell me if it is possible to load a bitmap resource from a database and then assign it to a form bitmap resource object? I've browsed through the APIs but couldn't quite figure out how to do this. John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For info

Re: frmreturntoform problem.

2001-06-11 Thread John Leung
03:00 PM 11/06/2001 +0800, you wrote: >hi john, > >i did call FrmUpdateForm, but it still does not work. There is no effect >after i added in frmupdateform command . > > >rgds, >ailee > > >>From: John Leung <[EMAIL PROTECTED]> >>Reply-To: "Palm

Re: frmreturntoform problem.

2001-06-10 Thread John Leung
rm(formA). > >What should i do for this case? > > >rgds, >ailee >_ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.c

Re: convert palmOS 3.0 to 3.5 apps

2001-06-01 Thread John Leung
. >S Santoso > > > > > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/tech/support/forums/ John Leung [EMAIL PROTECTED] http://persweb.direct.ca/jleung -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: short * to an unsigned short * , error, help, please?

2001-05-29 Thread John Leung
eInfoType RestoreInfo; > >static Int OpenDatabase(void); // <--errors out here > >what am I doing wrong? > > >-Paul > > > > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/tech/support/forums/ John Leung EMail: [EMAIL PROTECTED] Web: http://persweb.direct.ca/jleung/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: variables overwriting each other.

2001-05-16 Thread John Leung
At 10:21 AM 16/05/2001 -0700, Jaydee wrote: >I'm having some really weird stuff going on with >character pointers and UInt arrays: > > Char * working; > UInt16 done2[25]; >//snip > StrToLower(working,word); > len = StrLen(working); > for (i=0;i<25;i++) done2[i]=0; "working" is just a po

Any top issues migrating to OS4.0?

2001-04-23 Thread John Leung
Way back when OS3.5 is first introduced, there is a web page "Palm OS Software 3.5 Top Issues" (http://www.palmos.com/dev/tech/docs/palmos35/topissues.html) documenting all the commonly encountered problems when migrating to OS3.5. I found that very helpful. Will there be any similar top issues

Re: Save behind flag

2001-04-14 Thread John Leung
On Fri, 13 Apr 2001 10:52:53 -0700, "Ray Marshall" <[EMAIL PROTECTED]> wrote: . > >void FrmDrawFormEx( FormPtr formP ) >{ > if ( IsAtLeastOS35() == false ) > { > // pre 3.5 OS doesn't erase the background if "Save Behind" isn't set. > WinEraseWindow();

Re: GCC Compiler Bug? (Or am I just losing my mind?)

2001-01-30 Thread John Leung
and side. That is: unsigned int result; result = (unsigned int) (s[0] - '0'); Remember, char type is nothing more than just a 1 byte integer. John Leung. jleung at direct dot ca -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: need a help with date...

2000-12-24 Thread John Leung
What you have is a C programming error. Your variable "theConvertDate" exists only inside your function. When you exit the function, this variable is destroyed. On Sun, 24 Dec 2000 10:26:26 +0200, "Eliah NInyo" <[EMAIL PROTECTED]> wrote: > >hello, > >i have a function that should return the

Re: Detecting if Hot-sync is running on desktop

2000-12-18 Thread John Leung
ore performing the actual >Hotsync. The intention being that desktop applications shouldn't try to >access/update Palm databases on the PC while Hotsync in running (as it may >be working with those database files). > >Hope that helps, > >Stuart Nicholson >Programmer >F

Detecting if Hot-sync is running on desktop

2000-12-18 Thread John Leung
I notice that when hot-sync is running, if I then try to run the "Palm Desktop" program, I'll get an error message saying hot sync is running. I think this is a very nice feature and I'm just wondering how do desktop applications detect if hot-sync is currently running. Does anyone know? -- F

Re: What am I doing wrong here?

2000-10-13 Thread John Leung
I don't see what's wrong. I only have one question for you. Did you open your database in read-only mode? If you did, you'll get a fatal error when you try to create a new record. On Thu, 12 Oct 2000 22:12:39 -0400, "Sean L. Gilley" <[EMAIL PROTECTED]> wrote: > > >I have a program with the f

Re: Platinum question

2000-09-23 Thread John Leung
On Fri, 22 Sep 2000 19:54:15 -0700, "B. Flaumenhaft" <[EMAIL PROTECTED]> wrote: >Again: C++ isn't properly implemented on the Palm. Hmm. Does it mean that we really shouldn't be using C++ when programming Palm apps? Are there any known potential problems or side effects if you use C++? --

Re: Recursive FrmReturnToForm : no way?

2000-09-11 Thread John Leung
There's one more thing you may want to consider. FrmReturnToForm will make a frmUpdateEvent only for OS3.5 and greater. For older OS, you won't get a frmUpdateEvent from FrmReturnToForm. So if you're going to use globals and test for it in Form2's frmUpdateEvent, then you'll also need to test w

Re: Is someone using MathLib inside an C++ project?

2000-08-29 Thread John Leung
I'm writing my program in C++ and uses MathLib. But I don't have any problem with it at all. Are you sure that your problem is in MathLib? When you convert your C project to C++, did you actually create a new C++ project file with the proper library? (That is, in CodeWarrior, you should be usin

Re: Using MathLib...

2000-08-29 Thread John Leung
You'll also need to add the "PalmCompatibility.h" include in the MathLib.h file. On Tue, 29 Aug 2000 09:05:40 -0300, "Felipe Crochik" <[EMAIL PROTECTED]> wrote: > >Hi, > >If you are using the PalmOS 3.5 SDK you need to edit the mathlib.c includes section >and change the "pilot.h" include to

Re: FW: Using Unique IDs as a reference

2000-04-14 Thread John Leung
One more thing you may want to know. Recently I had a Visor user (OK, it is not Palm but it's close enough) trying to re-instal some PDB files back into his Visor, but after re-installing the files, the unique IDs have changed. However, the same PDB files work fine on the Emulator. After a whil

Re: Memory leak detection in OS 3.5 debug rom

2000-04-13 Thread John Leung
Thanks. The Starter App is missing a FrmCloseAllForms() call in their AppStop event. Once it is added the problem disappear. On Thu, 13 Apr 2000 18:27:18 -0700, David Fedor <[EMAIL PROTECTED]> wrote: > >>it and then tap on the App "button" to get back to the icon, and I get >>SystemMgr.c Lin

Memory leak detection in OS 3.5 debug rom

2000-04-13 Thread John Leung
I've seen some discussion about OS 3.5 debug rom will do memory leak detection, so I did the following test: I'm using CodeWarrior 5 (with update patch #2). I let CodeWarrior built a default C++ Starter app, compile it and loaded it into POSE 3.05a with the dr4 OS 3.5 EZ debug rom and Palm VII E