"h410g3n presentz - h410G3n's PalmOS Programming Primer." [Contact.nfo] #URL: http://www.h410G3n.com #e-mail: h410G3n@h410G3n.com #IRC: irc.at0mix.net on #HackCanada + irc.2600.net on #2600 #shoutz: Cyb0rg/ASM, theclone, wizbone, wraith, wildman -- Disclaimer: I do not assume ANY fucking responsibility for what you do. For Example: if you just so happen to lean back in your chair after using these techniques, knock your momma's DSS receiver out of your window and land it in a swimming pool full of 'leet wannabe hack0rs killing them and rupturing a fault line, sending half of California into the ocean. IT'S NOT MY FUCKING FAULT! -- Okay peepz. I finally worked up the nerve and cash to go out and pick up a Palm Vx, and I wanted to plunge into developing appz for it in C/C++ under *NIX. I ran into a few complications with this plan. First off all of the sample programs wouldn't compile properly with the sdk from http://www.palm.com. After pissing around with the sdk, I finally got a simple app working. It was way too much fucking work! Some gawd damn rsc file, app, and Makefile. damn! There has got to be an easier way.. finally after pissing around with my new palm for almost two days I found a really good compiler that runs on the Palm itself!! wow. So now I can write code on the road, compile and link all of the shit completely on the Palm computing platform! Nifty. I will now share with you the secrets of building apps with the tools I will provide to you a bit later on in this txt. Simply download the following files and install them onto your Plam III/V: http://www.h410G3n.com/releases/files/palm/OnBoard.zip http://www.h410G3n.com/releases/files/palm/RsrcEdit.zip http://www.h410G3n.com/releases/files/palm/pedit32.zip http://www.h410G3n.com/releases/files/palm/qed.zip (aka OnBoardC... http://www.individeo.net/OnBoardC.html) Notes on the compiler: - It will compile C/C++ and it has a separate assembler/dissembler (damn handy tool for all that shitty crippleware out there) - It can make "Hackmaster Extensions" - It has a full Rsrc editor that can edit every bitmap+piece of asm on the unit (careful, don't corrupt your palm with it) - All of the above files *must* be in the same "category" or you will crash your Palm. I learned this real fast. :D - The pedit is by far the best text editor for PalmOS, and the reg screen is busted?? just enter in any old code and it will register in a snap for you. (Or don't if you like the nag screen). Okay, don't get too crazy at first. Some of the components are really touchy, and if you do something you are not supposed to, you *will* crash the unit. (Hope I didn't scare you) :) Simply run the OnboardC program, select "New project" from the pulldown menu. Check the "generate skeleton" and make a name for your app (no spaces) and select "memo" as your source editor. (DO NOT SELECT pedit32 or it will CRASH the unit). Now you should see your new project. Click the "Build Button" and watch it compile a binary. Neat-o! Exit the program, and run your new app. Nice! It executes. Go back into OnboardC, and select the Rsrc file and click RsrcEdit. This is the GUI editor. You can now customize all the buttons in your program, add pulldown menus, draw in bitmaps -- the works! When you have a nice GUI, simply save it, exit OnboardC and load pedit (If you do not get a list of memos, click the OK button near the bottom), and open your C++ code. Simply edit it, save, and compile a finished app. Have fun! -- h410g3n 2001.02.18