basicsession.cpp

来自「Symbain mobile code 手机应用程序源代码--基本结构方面」· C++ 代码 · 共 28 行

CPP
28
字号
// BasicSession.cpp
//
// Copyright (C) Symbian Software Ltd 2000-2005.  All rights reserved.

// This example opens the file server session, and prints 
//"Hello File Server!" to the console.
// Used as the basis of all F32 examples

// Note that no data is written.

#include "CommonFramework.h"
#include <f32file.h>
	

LOCAL_D RFs fsSession;

// start of real example

LOCAL_C void doExampleL()
    {
	// open file server session
	User::LeaveIfError(fsSession.Connect()); // connect session
	// say hello
	_LIT(KGreeting,"Hello File Server!\n");
	console->Printf(KGreeting);
	fsSession.Close(); // close file server session
	}

⌨️ 快捷键说明

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