Using an ECOM component
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot update - Fix links) |
m (Lpvalente -) |
||
| Line 1: | Line 1: | ||
| + | [[Category:Symbian C++]][[Category:Base/System]][[Category:Code Examples]][[Category:Symbian]][[Category:Code Snippet]][[Category:S60 3rd Edition FP1]] | ||
{{ArticleMetaData <!-- v1.2 --> | {{ArticleMetaData <!-- v1.2 --> | ||
|sourcecode= [[Media:ECom.zip]] | |sourcecode= [[Media:ECom.zip]] | ||
| Line 27: | Line 28: | ||
==Overview== | ==Overview== | ||
| − | This code snippet demonstrates how to use an ECom component. | + | {{Abstract|This code snippet demonstrates how to use an ECom component.}} |
==Preconditions and important issues== | ==Preconditions and important issues== | ||
| Line 89: | Line 90: | ||
* [http://www.developer.nokia.com/info/sw.nokia.com/id/53a369e8-14c7-4f52-9731-577db4e0d303/S60_Platform_ECom_Plug-in_Architecture_v2_0_en.pdf.html S60 Platform: ECom Plug-in Architecture] | * [http://www.developer.nokia.com/info/sw.nokia.com/id/53a369e8-14c7-4f52-9731-577db4e0d303/S60_Platform_ECom_Plug-in_Architecture_v2_0_en.pdf.html S60 Platform: ECom Plug-in Architecture] | ||
* [http://www.developer.nokia.com/info/sw.nokia.com/id/75ae7bde-7401-490f-87ec-920e44f518c2/S60_Platform_ECom_Plug-in_Examples_v2_0_en.zip.html S60 Platform: ECom Plug-in Examples] | * [http://www.developer.nokia.com/info/sw.nokia.com/id/75ae7bde-7401-490f-87ec-920e44f518c2/S60_Platform_ECom_Plug-in_Examples_v2_0_en.zip.html S60 Platform: ECom Plug-in Examples] | ||
| − | |||
| − | |||
Latest revision as of 23:12, 21 July 2012
Article Metadata
Code Example
Source file: Media:ECom.zip
Tested with
Devices(s): Nokia N95
Compatibility
Platform(s): S60 3rd Edition, FP1
Article
Keywords: REComSession, TEComResolverParams
Created: tepaa
(20 Feb 2008)
Last edited: lpvalente
(21 Jul 2012)
Contents |
Overview
This code snippet demonstrates how to use an ECom component.
Preconditions and important issues
- An application that loads an ECom component must call REComSession::FinalClose() in its destructor. It signals the destruction of the interface implementation to ECom.
MMP file
...
USERINCLUDE .
SYSTEMINCLUDE \Epoc32\include
SYSTEMINCLUDE \Epoc32\include\ecom
...
LIBRARY ecom.lib
Source file
TBuf<50> string;
// Create the ECom implementation
CHelloEcomIF* ecom = CHelloEcomIF::NewL();
CleanupStack::PushL(ecom);
// Call ECom
ecom->SayHello(string);
// Delete ECom
CleanupStack::PopAndDestroy(ecom);
// Close ECom
REComSession::FinalClose();
PKG file
...
; The ECom component
"Epoc32\release\gcce\urel\EComExample.dll"
- "!:\sys\bin\EComExample.dll"
"Epoc32\data\z\resource\plugins\EComExample.rsc"
- "!:\resource\plugins\EComExample.rsc"
Postconditions
The application loads the existing ECom component and calls its interface.

