Solved

Source code of examples for Palm OS

Posted on 2001-06-26
9
358 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
[X]
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
  • 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
Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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 recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

691 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