Solved

Source code of examples for Palm OS

Posted on 2001-06-26
9
342 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I think the most popular question in our Windows Mobile Programming zone is about the backlight - we all want to keep it on when our application is running. Few years ago the function SystemIdleTimerReset() did this job. On our side we had to detec…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

23 Experts available now in Live!

Get 1:1 Help Now