Programming C# 5.0 by Ian Griffiths

Programming C# 5.0 by Ian Griffiths

Author:Ian Griffiths [Ian Griffiths]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming Languages / C#
ISBN: 9781449320409
Publisher: O'Reilly Media
Published: 2012-10-11T04:00:00+00:00


Other PE Features

Although C# does not use the classic Win32 mechanisms for representing code or exporting APIs in EXEs and DLLs, there are still a couple of old-school features of the PE format that assemblies can use.

Console versus GUI

Windows makes a distinction between console applications and Windows applications. To be precise, the PE format requires an EXE to specify a subsystem, and back in the old days of Windows NT, this supported multiple operating system personalities—early versions included a POSIX subsystem, for example. These days, you see only three subsystems, and one of those is for kernel-mode device drivers. The two user-mode options used today select between Windows GUI (graphical user interface) and Windows console applications. The principal difference is that Windows will show a console window when running the latter (or if you run it from a command prompt, it will just use the existing console window), but a Windows GUI application does not get a console window.

You can select between subsystems in the project’s Application property page using the “Output type” drop-down list. This offers Windows Application and Console Application. It also offers Class Library, which builds a DLL; DLLs do not specify a subsystem.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.