News:

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

Main Menu

Recent posts

#11
User contributions / Re: Offline GitHub MS Document...
Last post by John Z - November 04, 2026, 10:55:27 AM
MrBcx, this is incredible!  A huge task even if scripted.  Also very nice of you to host such a large file.

I see the converter output is much improved.  Hopefully your work will be widely useful.

John Z
#12
User contributions / Re: Offline GitHub MS Document...
Last post by MrBcx - November 04, 2026, 03:02:17 AM
Quote from: John Z on November 03, 2026, 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.

#13
Assembly discussions / Re: Easily write lines to a te...
Last post by Vortex - November 03, 2026, 08:51:00 PM
Another version :

include     OpenNewTxtForOutput.inc

.data

msg         db 'This is a test.',0
msg2        db 'Another test',0
file        db 'Test.txt',0

.data?

hFile       dd ?

.code

OpenNewTxtForOut PROC filename:DWORD

LOCAL mode:DWORD

    mov     mode,'w'
    invoke  fopen,filename,\
            ADDR mode
    ret

OpenNewTxtForOut ENDP

put PROC handle:DWORD,pMemory:DWORD
   
    invoke  lstrlen,pMemory
    invoke  fwrite,pMemory,1,\
            eax,handle
    ret

put ENDP

start:

    invoke  OpenNewTxtForOut,ADDR file
    mov     hFile,eax
   
    invoke  put,eax,ADDR msg
    invoke  put,hFile,ADDR msg2
    invoke  fclose,hFile
   
    invoke  ExitProcess,0

END start
#14
User contributions / Re: Offline GitHub MS Document...
Last post by John Z - November 03, 2026, 12:25:47 PM
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
#15
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
#16
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.

#17
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.
#18
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

#19
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.
#20
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.