S60_Platform_Comparison_of_ANSI_Cpp_and_Symbian_Cp

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

S60Platform:ComparisonofANSIC++andSymbianC++S60platformVersion2.0May31,2006S60Platform:ComparisonofANSIC++andSymbianC++|2LegalnoticeCopyright©2004-2006NokiaCorporation.Allrightsreserved.NokiaandNokiaConnectingPeopleareregisteredtrademarksofNokiaCorporation.JavaandallJava-basedmarksaretrademarksorregisteredtrademarksofSunMicrosystems,Inc.Otherproductandcompanynamesmentionedhereinmaybetrademarksortradenamesoftheirrespectiveowners.DisclaimerTheinformationinthisdocumentisprovided“asis,”withnowarrantieswhatsoever,includinganywarrantyofmerchantability,fitnessforanyparticularpurpose,oranywarrantyotherwisearisingoutofanyproposal,specification,orsample.Furthermore,informationprovidedinthisdocumentispreliminary,andmaybechangedsubstantiallypriortofinalrelease.Thisdocumentisprovidedforinformationalpurposesonly.NokiaCorporationdisclaimsallliability,includingliabilityforinfringementofanyproprietaryrights,relatingtoimplementationofinformationpresentedinthisdocument.NokiaCorporationdoesnotwarrantorrepresentthatsuchusewillnotinfringesuchrights.NokiaCorporationretainstherighttomakechangestothisspecificationatanytime,withoutnotice.LicenseAlicenseisherebygrantedtodownloadandprintacopyofthisspecificationforpersonaluseonly.Nootherlicensetoanyotherintellectualpropertyrightsisgrantedherein.Version2.0|May31,2006S60Platform:ComparisonofANSIC++andSymbianC++|3Contents1.Introduction.........................................................................................................52.SymbianOSandANSIC++differences............................................................62.1Writeablestaticdata........................................................................................................62.2TemplatesandStandardTemplateLibrary.....................................................................72.3C++exceptions...............................................................................................................72.3.1Therelationshipbetweenexceptions,leaves,andpanics.....................................83.SymbianOSC++”extensions”..........................................................................93.1Namingconventions........................................................................................................93.1.1SymbianOSfundamentaltypes.............................................................................93.2StringhandlingandSymbianOSdescriptors...............................................................103.3Inheritancerules............................................................................................................103.3.1Cclasses..............................................................................................................103.3.2Multipleinheritance...............................................................................................113.4Cleanupsupport............................................................................................................113.5Two-phaseconstruction................................................................................................123.6Client−servermodelinSymbianOS.............................................................................143.6.1Asynchronouscalls...............................................................................................143.6.2Activeschedulerandactiveobjects.....................................................................154.POSIX/ANSICsupportinSymbianOS...........................................................175.Termsandabbreviations..................................................................................186.References.........................................................................................................197.Evaluatethisresource......................................................................................20Version2.0|May31,2006S60Platform:ComparisonofANSIC++andSymbianC++|4ChangehistoryMarch22,2004Version1.0InitialdocumentreleaseMay31,2006Version2.0ReplacesdocumentSymbianOS:FromANSIC/C++ToSymbianC++.UpdatedforSymbianOSv9andS603rdEditionVersion2.0|May31,2006S60Platform:ComparisonofANSIC++andSymbianC++|51.IntroductionThisdocumentisintendedforprogrammersalreadyfamiliarwithC++development,forexample,thoseportingexistingC++codetorunonSymbianOS.ItdescribestheessentialdifferencesbetweenANSIC++andC++forSymbianOS.ProgramminginC++onanyplatformgenerallyinvolvesmorethansimplyknowingtheANSIC++standardoraplatform’sdeviationsfromit,becausetheC++standarddoesnotcontainGUIlibraries,forexample,oreventhreadhandling.Ifyouhavealwaysprogrammedonaparticularplatform,thelinebetweenstandardandplatform-specificcodemayhavebecomeblurredtoyou,andyoucouldevenargueabouttheusefulnessofknowingtheANSIC++standard.Butifyouhavedevelopedcodeonavarietyofdifferentplatforms,youwillfindthattheANSIC++standardprovidesacommongroundforcomparison,andawaytomovefromoneplatformtoanother.Itisimportanttoknowwhenyourcodedeviatesfromthiscommonground,andequallyimportanttoknowwhenthere

1 / 20
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功