⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eustd.h

📁 如题 就是 这东西 为什么非要我 说到 20个 字 呢 看看这回 够 不
💻 H
字号:
// EUSTD.H
//
// Copyright (c) 1999-2007 Symbian Software Ltd.  All rights reserved.
//
// $Change: 937687 $

#ifndef EUSTD_H
#define EUSTD_H

// SYSTEM HEADERS
#include <e32base.h>
#include <e32cons.h>

_LIT(KTxtEPOC32EX,      "EPOC32EX");
_LIT(KTxtExampleCode,   "Descriptors Exercise");
_LIT(KFormatFailed,     "failed: leave code=%d");
_LIT(KTxtOK,            "ok");
_LIT(KTxtPressAnyKey,   " [press any key]");

// public
LOCAL_D CConsoleBase* console;  // write all your messages to this
LOCAL_C void doExampleL();      // code this function for the real example

// private
LOCAL_C void callExampleL();    // initialize with cleanup stack, then do example

GLDEF_C TInt E32Main()          // main function called by E32
    {
    __UHEAP_MARK;
    CTrapCleanup* cleanup = CTrapCleanup::New();    // get clean-up stack
    TRAPD(error, callExampleL());                   // more initialization, then do example
    __ASSERT_ALWAYS(!error, User::Panic(KTxtEPOC32EX, error));
    delete cleanup;             // destroy clean-up stack
    __UHEAP_MARKEND;
    return 0;                   // and return
    }

LOCAL_C void callExampleL()     // initialize and call example code under cleanup stack
    {
    console = Console::NewL(KTxtExampleCode, TSize(KConsFullScreen, KConsFullScreen));
    CleanupStack::PushL(console);
    TRAPD(error, doExampleL()); // perform example function
    if (error)
        {
        console->Printf(KFormatFailed, error);
        }
    else
        {
        console->Printf(KTxtOK);
        }
    console->Printf(KTxtPressAnyKey);
    console->Getch();           // get and ignore character
    CleanupStack::PopAndDestroy(console); // close console
    }

#endif  // EUSTD_H

⌨️ 快捷键说明

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