Helloworldbasic engineering Summary (I)

Source: Internet
Author: User

Symbian file category:
. header file of h c ++
. inl c ++ inline function implementation file
. cpp c ++ source file
. MMP Symbian operating system project file
. HRH resource and general header file of C ++ Program
bld. information file compiled by INF
. mak Build File
. RH resource header file
. RSS resource file
. loc localized string header file
. resource file compiled by RSC (no specific language involved)
. resource file compiled by rxx (XX is the language type)
. BMP window bitmap file
. multi-bitmap file in the MBM Symbian System
. application information file of the AIF Symbian System
. execution file of APP Symbian system, multi-state DLL
. DLL shared dll library
. EXE Symbian system service or executable program

Resource file description:
. All resource structures must use # pair des to include
. Use a unique name for verification (up to four bytes)
. Place the enumerated values in. HRH and place the resource struct in the. RH file.
. The name of the resource file is written in lowercase. The resource compiler generates uppercase characters to verify the C ++ program.
. Do not place strings in resource files, use logical names in resource files, and place authentic strings in. Loc files. The header file must not have the same name as the resource file.
. If you use a tbufnn variable, such as tbuf80 or tbuf64, And you should load the string to a local tbuf <NN> variable, make sure that the NN type is the same. To prevent memory leakage. The best way is to use each tbuf and stringloader: load or ieikonenv-> allocreadresourcel method.

General header file description:
. Common header files must use C ++ and resource File Syntax
. Generally, only the IDs, definitions, and enumeration settings of controls are used.
. Resource IDs will be automatically collected to filename. RSG and must not be defined in. HRH.
The resource struct definition must be in the. RH file. They do not need the C ++ syntax and cannot be compiled using the compiler.

New (eleave) Description:
New (eleave) is used to replace New in C ++. In the Exception Handling Mechanism of Symbian, if an exception exits when an object is created, to ensure that the automatic variables in the class are released, you need to call the user: Leave () function or the L function to clean up. Therefore, new (eleave) must be used to replace New.

Description of coemain. h:
In the Symbian system, coemain. h defines the uikon core class.

Systemgc function description:
Obtain the drawing context of the system. This drawing context is generally used on the drawing control. However, if the creategcl () function is called, an optional drawing context is created.

Summary of helloworldbasic Engineering Research:
In a Symbian system program, e32dll is the program's entry function, this function is also the DLL entry function. Because the general application class inherits from the capaapplication class, you need to export a newapplication () function for external programs to call. An application requires a UID to represent its identity. Therefore, in helloworldbasicapplication. CPP, the UID of the application and the function for obtaining the UID are defined. A general application consists of an application, a document, a view, and an Appui.
the application controls global resource management in the application and creates a document.
document is responsible for managing and creating Appui.
Appui is responsible for its own management. There is also a handlecommandl function to process user interaction.
View is used to display applications and draw sub-controls. view is not used to interact with users.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.