News:

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

Main Menu

Recent posts

#71
User contributions / Re: Offline GitHub MS Document...
Last post by John Z - November 03, 2026, 11:32:28 AM
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
#72
User contributions / Re: Offline GitHub MS Document...
Last post by MrBcx - November 03, 2026, 12:37:20 AM
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.

#73
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 03, 2026, 12:18:20 AM
Quote from: MrBcx on November 03, 2026, 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.
#74
User contributions / Re: Offline GitHub MS Document...
Last post by MrBcx - November 03, 2026, 12:07:26 AM
Thanks 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

#75
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 02, 2026, 10:32:51 PM
Quote from: MrBcx on November 02, 2026, 10:14:53 PMYour instructions are confusing.

Your url points to :  https://win32-docs.zip


Attempting to rebuild the exe:

POLINK: fatal error: File not found: 'MiniUnZ64.lib'.
*** Error code: 1 ***
Done.
SMF makes a that silly url link from name.
MiniUnZ libs found in original message.
#76
User contributions / Re: Offline GitHub MS Document...
Last post by MrBcx - November 02, 2026, 10:14:53 PM
Quote from: TimoVJL on November 02, 2026, 08:08:34 PMThis very slow example make filename list from win32-docs.zip
and show it using md2rtf code (MrBcx).
A code have lot of bugs and needs cleaning.
Be patient while waiting, when it build file list to listbox.
Just select filename and doubleclick to see it in view window.

WHViewMD[64].ini
[HelpZip]
File=C:\your path\win32-docs.zip


Your instructions are confusing.

Your url points to :  https://win32-docs.zip


Attempting to rebuild the exe:

POLINK: fatal error: File not found: 'MiniUnZ64.lib'.
*** Error code: 1 ***
Done.


#77
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 02, 2026, 08:08:34 PM
This is just a testbed for others.

This very slow example make filename list from win32-docs zip
and show it using md2rtf code (MrBcx).
A code have lot of bugs and needs cleaning.
Be patient while waiting, when it build file list to listbox.
Just select filename and doubleclick to see it in view window.

The win32-docs can be created by downloading zip from code at
https://github.com/MicrosoftDocs/win32

WHViewMD[64].ini
[HelpZip]
File=C:\your path\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.
In WHViewMD_c_a4.zip use EM_SETTEXTEX and EN_LINK to show link string
#78
User contributions / Re: Offline GitHub MS Document...
Last post by MrBcx - November 02, 2026, 03:09:33 PM
Quote from: TimoVJL on November 02, 2026, 09:29:02 AMThanks MrBcx

md2rtf works well with MS Word, sadly not so well with Windows 7 RichEdit control, but in msftedit.dll looks good, but no pictures.


I get slightly better results.  The rtf files look great in MSWord 2007 and inside the BCX_RICHEDIT() control
( which uses Msftedit.dll and the crucial classname "RichEdit50W" ) and the images are displayed in both cases. 

Windows XP Wordpad displays okay but no images.

#79
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 02, 2026, 09:29:02 AM
Thanks MrBcx

md2rtf works well with MS Word, sadly not so well with Windows 7 RichEdit control, but in msftedit.dll looks good, but no pictures.
#80
User contributions / Re: Offline GitHub MS Document...
Last post by Robert - November 02, 2026, 03:46:45 AM
Quote from: MrBcx on November 02, 2026, 01:48:11 AMI took my earlier MD2HTML and converted it to MD2RTF.

It has most of the same functionality but not all, notably no "--dark" option.

One thing it does have is the ability to call it at the command line with a github RAW url.


MD2RTF https://raw.githubusercontent.com/MicrosoftDocs/win32/refs/heads/docs/desktop-src/Controls/about-combo-boxes.md


The app will resolve, download, and embed the images referenced in the github link.  Pretty useful!

The zip contains a Pelles project, files, and a Samples folder with a half dozen that I created with this tool, just to give an idea of what it produces.

Have fun!

(( Added Later ))

The forum is not showing the 0.6MB zip, so I'm making it available here:

https://bcxbasiccoders.com/bcxusers/mrbcx/md2rtf_poc.zip


Thanks MrBcx, for both MD2HTML and MD2RTF. Very informative and useful.