Author Topic: Tiny Lousy (TL) programs  (Read 772 times)

LiaoMi

  • Member
  • ***
  • Posts: 320
Re: Tiny Lousy (TL) programs
« Reply #15 on: September 25, 2018, 06:37:23 AM »
 :t I found MessageBoxA, I wrote everything with a small letter, but when I click on the result, nothing happens  :biggrin:

LiaoMi

  • Member
  • ***
  • Posts: 320
Re: Tiny Lousy (TL) programs
« Reply #16 on: September 26, 2018, 12:16:49 AM »
Visual Studio 2017 - V2WINDOWS_DESKTOP_APP_DEVELOPMENT_B4248_VS_85_EN-US.rar https://mega.co.nz/#!d4ZWlYoT!AAAAAAAAAADoOXWscm3BkQAAAAAAAAAA6Dl1rHJtwZE 325Mb for tests ...

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #17 on: October 01, 2018, 08:37:16 PM »
For those who like to help me to work with M$ mshi files.
Is it possible to easily sort listbox afterwards ?
Is there anywhere info about mshi-file internals ?

First listbox is filled from Title and second is from HelpId.
Edit control if for searching words from first list.
F button is for opening file.

EDIT: 2018-10-02 some new examples.
 WHelp3Index creates indexes from .mshi files with mask, but don't strip function, struct, enumerate at end.
 WTestLB_Idx2 test keywords in TLWHViewIdx.cdb.

« Last Edit: October 15, 2018, 02:23:36 AM by TimoVJL »
May the source be with you

LiaoMi

  • Member
  • ***
  • Posts: 320
Re: Tiny Lousy (TL) programs
« Reply #18 on: October 02, 2018, 12:03:01 AM »
For those who like to help me to work with M$ mshi files.
Is it possible to easily sort listbox afterwards ?
Is there anywhere info about mshi-file internals ?

First listbox is filled from Title and second is from HelpId.
Edit control if for searching words from first list.
F button is for opening file.

Hi TimoVJL,

mshi-file - this is a kind of binary index format, which is created on .Net technology, it uses the original indexer from microsoft visual studio, Microsoft.VisualStudio.Help.dll - indexing is handled by this library in MSHelp 3. I dont know much about .Net technology, there are some classes in the library that partially describe the structure of the mshi file ..

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #19 on: October 03, 2018, 06:35:53 PM »
Some notes.
M$ summer 2018 helpfiles have several kinds of internal formatting.
In some files Help.Id strings are converted to uppercase in header, so links in page body needs some formatting before usage.
Help.Id strings are also quite long now, so they don't even try to save space anymore.
There are a lot of online links too, so it's possible to collect those links to database/index-file with keywords and use it for F1 help to open correct page.

Catalocs (Chrome based browsers don't like UNICODE-16 pages, but Firefox can handle it)
A big single file:
UWP App Development (Conceptual) Microsoft  221756488 bytes.

Latest TLWHViewRE test version have now a partial support for mshi-files and Title/Keywords are collected in reasonable time.
Internal links are not handled well.

Additional original sources:
MiniZ
TinyCDB
No help from this forum this far :(

« Last Edit: October 15, 2018, 02:22:23 AM by TimoVJL »
May the source be with you

Adamanteus

  • Member
  • **
  • Posts: 205
    • LLC "AMS"
Re: Tiny Lousy (TL) programs
« Reply #20 on: October 04, 2018, 02:33:24 AM »
 Looks like Tiny Lousy in you project is TinyCDB, as maximal count of index records there 32768 - that's less than could require M$ help system at whole. So to you need to incraise internal table sizes there, and it will be binded to you viewer, and in it font of view pane not show international characters - by the way  :eusa_boohoo:

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #21 on: October 04, 2018, 02:42:47 AM »
I have to check it , but i newer need a whole help set.
The basic idea was a Desktop development with win32 API.
For other languages richedit isn't a good choice anyway, TLWHView use browser component, but don't updated that program any more, too slow for me now;)
TLWHViewRE was an example to show help 3 files without M$.Net.

So just show others an example using masm32 to do same ;)

