News:

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

Main Menu

Recent posts

#61
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

#62
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.
#63
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.


#64
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
#65
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.

#66
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.
#67
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.
#68
User contributions / Re: Offline GitHub MS Document...
Last post by MrBcx - November 02, 2026, 01:48:11 AM
I 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


#69
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 01, 2026, 09:33:35 PM
Thanks Robert.

Quite small and only <br> haven't handled / removed  from MS created files.
#70
User contributions / Re: Offline GitHub MS Document...
Last post by Robert - November 01, 2026, 08:32:08 PM
Quote from: TimoVJL on October 31, 2026, 03:51:10 PMA markdown (.md) conversion to RTF could be useful for md-files,
as RichEdit component could show them visually.

Currently win32-docs are not good consistent material, but a testbed for them.

Sadly also a MSDN help file material is just a huge trashcan with too many kind of formattings, no coherent material.

A md-format was a good idea, from it could format many kind of other formats, like bloated xhtml.

QuoteCybersecurity researchers have uncovered a sophisticated malware campaign exploiting Microsoft Help Index Files (.mshi) to deliver the notorious PipeMagic backdoor, marking a significant evolution in the threat actors' tactics since the malware's first detection in 2022.

MarkDown to RTF project here.

https://github.com/fabiov64/md2rtf