Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Source code of examples for Palm OS

Posted on 2001-06-26
9
352 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: 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.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 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