powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / C++ [игнор отключен] [закрыт для гостей] / работа с HTML Help
9 сообщений из 9, страница 1 из 1
работа с HTML Help
    #32575942
Вентик
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Можно ли впихнуть chm в екзешник ?? Если да где бы примерчик откопать ?
...
Рейтинг: 0 / 0
работа с HTML Help
    #32576418
Фотография Green2
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Выдержка из MSDN

The HTML Help API has one function that displays a help window. Using the API commands, you can specify which topic to display in the help window, whether the help window is a three-pane Help Viewer or a pop-up window, and whether the HTML topic file should be accessed via a context ID, an HTML Help URL, or a Keyword link (KLink) lookup.
HTML Help API syntax
HWND HtmlHelp(
HWND hwndCaller,
LPCSTR pszFile,
UINT uCommand,
DWORD dwData) ;
Parameters
hwndCaller
Specifies the handle (hwnd) of the window calling HtmlHelp(). The help window is owned by this window.
When the help window is closed, HtmlHelp() will return focus to the owner unless the owner is the desktop. If hwndCaller is the desktop, then the operating system determines where focus is returned.
In addition, if HtmlHelp() sends any notification messages from the help window, they are sent to hwndCaller as long as you have enabled notification message tracking in the help window definition.
pszFile
Depending on the uCommand value, specifies the file path to either a compiled help (.chm) file, or a topic file within a specified help file.
A window type name can also be specified, preceded with a greater-than (>) character.
If the specified command does not require a file, this value may be NULL.
uCommand
Specifies the command to complete.
dwData
Specifies any data that may be required, based on the value of the uCommand parameter.
Return Value
Depending on the specified uCommand and the result, HtmlHelp() returns one or both of the following:
The handle (hwnd) of the help window.
NULL. In some cases, NULL indicates failure; in other cases, NULL indicates that the help window has not yet been created.
Example
The following example calls the HH_DISPLAY_TOPIC command to open the help file named Help.chm and display its default topic in the help window named Mainwin. Generally, the help window specified in this command is a standard HTML Help Viewer.
HWND hwnd =
HtmlHelp(
GetDesktopWindow(),
"c:\\Help.chm::/Intro.htm>Mainwin",
HH_DISPLAY_TOPIC,
NULL) ;

...
Рейтинг: 0 / 0
работа с HTML Help
    #32577242
Вентик
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Да я знаю как отобразить этот Chm. Вопрос в том как запихнуть его в исходный ехе файл.
...
Рейтинг: 0 / 0
работа с HTML Help
    #32577581
SnowMan
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
А может и exe и chm файлы поместить в инсталятор.
...
Рейтинг: 0 / 0
работа с HTML Help
    #32577864
Ой Вэй
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Хороший вопрос...

Сходу могу предложить только засунуть в ресурсы исходные html-страницы, к ним можно обращаться по
Код: plaintext
res:///
...
Рейтинг: 0 / 0
работа с HTML Help
    #32578592
Вентик
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
То что это возможно доказывает сам HTML Help Workshop. Его файлов помощи нет в каталоге а в програме он их использует. Значит они в какой то dll или exe.
А запихнуть его туда мне нужно чтобы его нельзя было декомпилировать.
Может кто подскажет что ?
...
Рейтинг: 0 / 0
работа с HTML Help
    #32578767
Фотография Green2
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
2 Вентик

Если есть готовый пример, то посмотри откуда он берет файлы помощи. Для этого открываешь системное меню, там Jump yo URL, и Current URL.

Если спрятать файл р ресурсы, то это не поможет от декомпиляции.
...
Рейтинг: 0 / 0
работа с HTML Help
    #32578768
Фотография Green2
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Сам HTML Help ложит свою помощь по адресу mk:@MSITStore:С:\WINDOWS\help\htmlhelp.chm::/1hh.htm
...
Рейтинг: 0 / 0
работа с HTML Help
    #32579089
Фотография CEMb
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Всё можно засунуть в ресурсы.
Где-то кто-то говорил, что примерчик есть... Вроде на RSDN
...
Рейтинг: 0 / 0
9 сообщений из 9, страница 1 из 1
Форумы / C++ [игнор отключен] [закрыт для гостей] / работа с HTML Help
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]