Solved

Source code of examples for Palm OS

Posted on 2001-06-26
9
354 Views
Last Modified: 2013-12-27
 Hi Expert!

  Where can I find sourse codes of samples in C for Palm OS?

  Thanks.

0
Comment
Question by:vadimv
  • 2
  • 2
  • 2
9 Comments
 
LVL 4

Expert Comment

by:offir_a
ID: 6230540
Hi,
That's quite a big question - which subject? what purpose?
Well, the best spot I can think of, to get a good code example, on many fields is Palm's site itself:

goto: http://oasis.palm.com/dev/kb/
then select "Sample Code" from the "1: I want to search articles of type:" option.

This will give you code in lots of fields, from Internet connection to Bitmap manipulation...

If you need code on a more specific field, just ask it, and maybe I'll think of some other source-code site...

Hope this will help,
Offir.
www.MobiMate.com
0
 
LVL 4

Expert Comment

by:e7ta
ID: 6230606
There are some good examples in the SDK also.
0
 

Author Comment

by:vadimv
ID: 6230678


  I had download CodeWarrior for Palm Demo and I downloaded
  sdk40 examples from www.palm.com.
  I try to compail examples in CodeWarrior , but receive
  following errors:

Could not find or load the file "StartupCode.lib" for target "SampleCalc" for project "SampleCalc.mcp".

Error   : the file 'PalmOS.h' cannot be opened
SampleCalc.c line 25   #include <PalmOS.h>   // Includes all Palm headers

Error   : the file 'StringMgr.h' cannot be opened
SampleCalc.c line 27   #include <StringMgr.h>  // Includes all Palm headers

Error   : the file 'FloatMgr.h' cannot be opened
SampleCalc.c line 28   #include <FloatMgr.h> // Include Floating Point headers

  How can I compile this examples?
  May be in CodeWarrior I must define relevant folders?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:vadimv
ID: 6230687
 Hi Expert!

  I had downloaded CodeWarrior for Palm Demo and I downloaded
  sdk40 examples from www.palm.com.

  I try to compile examples in CodeWarrior , but receive
  following errors:

Could not find or load the file "StartupCode.lib" for target "SampleCalc" for project "SampleCalc.mcp".

Error   : the file 'PalmOS.h' cannot be opened
SampleCalc.c line 25   #include <PalmOS.h>   // Includes all Palm headers

Error   : the file 'StringMgr.h' cannot be opened
SampleCalc.c line 27   #include <StringMgr.h>  // Includes all Palm headers

Error   : the file 'FloatMgr.h' cannot be opened
SampleCalc.c line 28   #include <FloatMgr.h> // Include Floating Point headers

  How can I compile this examples?
  May be in CodeWarrior I must define relevant folders?
  If yes where I define this folders?

  Thanks.
0
 
LVL 4

Accepted Solution

by:
e7ta earned 25 total points
ID: 6231263
I don't use CodeWarrior (I prefer GCC with Falch DevStudio) but you probably need to tell CW where the SDK can be found.
0
 
LVL 4

Assisted Solution

by:offir_a
offir_a earned 25 total points
ID: 6232283
Hi,
This error means that the Access path for the project's target isn't set right.
Each target in each project must "know" where the system files are. In our case, it's the PalmOS files for any specific OS version.
Until OS 4.0, (which I really recommend you download from palm's site, and work with! that's the new Palm m505 device OS), the system files folder had the number of the OS version in the folder's name, eg: "C:\Program Files\Metrowerks\CodeWarrior for Palm OS Platform 7.0\Palm OS 3.5 Support". From OS 4.0 and above, the name won't contain the version number, so you won't change all the target's access path for each project you have, but just point them all to "C:\Program Files\Metrowerks\CodeWarrior for Palm OS Platform 7.0\Palm OS Support".

The bottom line is:
1: Open your project.
2: For each target, select "Settings" (the icon just near the target name, or press Alt+F7)
3: Choose "Access Paths" from the left panel.
4: Click on the "System Paths" radio button option.
5: If you got anything there, delete it with the "Remove" button.
6: Click the "Add" button.
7: Search the folder with the OS files, as I've explained before. ("Palm OS Support" on OS 4.0)
8: That's it! :)
close the settings window, save the project and complie again.

Hope this helps,
Offir.
www.MobiMate.com
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question