03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The project specification file for hellogui is as follows:<br />

// HelloGui.mmp<br />

//<br />

// Copyright (c) 2002 Symbian Ltd. All rights reserved.<br />

//<br />

TARGET HelloGui.app<br />

TARGETTYPE app<br />

UID 0x100039ce 0x101f74a8<br />

TARGETPATH \system\apps\HelloGui<br />

SOURCEPATH ..\group<br />

USERINCLUDE ..\inc<br />

RESOURCE HelloGui.rss<br />

SOURCEPATH ..\src<br />

SYSTEMINCLUDE \epoc32\include<br />

SOURCE HelloGui.cpp<br />

SOURCE HelloGui_Application.cpp<br />

SOURCE HelloGui_AppUi.cpp<br />

SOURCE HelloGui_AppView.cpp<br />

SOURCE HelloGui_Document.cpp<br />

LIBRARY euser.lib<br />

LIBRARY apparc.lib<br />

LIBRARY cone.lib<br />

LIBRARY eikcore.lib<br />

LIBRARY qikctl.lib<br />

Compared with the .mmp file for hellotext, whose listing appears in <strong>Chapter</strong> 1, there are<br />

some interesting differences here:<br />

� The TARGET is HelloGui.app, and TARGETTYPE is app – that is, an application. The<br />

build tools know what to do to make the right kind of executable in the proper target<br />

directory.<br />

� This time, the UIDs are nonzero. The first one you have to enter is 0x100039ce, and<br />

in fact this is the same for all GUI applications. The second should be obtained by you<br />

from Symbian- I'll show how to do that shortly.<br />

� The TARGETPATH specifies where HelloGui.app will be generated. On the emulator,<br />

the emulated z: drive's path will be used as a prefix, so<br />

\epoc32\release\winscw\udeb\z\system\apps\ hellogui\hellogui.app will be<br />

the path used for the emulator debug build.<br />

� As well as a number of source files, a resource file- hellogui.rss-is included in the<br />

project.<br />

� Many more .lib files are involved this time.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!