Quantcast
Channel: TamsPalm - the Palm OS / web OS Blog » Sample code
Browsing latest articles
Browse All 10 View Live

C gotchas for free: CERT C Programming Language Secure Coding Standard

While googling for something more-less unrelated, I stumbled upon this link which really is worth its price in gold:...

View Article



Globals in DAs

Everybody who has tried to make DAs (Desk Accessories) knows you can’t use global variables in the code. There are ways to go around that problem, of course, but all I have seen are either slow, like...

View Article

CamLibControl – the call that doesn’t work

Ever since the Palm Treo 600, Palm OS Treos contain integrated CMOS cameras that can produce decent images. Since the Treo 650, these cameras can be controlled via the so-called Camera Manager, an API...

View Article

Sine/Cosine lookup table

After having followed a discussion about charting in the palm-dev-forum, I felt that the following lookup tables could potentially be useful for some of you. I generated them using SmallBASIC and use...

View Article

ZLauncher Plug-In API for OnBoardC

ZLauncher is a very popular launcher replacement for Palm OS handhelds – it can easily be expanded by third party developers using the ZLauncher plug-in API. A sample for the API is contained in the...

View Article


SDL beeing ported to Palm OS

A library called SDL is at the core of many(if not most) OpenSource projects – they use the library’s functions for various tasks like graphics and sound. WikiPedia describes the library as following:...

View Article

Invalid Insertion Point Position via FldSetFocus – what to do

The code below has worked well on all handhelds I ever put my paws on – but failed miserably on the simulator: case frmOpenEvent: createLVL(); FrmDrawForm(pForm); StrCopy(vars.msg1,"Action!!");...

View Article

Data encryption on Palm OS handhelds

In case anyone of you frees like adding encryption to your applications, being a palm-dev-forum subscriber definitely pays out. The folks there currently discuss the various encryption options...

View Article


PODS preprocessor trickery – raise errors from the preprocessor

I am currently hacking around on a new DRM system for my applications which – surprise, surprise – will include OTA wherever its possible (aka at MobiHand’s). As I need to use variable URL’s for each...

View Article


Use C and C++ code together – undefined reference galore

If word on the street is to be believed, C and C++ can coexist peacefully. Just include the C library[...] Related posts:On C style or is code formatting everything? Code Bubbles – cool new IDE concept...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images