The following words are quite refer to NOKIA's literature (because I said more detailed, correct)
S60 C application example HelloWorld
Symbian OS 6.1
The key to the success of the 60 series is the Symbian OS, the Symbian operating system is the basis of the product. Symbian OS is a 32-bit multitasking operating system. In this system, the events often occur at different times, and the application is designed to interact with each other. For example, sudden calls may interrupt the user's ongoing email editing; a user may switch from an email to a schedule application during a call; or a just received short message may trigger a user to access Contact database and then forward the received short message. According to platform architecture and software design guidance, application designers can provide well-orderly management means for such events encountered in daily lives.
60 Series C Software Development Kit 60 Series Platform has its own SDK, which is based on Symbian SDK. Third-party developers can use API to develop new applications for the 60-Series platforms and include these applications to their own products, or as a variety of value-added applications that are different from sales applications. The 60 Series SDK provides support to development partners, and provides a simulator that can be operated in Microsoft Windows in Microsoft WINDOWS. This SDK is very important for development, testing, and commissioning of various C applications.
C application examples Two "Hello World" applications for the 60 Series devices, one is the console application, the other is the basic graphical user interface application. These applications need to be established with Microsoft's Visual C 6.0 (Service Pack 3), because the Perl script is also installed because the SDK compile system is called.
The first "Hello World" example of the console application is a console application that contains a single executable with extensions .exe. In Symbian OS, this executable is mainly used for both purposes: as a server without a user interface, or as a test tool with a very simple character interface. Various typical complex graphical applications will be used
Program framework and various user interface libraries. This article will introduce a "Hello World" application based on graphical user interface.
Create and run the command prompt with the command line, select the driver with a 60-Series SDK, enter the folder containing the project code, such as: /symbian/6.1/series60/epoc32ex/basics/helloWorld
There are 3 files in this folder: helloWorld.cpp - Source file helloworld.mmp - Item definition file BLD.INF - Component definition file To create this sample program, type: bldmake bldfiles This command will generate a new file, ie Abld.bat; This file is always automatically generated in accordance with certain requirements, and should not be edited. To compile and link this project, type: abld build wins udeb This command will create a project for the 60 Series debugging simulator. Run this program with the following method: In the command prompt state, enter a folder containing the "HelloWorld.exe" program. For example: /ssymbian/6.1/series60/epoc32/release/wins/udeb Type after the command prompt: HelloWorld This is started with 60 Series Simulator
Establishing and running procedures from IDE (integrated development environment) Usually create and run in Microsoft's Visual C 6.0 IDE (integrated development environment), the steps are as follows: If the abld.bat file does not exist ( Alternatively, if the .mmp file or bld.inf file has been changed), you must type the following command to generate a creation (BUILD) command file: BLD Make BLDFiles Next command is: Abld Makefile VC6 creates Visual C project and workspace file (.Dsp and .dsw). These two files are located in / ePoc32 / build subdirectory, namely: /epoc32/build/symbian/6.1/series60/epoc32ex/basics/helloworld/helloWorld/wins Open the workspace file in Visual C HelloWorld.dsworld.dsw, press F7 to create (Build) This application is then pressing Ctrl F5 to run the app. The console simulator will automatically start with the HelloWorld application. Symbian OS Application Framework UIKON and standard Eikon are two important parts of the application framework. They not only provide a framework for loading a variety of applications, but also provide a range of standard controls for the operation of the application.
(Such as dialog, digital editor, date editor, etc.). In practice, typical applications written for Symbian OS consist of four different components, each component corresponds to a class in a UIKON / EIKON frame, which is: