News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Offline GitHub MS Documents

Started by John Z, November 09, 2025, 05:21:33 PM

Previous topic - Next topic

TimoVJL

Quote from: MrBcx on Yesterday at 12:07:26 AMThanks Timo,  it's working for me now.  The pages render sufficiently quick.

I'm still confused over what the main difference is between

WHViewMD_WS_a1

and

WHViewMD_WS_a2
WHViewMD_WS_a2 don't need MiniUnZ as unpacking code is include project.
May the source be with you

MrBcx

Thanks for putting up with my questions :-)

I understand now ... I successfully rebuilt WHViewMD_WS_a2

If you're planning on embellishing the UI, I would start by adding a Search to
the Listbox, followed by changing to a larger font in the Listbox.  Those 2 things
would make this a useful offline tool.

Bcx Basic to C/C++ Translator
https://www.bcxbasiccoders.com

John Z

Quote from: TimoVJL on November 02, 2026, 08:08:34 PMThis very slow example make filename list from win32-docs zip
....

In WHViewMD_WS_a2.zip MiniUnZ code is included to project.
In WHViewMD_c_a3.zip RichEdit control is cleared before inserting new rtf page.


Very nice Timo!  BTW slow is the reason I created a db for my version getting API functions.
It is not unbearable though.

I'll also mention that wordpad still works in Windows 25H2 for those interested.  :)

John Z

John Z

It seems the .md to .rtf converter is incomplete.
Checking the web/AI this .md snippet is convertible to .rtf syntax -
<dl> <dt>
<span id="CFSTR_DSOBJECTNAMES"></span><span id="cfstr_dsobjectnames"></span>CFSTR_DSOBJECTNAMES </dt> <dd> <dl> <dt>
"DsObjectNames" </dt> <dt>
The CFSTR_DSOBJECTNAMES clipboard format is supported by the IDataObject provided by the ICommonQuery::OpenQueryWindow method. The CFSTR_DSOBJECTNAMES clipboard format provides a global memory handle (HGLOBAL) that contains DSOBJECTNAMES structure.
</dt> </dl> </dd> </dl>

is converted to this .rtf snippet
{\rtf1\ansi\deff0
{\bkmkstart CFSTR_DSOBJECTNAMES}{\bkmkend CFSTR_DSOBJECTNAMES}CFSTR_DSOBJECTNAMES\par
\par
\li360 "DsObjectNames"\par
The CFSTR_DSOBJECTNAMES clipboard format is supported by the IDataObject provided by the ICommonQuery::OpenQueryWindow method. The CFSTR_DSOBJECTNAMES clipboard format provides a global memory handle (HGLOBAL) that contains DSOBJECTNAMES structure.\par
}

is it worthwhile to convert and get rid of all the loose <dt,dd,dl> tags?  Probably more readable...

John Z

MrBcx

Quote from: John Z on Yesterday at 12:25:47 PMIt seems the .md to .rtf converter is incomplete.
is it worthwhile to convert and get rid of all the loose <dt,dd,dl> tags?  Probably more readable...


I worked a bit more with AI on the converter and mostly? got rid of those errant tags.  It also converts internally
linked *.md into *.rtf, enabling some hyperlinking, which even when it works, mostly sucks on *.rtf files.

I converted the entire win32-docs github repo to RTF and zipped it up.  I removed the *.md to cut
down on zip filesize ( even so, it is still 373MB because RTF is rather bloaty )

https://bcxbasiccoders.com/bcxusers/mrbcx/win32-docs-RTF.zip

It might be useful to someone.

Bcx Basic to C/C++ Translator
https://www.bcxbasiccoders.com