Converters must provide the standard ECom factory code to create an instance of the converter. For example,
CConverterBase2* CExampleConverter::NewL() { CConverterBase2* conv = new( ELeave ) CExampleConverter(); return conv; } // Standard ECOM factory code const TImplementationProxy ImplementationTable[] = { IMPLEMENTATION_PROXY_ENTRY( KExampleConvImplementationUid, CExampleConverter::NewL ) }; // Standard ECOM factory code EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount ) { aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy ); return ImplementationTable; }
For more details on ECom factory code, see Exporting the implementation factories.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.