Results 1 to 17 of 17

Thread: Where to start palm programming

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Where to start palm programming

    I would like to get into programming for the palm. Does anyone have any resources for how I'd get started...what compiler is best..etc?

    thanks

  2. #2
    Addicted Member
    Join Date
    Aug 2001
    Location
    I'm mobile
    Posts
    166
    I think that palm.com can answer a lot of your questions. I checked their site a while ago and saw that you could register and get various docs and sdk or something like that.


    Good starting point for you:
    http://www.palmos.com/dev/gettingstarted.html
    [p r a e t o r i a n]

  3. #3
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I've had a look at Palm programming a little just recently. I haven't looked at developing new Palm apps though, I was concentrating on being able to synch data from a desktop data repository with the databases for the standard Palm apps like Todo, DateBook, AddressBook etc.

    The best place to start is to go to www.palm.com and find their development kit. I think you may have to register yourself as Palm developer to get that, but I'm not sure.
    Harry.

    "From one thing, know ten thousand things."

  4. #4
    Zaei
    Guest
    I wish there was a C++ (or even C) compiler for a handheld. Id buy one in a second!

    Z.

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Uh, well if youw ant to write Palm apps (I mean apps that run on Palm OS) in C then... well... you can. That's how they're written. The window management code is a little different and you have to interface with a certain kind of database, but it's basically just C.
    Harry.

    "From one thing, know ten thousand things."

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    typing would be too slow....but my friend got one of the keyboards...very cool

    Thanks guys I'll check into this stuff...tell you all what I find

  7. #7
    I've been using PocketC for a few days and so far it's good. Only problem is that it needs runtimes (not very C-like) and since it's C it's not OO. I tried to do:
    Code:
    class WordLibrary
    {
        public:
            int i;
        private;
            long l;
    };
    And it threw a hissy-fit and wouldn't compile. But it does have stuff like Strings built-in so so far it's good. A 30-day trial.

  8. #8
    Zaei
    Guest
    For OO in C, do something like this:
    Code:
    struct MyFakeClass {
      func* member1;
      func2* member2;
    };
    then assign the correct functions to the correct members with an initialization function (call it new =). Its not true OO (no inheritance), but it works =).

    Z.

  9. #9
    wossname
    Guest
    Ahh, at last a fellow PocketC'er on the forum, Filburt

    PocketC rules once you get used to it. I think it is more suited to coding on the move and testing out of ideas quickly.

    Here is a link to a great forum for PocketC, take a look here

    I like PocketC because its dead easy to use and it's relatively powerful for a pseudo-compiler. When its used in conjunction with QuickBits (which is a fascinating program in its own right, check that out too, it can be found on PalmGear.com), the programs are pretty speedy!

    I've registered my copy and I use it all the time.

    Definitely a good way to get into palm programming, you can even use native libraries like PToolboxLib (nice one Joe).

    Viva la PocketC!

  10. #10
    Fanatic Member
    Join Date
    Sep 2000
    Location
    UK.
    Posts
    728

    info.

    Take a look at Metrowerks Code Warrior for Palm OS: http://www.metrowerks.com/products/palm/
    Digital-X-Treme
    Contact me on MSN Messenger: [email protected]

    [VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
    / (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]

  11. #11
    Zaei
    Guest
    I went to have a little fun with PocketC, and it threw a hissy fit when I tried to create a struct, much less a class. Get OnboardC. It actually compiles to native code, and you can use things like structs, and real pointers. The only porblem is the need to know how to create a Palm Program, with forms and such, from scratch.

    Z.

  12. #12
    wossname
    Guest
    "it threw a hissy fit when I tried to create a struct, much less a class."
    It's not fair to say that since that implies that PocketC doesn't work properly. It works perfectly well, it just doesn't support classes. You can use structures but it has to be done another way. It is easy to create multi-dim arrays in PocketC and each element can be of a different data type. The easiest way to do this is to use the Array() function from PToolboxLib.

    Code:
    #define .WEIGHT [0]
    #define .NAME [1]
    #define .QTY [2]
    
    pointer MyArrayOfStructs;
    ...
    ...
    MyArrayOfStructs=Array("fsi,10,3"); //returns a pointer to 10 instances of a float, a string and an integer (the "ssi" part).  
    
    //MyArrayOfStructs[3].NAME would access the second member of the fourth element, which is a string.
    Forms and such can be created easily using PToolboxLib.

    Plus OnBoardC is a bastard to get it to do anything at all, and the user support is minimal, both quite the reverse of PocketC.

  13. #13
    Zaei
    Guest
    What am I going to do with a language that wont let me create a struct? Pascal lets me do that... And PToolboxLib also throws a hissy fit at me when i do anything. And, of course, I must disagree about the difficulty of getting it to do something... it comes with the option to create a skeleton application for you to build from.

    I just had a hellish experience with something they CALL a programming language... take a look:
    Code:
    ACTIONS
    DISPLAY "Hello"
    FIND x
    DISPLAY "Here are the values:"
    DISPLAY"{x}";
    
    RULE 0
    IF z=hello
    THEN
    x=Arggg;
    RULE 1
    IF z=not_hello
    THEN 
    x=Arg
    x=ARRRRRGGGG;
    
    ASK z:"What Is z?";
    CHOICES z:hello,not_hello;
    
    PLURAL:z;
    The ouput of this monstrosity is:
    Code:
    Hello
    What Is z?
    [hello]     [not_hello]
    Here are the Values:
    Of you select hello:
    Code:
    Arggg
    otherwise:
    Code:
    Arg
    ARRRRRGGGG
    Z.

  14. #14
    wossname
    Guest
    What language is that?!?!?

  15. #15
    Zaei
    Guest
    Some pre-canned POS called VP-Expert. Its for developing expert systems.

    Z.

  16. #16
    wossname
    Guest
    looks a bit gay.

  17. #17
    wossname
    Guest
    Is someone making you use it? I am sure that is not allowed under the Geneva Convention!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width