Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2003.04.17;
Скачать: [xml.tar.bz2];

Вниз

HTML и ресурсы   Найти похожие ветки 

 
illusion Dolphin   (2003-04-07 23:24) [0]

Как записать html-страничку в файл ресурсов (*.res), а потом её оттуда благополучшо отобразить. (желательно её не загружать при этом в готовом виже на винчестер, т.е. без временных файлов; на лету). Такой механизм, если я не ошибаюсь, уже еспользуется в XP при загрузке logo-странички (из *.exe).


 
Palladin   (2003-04-07 23:31) [1]

ты ошибаешся... там другой механизм... ничего общего с ресурсами (в твоем понимании) не имеет...

файл res существует только на стадии разработки, в дальнейшем все ресурсы связываются (линкуются) с PE (dll или exe)...

возможно ты имеешь в виду просто хранилище данных, используй TFileStream. Если все таки нужны именно ресурсы (хотя на мой взгляд не оправдана такая хотелка) то изучай UpdateResource в Windows SDK, он как раз для этих целей предназначен...


 
nikkie   (2003-04-08 00:51) [2]

Res Protocol

Specifies a resource that will be obtained from a module.

Syntax

res://sFile[/sType]/sID

Possible Values

sFile Required. Specifies the path and file name of the module that contains the resource.
sType Optional. Specifies the string or numerical resource type. This can be either a custom resource or one of the RT_ predefined resource types described in the FindResource function reference. If a numerical resource type is specified, the actual number of the identifier, not the identifier name, must follow a # character. See the example below for more information. If this parameter is not specified, the default resource type is RT_HTML.
sID Required. Specifies the string or numerical identifier of the resource. If a numerical identifier is specified, the actual number of the identifier, not the identifier itself, must follow a "#" character. See the example below for more information.


Remarks

Available as of Microsoft® Internet Explorer 4.0 or later.

Example

The following example shows the correct and incorrect ways to format the numerical identifier for the resource type.

#define MYBITMAP 234

// This is correct.
"res://mydll.dll/#2/#234"

// This is not correct.
"res://mydll.dll/#2/MYBITMAP"



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2003.04.17;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.11 c
1-54588
Jao
2003-04-07 10:28
2003.04.17
совместное использование библиотеки VCL разными приложениями


3-54519
Эдуард
2003-03-31 19:34
2003.04.17
Создание просмотра VIEW


3-54443
Shuric
2003-03-26 21:26
2003.04.17
Переименование строк в идексированной таблице


4-54939
alexrush
2003-02-15 12:00
2003.04.17
Desktops & WindowStations


3-54402
Инна
2003-03-31 20:24
2003.04.17
несуществующие таблицы





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский