Solved

Source code of examples for Palm OS

Posted on 2001-06-26
9
348 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android Permissions 2 189
xamarin - developing iOS app without a mac? 11 490
Migrating From Parse To AWS 8 153
android app layout 7 88
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now