03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Furthermore, the application architecture makes default assumptions about the capabilities<br />

of the application – specifically, that it can't be embedded.<br />

If you want a nice caption and a nice icon or if you want to allow your application to be<br />

embedded, you have to code an application information file or AIF. In <strong>Chapter</strong> 14, I'll<br />

show you how to create hellogui.aif to give an icon and captions to my GUI hello world<br />

application.<br />

13.1.3 Summary of File Naming and Location Conventions<br />

Here's a summary of the file types we've met so far, along with the folder and file naming<br />

conventions required by the application architecture.<br />

Type Name Location<br />

Application document files Any name Any folder on any read/write drive.<br />

\Documents\ is an initial default<br />

suggestion, in English-language locales<br />

Nondocument application<br />

files<br />

Any name In \System\ on any drive, according to<br />

requirements<br />

Application program appname.app \System\Apps\appname\ on any drive<br />

(including z: for built-in applications)<br />

AIF appname.aif Same as .app<br />

Resource file appname.r?? Same as .app<br />

.ini file appname .ini c:\System\Apps\appname\ – only c: is<br />

allowed, so that the .ini file is (1) on a<br />

read/write drive and (2) always<br />

accessible to an application, even if<br />

removable media are changed<br />

Application- specific DLLs *.dll Same as .app<br />

Shared DLLs *.dll \System\Libs\, ideally on same drive as<br />

.app<br />

Shared .exes *.exe \System\Programs\, ideally on same<br />

drive as .app<br />

13.2 Introducing the APIs<br />

Now that we've seen how the file system is used, it's time to look at the main file and datarelated<br />

APIs. Here they are

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

Saved successfully!

Ooh no, something went wrong!