This page was last modified 08:51, 28 February 2008.
CS000834 - ECom: Using ECom component
From Forum Nokia Wiki
| ID | CS000834 | Creation date | February 28, 2008 |
| Platform | S60 3rd Edition, FP1 | Tested on devices | Nokia N95 |
| Category | Symbian C++ | Subcategory | Base/System |
| APIs | None | Classes | REComSession TEComResolverParams |
| Methods | None |
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.
See also
- Image:ECom.zip: Working example code
- CS0000835 - ECom: Implementing interface
- CS000836 - ECom: Defining a custom interface
- ECOM in Forum Nokia Wiki
- S60 Platform: ECom Plug-in Architecture
- S60 Platform: ECom Plug-in Examples
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 在S60 3rd里没有AllFiles权限怎么调用dll? | bobbycalf | Symbian | 3 | 2006-07-30 13:00 |
| ECOM: using functions of a plugin | jmeasow | General Symbian C++ | 1 | 2007-08-13 14:48 |
| problem with RLibrary on symbian 9.1 | chitransh_chetan | General Symbian C++ | 14 | 2006-04-27 13:35 |
| dll install problem | yangjunbuaa | General Symbian C++ | 5 | 2005-07-28 07:48 |
| New message notification API | lenclud | General Symbian C++ | 9 | 2008-06-04 14:40 |

