roidsapplication.cpp

来自「Symbian s60 游戏编程示例」· C++ 代码 · 共 44 行

CPP
44
字号
/*
============================================================================
 Name        : RoidsApplication.cpp
 Author      : Twm Davies
 Copyright   : Twm Davies
 Description : Main application class
============================================================================
*/

// INCLUDE FILES
#include "RoidsDocument.h"
#include "RoidsApplication.h"

// ============================ MEMBER FUNCTIONS ===============================

// UID for the application;
// this should correspond to the uid defined in the mmp file
const TUid KUidRoidsApp = { 0xEB3774F3 };

// -----------------------------------------------------------------------------
// CRoidsApplication::CreateDocumentL()
// Creates CApaDocument object
// -----------------------------------------------------------------------------
//
CApaDocument* CRoidsApplication::CreateDocumentL()
    {
    // Create an Roids document, and return a pointer to it
    return (static_cast<CApaDocument*>
                    ( CRoidsDocument::NewL( *this ) ) );
    }

// -----------------------------------------------------------------------------
// CRoidsApplication::AppDllUid()
// Returns application UID
// -----------------------------------------------------------------------------
//
TUid CRoidsApplication::AppDllUid() const
    {
    // Return the UID for the Roids application
    return KUidRoidsApp;
    }

// End of File

⌨️ 快捷键说明

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