Resource (Windows)

Resource (Windows)

In Microsoft Windows, resources are read-only data embedded in EXE or DLL files.

The Windows API provides for easy access to all applications' resources.

Types

Each resource has a type and a name, both being either numeric identifiers or strings.

Windows has a set of predefined resource types:
* Cursor and animated cursor
* Icon
* Bitmap
* Dialog box template
* Font
* HTML document
* String and message template
* Version data

The programmer can also define custom data types in resources.

Usage

The icon that Windows displays for a program file is actually the first icon resource in its EXE file. If the EXE file has no icon resources, a standard icon is displayed.

The version resource for EXE and DLL files is displayed in the "Version" tab of their property pages.

Resources always have a language attached to them and Windows will automatically use the most fitting language if possible. This allows for programs adapting their language to the locale of the user.

Editors are available that can modify resources embedded in EXE or DLL files. These are typically used to translate all strings of an application to another language, or to modify its icons and bitmaps accordingly.

External links

* [http://msdn2.microsoft.com/en-us/library/ms646975.aspx Introduction to Resources]
*Article " [http://www.askvg.com/tutorial-all-about-resource-hacker-in-a-brief-tutorial/ All About Resource Hacker in a Brief Tutorial ] "
*Article " [http://www.askvg.com/category/resource-hacker/ Lots of Other Resource Hacker Tutorials ] "
*Article " [http://www.codeproject.com/useritems/RCManager.asp Using Resources In Windows Applications] "
*Article " [http://www.codeproject.com/library/Resources.asp Using Resources in the VCF] " by Jim Crafton
*Article " [http://www.resource-builder.com/using_html_resources.html Using HTML resources to create user interface for your applications] "

Resource Software

* [http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/DeDe.shtml DeDe] (Freeware)
* [http://www.resedit.net/ ResEdit] (Freeware)
* [http://www.resource-builder.com/ Resource Builder] (Shareware)
* [http://www.angusj.com/resourcehacker/ Resource Hacker] (Freeware)
* [http://www.heaventools.com/ Resource Tuner] (Shareware)
* [http://www.bome.com/Restorator/ Restorator] (Shareware)
* [http://www.wilsonc.demon.co.uk/d10resourceeditor.htm XN Resource Editor] (Open Source)
* [http://www.godevtool.com/ GoRC] (Freeware) resource compiler for 32-bit and 64-bit Windows programming
* [http://www.multiextractor.com/ MultiExtractor] (Shareware)


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Resource (disambiguation) — Resource may refer to: *Child and Parent Resource Institute, a psychiatric facility in London, Ontario, Canada *Resource (types and developments), any natural or human wealth that can be used for satisfying human needs * Resource (economics),… …   Wikipedia

  • Resource fork — The resource fork is a construct of the Mac OS operating system used to store structured data in a file, alongside unstructured data stored within the data fork. A resource fork stores information in a specific form, such as icons, the shapes of… …   Wikipedia

  • Resource (computer science) — A resource, or system resource, is any physical or virtual component of limited availability within a computer system. Every device connected to a computer system is a resource. Every internal system component is a resource. Virtual system… …   Wikipedia

  • Windows Server 2008 — Part of the Microsoft Windows family …   Wikipedia

  • Windows Resource Protection — is a feature in Windows Vista that replaces Windows File Protection. It protects registry keys and folders in addition to critical system files. The way it protects resources differs entirely from the method used by Windows File Protection.… …   Wikipedia

  • Windows Resource Protection — Windows Resource Protection (сокр. WRP) технология, используемая в ОС Windows Vista взамен Windows File Protection. Она защищает ключи реестра и папки, наряду с критически важными системными файлами. Методы, используемые этой технологией для …   Википедия

  • Windows 98 — Part of the Microsoft Windows family …   Wikipedia

  • Windows 2000 — Part of the Microsoft Windows family Screenshot of Windows 2000 Professional …   Wikipedia

  • Windows NT 4.0 — Part of the Microsoft Windows family …   Wikipedia

  • Windows Media Player — A component of Microsoft Windows Details …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”