ecomshapeapp.cpp

来自「国内著名嵌入式培训机构内部资料,内含一些实例代码,包括技术专题书籍」· C++ 代码 · 共 57 行

CPP
57
字号
/*
* ============================================================================
*  Name     : CEcomShapeApp from EcomshapeApp.cpp
*  Part of  : ecomshape
*  Created  : 29/05/2006 by Forum Nokia
*  Version  : 2.0
*  Copyright: Forum Nokia
* ============================================================================
*/

// INCLUDE FILES
#include    "EcomshapeApp.h"
#include    "EcomshapeDocument.h"
#ifdef __SERIES60_3X__
#include <eikstart.h>
#endif

// Returns application UID
TUid CEcomShapeApp::AppDllUid() const
    {
    return KUidecomshape;
    }

// Creates CEcomShapeDocument object
CApaDocument* CEcomShapeApp::CreateDocumentL()
    {
    return CEcomShapeDocument::NewL( *this );
    }

// Constructs CEcomShapeApp
EXPORT_C CApaApplication* NewApplication()
    {
    return new CEcomShapeApp;
    }

#ifndef __SERIES60_3X__
// Entry point function for EPOC Apps
// Returns: KErrNone: No error
GLDEF_C TInt E32Dll( TDllReason )
    {
    return KErrNone;
    }
#else
// ---------------------------------------------------------
// E32Main()
// Entry point function for new (>= 9.0) EPOC Apps (exe)
// Returns: Sistem Wide error codes or KErrNone if all goes well
// ---------------------------------------------------------
//
GLDEF_C TInt E32Main()
{
    return EikStart::RunApplication( NewApplication );
}
#endif

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?