EDIT: that indexing program make limits by 32-bit LPARAM, a short for package and a short for file index by MAKELPARAM() macro. That 32-bit value is used in listbox..
TinyCDB is innocent for that.

It seems that TinyLousy programs aren't interesting in this site, so i don't have to visit here for them either.
« Last Edit: October 04, 2018, 04:00:36 AM by TimoVJL »
May the source be with you

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #22 on: October 04, 2018, 10:46:23 PM »
Looks like Tiny Lousy in you project is TinyCDB, as maximal count of index records there 32768 - that's less than could require M$ help system at whole. So to you need to incraise internal table sizes there, and it will be binded to you viewer, and in it font of view pane not show international characters - by the way  :eusa_boohoo:
OK.
I started to modify TLWHView to share code with TLWHViewRE.
In this test version of viewer you can see cyrillic font in viewer pane, but Titles and links don't work yet :redface:
Link for Test file

EDIT: 2018-10-05: fix for font issue
EDIT: 2018-10-07: an example for converting UTF8 htm page for richedit, but only partially working version :(
EDIT: 2018-10-09: fix .mshi reading bug. Now show elapsed time and files in right lower corner.
EDIT: 2018-10-12: fix some link problems.
« Last Edit: October 13, 2018, 11:47:20 PM by TimoVJL »
May the source be with you

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #23 on: October 08, 2018, 03:53:45 AM »
TLWHViewRE with a partial UTF8 support, so cyrillic should looks a bit better now;)
Formatting is still lousy, a parser example is in Htm2REditTestUTF8.zip.
Program size is now about 40 Kb.
Tested only with ru-ru and de-de files.

EDIT: 2018-10-08: fix for ja-jp pages.
EDIT: 2018-10-09: fix .mshi reading bug. Now show elapsed time and files in right lower corner.
EDIT: 2018-10-12: fix some link problems.
EDIT: 2018-10-13: fix for & in Htm2REdit.
« Last Edit: October 13, 2018, 11:46:30 PM by TimoVJL »
May the source be with you

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #24 on: October 10, 2018, 05:13:55 AM »
A WHelp3IndexMshi is a test program for creating own index from .mshi-files.
Only usable with us-us files, as it use title for keywords.
It need a some more work to be usable.

Usage:
WHelp3IndexMshi.exe mask
« Last Edit: October 14, 2018, 06:37:32 PM by TimoVJL »
May the source be with you

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #25 on: October 13, 2018, 07:12:25 AM »
Both TLWHView and TLWHViewRE are updated with fixes for some link and mshi problems.
The brave ones can now us it to open mshc files with mshi index fragment too.

Next thing is to check and fix mshi indexing programs.

A WTestLB_MshiIdx6 is for testing mshi index file.

A Htm2REditTest is for testing conversion of xhtml to rtf.
« Last Edit: October 14, 2018, 12:02:51 AM by TimoVJL »
May the source be with you

Mikl__

  • Member
  • ****
  • Posts: 687
Re: Tiny Lousy (TL) programs
« Reply #26 on: Today at 01:57:57 AM »
Hi, Timo!
Cyrillic characters are displayed correctly. It is not clear why pictures are not displayed. Come to our site wasm.in This is a old site wasm.ru, we have a branch WASM.ENGLISH on the site for English-speaking users

TimoVJL

  • Regular Member
  • *
  • Posts: 36
Re: Tiny Lousy (TL) programs
« Reply #27 on: Today at 02:34:37 AM »
Hi Michael,
I haven't done any handler for resources/pictures to that browser component.
In top of todo-list are xhtml to rtf formatting issues, help history, some new help issues ...
TLWHViewRE utf8 handlings needs some work ...
May the source be with you