Google Answers Logo
View Question
 
Q: Visual C++ coding for the Palm OS ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Visual C++ coding for the Palm OS
Category: Computers > Programming
Asked by: foutaine-ga
List Price: $60.00
Posted: 12 Dec 2002 07:06 PST
Expires: 11 Jan 2003 07:06 PST
Question ID: 123584
Where can I find online tutorials for using Microsoft Visual C++ to
create Palm OS applications and free C++ source code (not complied)
for the Palm OS?

Clarification of Question by foutaine-ga on 12 Dec 2002 07:30 PST
For clarification, I'm referring to Microsoft Visual C++ 6.0 and not
Microsoft Visual C++ .NET.  I have VC6 and I'm hoping not to have to
upgrade to MetroWerks CodeWarrior or VC.NET.

Also, I'm interested in developing for the Palm OS because it still
has the large part of the market share for PDA's operating systems.

Answers are very much appreciated.

Thank you,
Foutaine
Answer  
Subject: Re: Visual C++ coding for the Palm OS
Answered By: theta-ga on 12 Dec 2002 12:12 PST
Rated:5 out of 5 stars
 
Hi foutaine-ga,
     Welcome to the world of Palm programming. I hope this answer will
help you get started quickly with Palm development.
    1) Where can I find online tutorials for using Microsoft Visual
C++ to
create Palm OS applications ?
       Well, unfortunately the answer to this question is that you
CANNOT develop Palm application with MS VC++. This is because the
compiler that ships with VC++ generates code for an x86 hardware
platform(like the Pentium processors) not the Motorola 68K platform on
which the Palm is based.
       While you cannot use VC++ to develop Palm apps, you can use it
to develop 'Conduits'. You would have noticed that many Palm
applications have a seperateWindows/Mac component which is used to
transfer data to and fro between your Desktop and your Palm. These
software components that are installed on your Desktop PC are called
'Conduits', and can be developed using VC++.
       The best resource for information on Conduit development is
Palm itself. You will need to download the Windows Conduit Development
Kit(CDK) which you can use with VC++ & VB. You can find the CDK and
tutorials at :
          - PalmOS : Desktop Development : Windows CDK
           ( http://www.palmos.com/dev/tools/cdk/win/ )
            This site also cantains a lot of information and tutorials
on Palm development and i highly recommend that you check it out.
           
           You can also take a look at the following book extract on
creating Conduits using VB.
          - O'Reilly.com : Building Palm Conduits
            ( www.ondotnet.com/pub/a/dotnet/excerpt/vbpalm_4/index1.html
)
        
=========
      But since your original need was to be able to develop Palm apps
without expensive upgrades, lets see what options we have. In order to
develop applications for the Palm, you can use the following main
compiler systems :

  1) MetroWorks CodeWarrior  : The official development environment
for the Palm OS. But, as per your wish, we discard this option.
  2) GCC (or the GNU Compiler Collection) : Some programmers modified
