Understanding the ECOM in Symbian

Source: Internet
Author: User

Symbian also has windows-like
Com mechanism, used as the interface standard between binary modules.
ECOM is much simpler than Windows COM, with no guid
No iunknown, no marshal, no other things...

So, what else is there? One by one

First, like Com, your DLL needs to be registered so that someone else can find you. The difference is that, instead of registering to the registry, the DLL does not lead to injection.
The function of the book anti-registration (not similar
Dllregisterserver and dllunregisterserver), but write an RSS file,
Write your ECOM
Registration Information. the RSC file is generated after the RSS file is compiled and put into the system's ECOM plug-in registration directory.
The system can find your ECOM through the information in this file.
DLL. This RSS is not hard to write, basically just copy a new ID.
Note that the RSC file name generated after RSS compilation must be the same as the DLL file name.

* Note: Here RSS and blog RSS are not a concept. The resource file in Symbian is named RSS.

Then, your dll must implement an extraction function.
Export_c const timplementationproxy *
Implementationgroupproxy (tint & atablecount );
This is required. This function returns a structure array
Describes the ID of all objects contained in the DLL and the pointer of the factory function.
Generally, this function returns global variables in a DLL, for example:
Const
Timplementationproxy implementationtable [] =
{

Implementation_proxy_entry (0x13457890, cfoo: newl)
};

Cfoo: newl returns a cfoo *, and cfoo must implement the interface corresponding to ID 0x13457890.

This is simple. It is very primitive compared with Windows COM, but ECOM is widely used in Symbian and s60.
Because the mobile phone system needs a lot
Most of the features are implemented by ECOM with strong customization capabilities. Most of the differences between different versions depend on distribution.
When using different ECOM. The DLL of ECOM is made into a mobile phone
When Rom is used, it is somewhat different from other common DLL.
In the same way, ECOM will have a separate region, and the indexing will ensure that ECOM loading is faster than other DLL.
Institute
In some cases, some data files are made into ECOM because loading is faster.

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.