473,569 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ for smart phones

JCR
Hi,
Programing for smart phones/pda/pocket PC... can be difficult because
of the number of operating systems and the variety of devices. Is
anyone aware of a cross-operating system/cross-device environment to
write programs in C++. Open-source or not! Or maybe there is no such
thing and the solution is to set up a specific project for each target?

Thanks in advance

May 15 '06 #1
4 1798
JCR wrote:
Hi,
Programing for smart phones/pda/pocket PC... can be difficult because
of the number of operating systems and the variety of devices. Is
anyone aware of a cross-operating system/cross-device environment to
write programs in C++. Open-source or not! Or maybe there is no such
thing and the solution is to set up a specific project for each target?


I believe this question is OT here, but giving at least short answer:
simply give up, you won't find unified/common compiler + framework for
various operating systems on mobile devices.

Cheers
--
Mateusz Łoskot
http://mateusz.loskot.net
May 16 '06 #2
JCR wrote:
Hi,
Programing for smart phones/pda/pocket PC... can be difficult because
of the number of operating systems and the variety of devices. Is
anyone aware of a cross-operating system/cross-device environment to
write programs in C++. Open-source or not! Or maybe there is no such
thing and the solution is to set up a specific project for each target?


Unfortunately, I think you have to give up on using a cross-platform
system for mobile device development. You cannot even use standard C++
on mobile devices. The largest smart phone OS - Symbian is one of the
problems. On Symbian you cannot use exceptions at all and are required
to use two phase construction and a very problematic (and manual)
cleanup stack. You don't have any standard library. Symbian uses a
strange string descriptor model that can be tricky to handle. And
Symbian has a very odd multi-tasking model of active objects (which are
not active at all - in a preemptive sense - but rather a state machine
of co-routines). Another problem with symbian is that is "hardwired" to
a very old version of GCC (2.7 or 2.9 - don't remember) with bad
support for templates and other standard C++ 98 features. And Window
Mobile (or any of it's very similar, but different, setups of Windows
CE-based operating systems) pushes the compact Dotnet framework.

Porting C++ projects between Symbian and Windows Mobile is very
difficult (in any direction). You need to rewrite even the core parts
of most projects (or even start over). And then you may add Linux to
the mix... (which doesn't allow external C++ development at all in many
cases - only Java is supported by several vendors).

Java would seem to be the solution but it's so seriously flawed on
mobile devices that Sun is working on a completely new implementation
together with Docomo, intended to be finished in a year or so. Today,
to make a Java program work on a resonable range of multiple devices
you need something like 100 - 150 profiles (slightly different versions
of your Java program). And then you have all the limitations of the
Java MIDP framework with a very strict security policy. You cannot
store anything on the flash disk in MIDP 1.0 and only limited settings
on MIDP 2.0 - there is no way to reach the file system or even start
another Java application. Very frustrating! :-)

To summarize: Any type of mobile device development on several
platforms is very tricky. An effort in the direction of a unified
platform is the Tao Group's Intent platform. But the drawback is a high
price (like ~$30,000 for the SDK) and no solid support for Symbian (at
least a year ago when I checked last time).

Good luck! (or maybe see it as a good opportunity for a new startup...
:-)

May 16 '06 #3
JCR
Thank you very much for the answers; greatly appreciated. If anyone has
more experience about mobile development to share that would be
welcome.
Regards to all.

May 17 '06 #4

JCR wrote:
Hi,
Programing for smart phones/pda/pocket PC... can be difficult because
of the number of operating systems and the variety of devices. Is
anyone aware of a cross-operating system/cross-device environment to
write programs in C++. Open-source or not! Or maybe there is no such
thing and the solution is to set up a specific project for each target?


Many of the newer phones are beginning to use Linux as the main OS.
The radio is still driven by something else but the UI is Linux and it
looks to me like Qt. I just got a new cell phone and turns out its
running Linux on an XScale...same as a PDA...

In that case you would use basic C++ and Qt embedded.

May 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5243
by: Thomas Weholt | last post by:
Hi, Is it at all possible to use python to make apps on cellular/mobile phones, using something like Jython etc. ? Hm ... ?? Thomas
124
4843
by: 43 | last post by:
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come RealPlayer, MediaPlayer and all applications that need speed are written in c++ ? (except for
8
2091
by: Ruthless | last post by:
Hello. I've got a question how to make a patern in XML Schema for e.g. phones' numbers like this: 111-222-333 etc. thanx in advance greetings R ---
11
7008
by: Ron | last post by:
Hello, I'm having an aggravating time getting the "html" spewed by Word 2003 to display correctly in a webpage. The situation here is that the people creating the documents only know Word, and aren't very computer savvy. I created a system where they can save their Word documents as "html" and upload them to a certain directory, and the...
2
1390
by: Adrian | last post by:
How do I tell if my phone is "smart enough" to run C# apps?
10
2045
by: Pieter Coucke | last post by:
Hi, What's in general the most performant for a VB.NET Windows Forms (2.0) application: - a fat client (everything one the client, the server hosts only the database) - a smart client (an application on the client, that communicates with an application on the server via Webservices/Remoting/..) I would somehow think a smart client, but...
2
2015
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you for any and all assistance in finding information on this, it is greatly appreciated. I have a client that wishes to integrate into a desktop application three things from an Access 2000 database and program created for their operations. They would like to be able to text message from this program to Wireless/Cellular phones:...
5
1929
by: Stefano Peduzzi | last post by:
Hi, I'm building an application where I've defined a custom class Customer. Customer can have many phones (defined by phoneType and phoneNumber). I want to check that a phoneNumber is not already present in customer phones. So i've build a PhoneCollection class inheriting for List<Phoneand defined an Add method to check if the phoneNumber...
2
1848
by: wingsganesh | last post by:
hi guys, My Xml File <xml version="1.0"> <Name> <Firstname> Infowave </Firstname> <Lastname> Homes </Lastname> </Name> </xml>
0
7698
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7673
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7970
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.