the FREEly available GCC C/C++ compiler to produce Palm executebles.
This compiler and related tools were then bundeled into a package
called Prc-Tools. This package and related SDKs can be FREELY
downloaded from :
          - Palm OS PRC-Tools, the GCC Tools for Palm OS
            ( http://www.palmos.com/dev/tools/gcc/ )
You can find the installation instruction at :
http://prc-tools.sourceforge.net/install/cygwin.html

For a comparison of the above two systems, check out :
      - Palm OS : 2.  Development Environments and Languages
        ( http://cocoon.it.jyu.fi/docs/palmos/book/ch02.htm#P172_12008
)

========
  You will notice however, that the editor available for use with GCC
is no match for VC++. So lets take a look at the various IDE's
available to you :
   - VC++ : Yes! With a little modification, you can use the VC++ ide
with GCC to create Palm apps. However, you will not be able to use all
the options available in the IDE, and before you are able to use gcc,
it will require some setting up. You can find how to setup VC++ to use
GCC in the following article :
          - Setting Up Your GBA Development Environment
            ( www.matt-tighe.co.uk/gba/tutorials/vstudio/vstudio.htm )
            Although the article says its for GBA development, it will
work for Palm too. You will have to replace all the file & directory
references with those specific to your computer.
     You may find that it is simpler to just buy one of the following
IDE's than mess around with VC++.

  - M.LABS Mobile C++ : This is an IDE for developing Palm
applications using C/C++. It has practically all the features provided
by VC++ and also provides a C++ framework to enable rapid Palm app
development. The Lite version costs a mere $29.99. You can check out
the product details and screenshots at :
         - MobileSoft Labs --- Products {mobileStudio C++}
          ( http://www.mobilesoft-labs.com/mobilestudio.htm )

  - Falch.net DeveloperStudio : DeveloperStudio for Palm OS is a
professional Windows based IDE. It is available as a Professional
Edition ($229) and Personal Edition ($129). Check out the product
website at :
         -  Falch.net DeveloperStudio for Palm OS
          ( http://www.falch.net/Products/#DeveloperStudio )

  - PilotMAG  : PilotMAG is a windows  IDE for GCC that enables you to
easily design Palm Pilot forms on-the-fly. The full registered version
costs $20.
             - MonteSoft : Pilot Mag
               ( http://montesoft.tripod.com/ )

  - VfdIDE : VfdIDE is a package integrating a WYSIWYG Visual Form
Designer,Integrated Development Environment and a Line Level Debugger
for developing Palm apps.You can purchase a basic version for $25 and
a full featured version for $55.
              - Homepage Ole Grossklaus : VFDIDE
                ( http://www.vfdide.com/ )

 You can also find a list of other IDE's and tools at :
           - Palm OS Tools and Downloads
             ( http://www.palmos.com/dev/tools/ )

My recommendation is that you go for a cheaper IDE like MobileStudio
C++ if you do not want to upgrade to Codewarrior.

==========
   You can find a number of tutorials with the relevant source code in
Palms SDK, available on their site. For freely available source code
for Palm apps, try the following sites:

 - PalmOpenSource.com 
   ( http://www.palmopensource.com/ )
   The PalmOS Open Source Portal containing a large number of Palm
apps with their source code available. Also contains some useful
tutorials.

 - SourceForge
   ( http://sourceforge.net/softwaremap/trove_list.php?form_cat=314&discrim=165
)
   A filtered list of projects on sourceforge for the Palm, written in
C++. Source code for most of these projects is available.

 - Ron Nicholson's PalmOS Computing General Information Page
   ( http://www.rahul.net/rhn/palm/ )
   A very useful collection of Palm related links. Contains links to
some open source Palm software.

===============
Hope this helps.
If you need any clarifications, just ask!

:)

================
RELATED LINKS
--------------
  
   - An introduction to the Palm platform
     By Christian Graus 
     ( http://www.codeproject.com/ce/Palm_Introduction.asp )
An overview of the Palm world, including a list of C functions which
have preferred equivalents in PalmOS
   - Palm OS Programmer's FAQ
     ( http://tangentsoft.net/palmfaq/index.html )
     A must read for anyone developing on the Palm.

   - Palm  OS : Developer Documentation
     ( http://www.palmos.com/dev/support/docs/ )
     The official help files and tutorials.
 
   - Palm OS : Developers Section
     ( http://www.palmsource.com/developers/ )
     The official developers resource.

    - Palm Programming: The Developer's Guide - Table of Contents
      ( http://cocoon.it.jyu.fi/docs/palmos/book/TableOfContents.htm )
      Free online book from O'Reilly


Google search Terms used :
      "open source" palm os c++ application
      tutorial setting up gcc palm windows
      tutorial conduits "palm os" "visual c++"
      tutorial how palm os visual c++ code 

Google Groups search terms used : 
      "Visual C++" group:pilot.*
      using  "visual c++" "ide with gcc" compiler
      "palm os" processor cpu 68k
foutaine-ga rated this answer:5 out of 5 stars and gave an additional tip of: $10.00
THANK YOU!  I didn't have time to figure out why I couldn't find
anything on the internet -you've saved me tons of time!  I will
probably just look into upgrading to CodeWarrior, then seeing how
there is probably more technical support than some of the free
programs.  I'm quite amazed with the Answer and very appreciative.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy