Thread: Writing For Other Platforms

  1. #1
    C++ Newbie
    Join Date
    Aug 2005
    Posts
    55

    Question Writing For Other Platforms

    How do you write programs for PocketPC's, PalmOS and phones? What do you do differently from writing computer programs?

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    They all take eVC++ 3.0, eVC++ 4.0 or .NET compilers -- the first two are free for downloading at www.microsoft.com/mobility. Programs targed for PocketPC 2002 can only be compiled with eVC++ 3.0. And they run WinCE, which is a stripped-down version of desktop win32. There are many win32 api functions not supported:

    Here are just a couple differences.

    1. There is no console, so there are no console programs, stdout, stdin, or stderr. You don't get an error when compiling a program that uses printf() and other associated functions, but they just don't do anything. The only user interface is via GUI MS-Windows, which is only about 80% supported.

    2. eVC++ 4.0 supports some c++ classes from std library, such as container classes, and it supports c++ exceptions. eVC++ 3.0 supports neither. And neither compiler supports std::streams. You can use FILE and associated functions or normal win32 api file i/o calls.

    3. There are many new hardware related functions, most of them are manufacturer OEM dependent. What works on one PPC OEM's device many or may not work on another OEM;s device.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-20-2008, 08:57 AM
  2. writing to a binary file
    By Inver28 in forum C Programming
    Replies: 4
    Last Post: 03-02-2008, 02:36 AM
  3. Very slow file writing of 'fwrite' function in C
    By scho in forum C Programming
    Replies: 6
    Last Post: 08-03-2006, 02:16 PM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  5. help! fifo read problem
    By judoman in forum C Programming
    Replies: 1
    Last Post: 08-16-2004, 09:19 AM