您好,欢迎访问三七文档
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
本文标题:S60_Platform_Comparison_of_ANSI_Cpp_and_Symbian_Cp
链接地址:https://www.777doc.com/doc-4311036 .html