News:

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

Main Menu

Recent posts

#71
Assembly discussions / Re: Easily write lines to a te...
Last post by Vortex - November 04, 2026, 08:36:51 PM
Attached is the 64-bit version.
#72
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 04, 2026, 11:18:39 AM
Thanks MrBcx

A tool adapted to view RTF-files with msftedit.dll.

Now a current filename is in editbox for collecting info for files for testing, like with WordPad or MS Winword.
#73
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
#74
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.

#75
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
#76
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
#77
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
#78
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.

#79
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.
#80
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