LoveUnix » 编程开发 & Rational » symbian学习
让LU留住您的每

一天 让LU博客留住您的每一天
2004-10-11 19:22 symbian
文章作者:symbian:<br />原发处:loveunix.net<br />欢迎转载,但是保留原作者与发表网站<br />保留版权声明<br /><br />symbian是智能手机中的操作系统<br />在目前手机操作系统的争夺中,Symbian市场占有率达到了70%,是当之无愧的老大,而微软的<br />windowsmobile和其他操作系统一共只有30%的份额。<br /><br />而当前 最有潜力的市场就是智能手机市场 无论是开发还是其它方面 <br /><br />所以 与其学会vc 让别人挑三捡四 一个月7800的工资打发 跟民工差不多 还不如学习symbian<br />一个月拿个78k 最不济也可以自己开发symbian上的共享软件谋生<br /><br /><br />目前,全球主流手机操作系统争夺主要有三种:<br />    1.Symbian操作系统:按持股比例多少,由诺基亚、爱立信、索尼爱立信、松下、三星、西门子共6家厂商顺序组成的Symbian联盟把持。优点是价格适中,对手机要求较低,缺点是开发人员少。<br />    2.windows mobile操作系统:优点在于可以方便地和PC上的windows进行互通,开发人员多,但缺点是授权费最高,对手机要求也高。<br />    3.Linux:全球开放的系统,任何厂家和开发商均可使用,优点是价格最低,对手机要求最低,缺点也很明显,厂家各自为营,手机之间的互通性差<br /><br /><br /><br />symbian公司的历史与构成<br />symbian是由手机界诺基亚、爱立信、moto、松下、三星、西门子五大巨头与pison联合起来 为了反对微软的进攻而成立的一个公司 开发自己的智能手机操作系统<br />后面由于其它变化 moto减少持股 同时pison离开 索爱加入 但是仍是这几家大公司持股<br /><br />当symbian成立后 ms也推出了smartphone操作系统 准备进攻移动手机市场 但现在以失败告终 <br />而symbian随着手机的发展得到了越来越多的市场<br /><br />

2004-10-11 19:25 symbian
第一章<br />经典的hello world 入门<br /><br />下面开始编写一个控制台上的hello world程序 开始进入symbian的大门<br /><br /><br /><br />//=======================================================<br />//<br />//          第一部分:   hello world程序解说<br />//  <br />//=======================================================<br /><br /><br />先放出代码

2004-10-11 19:29 symbian
安装<br /><br />这里介绍的是UIQ 也就是索爱P800系列的开发<br /><br />所以可以先从网上下载UIQ的安装文件 及安装vc6<br />.net不合适<br /><br />当然如果有钱 那可以买codewarrior 这是支持最好的<br /><br />具体的安装 下载后直接点安装就可以了 <br /><br />安装在c:盘c:\symbian<br /><br /><br />安装到其它盘可能会有问题<br />

2004-10-11 19:30 symbian
然后开始写一个helloworld<br /><br />程序代码也放在c盘下任意目录中<br /><br />下面是hello world的源码<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />//hellotext.cpp<br />#include &#60;e32base.h&#62;<br />#include &#60;e32cons.h&#62;<br /><br />LOCAL_D CConsoleBase* gConsole;<br /><br />// &nbsp;Real main function<br />void MainL&#40;&#41;<br />{<br /> &nbsp; &nbsp;TBuf&#60;12&#62; &nbsp; &nbsp;helloWorld&#40;_L&#40;&#34;hello&#34;&#41;&#41;;<br /> &nbsp; &nbsp;helloWorld.Append&#40;_L&#40;&#34;World&#34;&#41;&#41;;<br /> &nbsp; &nbsp;gConsole-&#62;Printf&#40;helloWorld&#41;;<br />// 可以把上面三句改成gConsole-&#62;Printf&#40;_L&#34;hello world&#34;&#41;;<br /><br />}<br /><br />// &nbsp;Console harness<br />void ConsoleMainL&#40;&#41;<br />{<br /> &nbsp; &nbsp;gConsole &nbsp; &nbsp;= Console&#58;&#58;NewL&#40;_L&#40;&#34;Hello Text&#34;&#41;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TSize&#40;KConsFullScreen,KConsFullScreen&#41;&#41;;<br /> &nbsp; &nbsp;CleanupStack&#58;&#58;PushL&#40;gConsole&#41;;<br /> &nbsp; &nbsp;MainL&#40;&#41;;<br /> &nbsp; &nbsp;User&#58;&#58;After&#40;5000000&#41;;<br /> &nbsp; &nbsp;CleanupStack&#58;&#58;PopAndDestroy&#40;gConsole&#41;;<br />}<br /><br />GLDEF_C TInt &nbsp; &nbsp;E32Main&#40;&#41;<br />{<br /> &nbsp; &nbsp;__UHEAP_MARK;<br /> &nbsp; &nbsp;CTrapCleanup* cleanupStack &nbsp;= CTrapCleanup&#58;&#58;New&#40;&#41;;<br /> &nbsp; &nbsp;TRAPD&#40;error,ConsoleMainL&#40;&#41;&#41;;<br /> &nbsp; &nbsp;__ASSERT_ALWAYS&#40;&#33;error,User&#58;&#58;Panic&#40;_L&#40;&#34;SCMP&#34;&#41;,error&#41;&#41;;<br /> &nbsp; &nbsp;delete cleanupStack;<br /> &nbsp; &nbsp;__UHEAP_MARKEND;<br /> &nbsp; &nbsp;return 0;<br />}<br /><!--c2--></div><!--ec2--><br />

页: [1]
查看完整版本: symbian学习


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.