News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#1
Assembly discussions / Masking passwords
Last post by Vortex - Today at 08:25:32 PM
Here is a dialog box example with an edit control hiding the text in the client area. Exiting the application, a message box displays the text entered to the edit control.

include     HiddenPasswd.inc

IDC_EDIT    equ 4001
PWD_CHAR    equ 43 ; ASCII(*)=42
BUFF_SIZE   equ 64

.data

DlgBox db 'DLGBOX',0
capt   db 'Hidden text',0

.data?

hEdit  dd ?
buffer db BUFF_SIZE dup(?)

.code

start:

    invoke  GetModuleHandle,0
    xor     ecx,ecx
    invoke  DialogBoxParam,eax,\
            ADDR DlgBox,ecx,ADDR DlgProc,ecx
    invoke  ExitProcess,eax

DlgProc PROC hWnd:DWORD,uMsg:DWORD,wParam:DWORD,lParam:DWORD

    .IF uMsg==WM_INITDIALOG

        invoke  GetDlgItem,hWnd,IDC_EDIT
        mov     hEdit,eax
        invoke  SendMessage,eax,EM_SETPASSWORDCHAR,PWD_CHAR,0

    .ELSEIF uMsg==WM_CLOSE

        invoke  GetWindowText,hEdit,ADDR buffer,BUFF_SIZE
        xor     ecx,ecx
        invoke  MessageBox,ecx,ADDR buffer,ADDR capt,ecx
        invoke  EndDialog,hWnd,0

    .ELSE

        xor     eax,eax
        ret

    .ENDIF

    mov     eax,TRUE
    ret

DlgProc ENDP

END start
#2
Feature requests / Resizer Lib
Last post by John Z - Today at 12:41:36 PM
Wondering if there is any interest in furthering the library or is it basically an 'as is' work?

I had opportunity to use it for the first time for the file view in the mdfiles_v2 program.
https://forum.pellesc.de/index.php?topic=11608.msg41540#new

It worked for my simple case (and it is utilized) but a few issues were observed. 
The sources mentioned in the help file don't seem to be included in the distribution anymore. 

If it is in an 'as is' state I wouldn't want to make useless inputs....

John Z
#3
Tips & tricks / Resource extractors
Last post by Vortex - Today at 11:33:44 AM
Resource Hacker

QuoteOverview:

Resource HackerTM is a resource editor for 32bit and 64bit Windows® applications. It's both a resource compiler (for *.rc files), and a decompiler - enabling viewing and editing of resources in executables (*.exe; *.dll; *.scr; etc) and compiled resource libraries (*.res, *.mui). While Resource Hacker is primarily a GUI application, it also provides many options for compiling and decompiling resources from the command-line.
https://www.angusj.com/resourcehacker/

BATHack

QuoteBATHack is a feature rich resource extracter/replacer program capable of extracting or replacing any resource found in either a NE, PE or .FON file. Thats right, extract or replace resources in 16-bit modules or 16-bit font files.

Resources can be exported as either a complied resource (.RES) or as raw data with accompanied resource script file.

http://batsoftware.net/RES2RC/htm/RES2RC.htm
#4
User contributions / Re: Mike Henning's Link2Res
Last post by John Z - Yesterday at 09:31:04 PM
Thanks Vortex!

John Z
#5
User contributions / Re: Mike Henning's Link2Res
Last post by Vortex - Yesterday at 07:07:50 PM
Hi John,

I attached the zip file, it's OK now.
#6
Feature requests / Re: Old version of Pelles C fo...
Last post by George/Gyorgy - Yesterday at 03:14:05 PM
Thank Pelle, the version 7.00 which I downloaded is all what I need.
Best regards,
Gyorgy
#7
User contributions / Re: Mike Henning's Link2Res
Last post by Vortex - October 26, 2025, 08:21:19 PM
The attached zip archive contains Mike Henning's Link2Res tool and a quick example :

Link2Res Rsrc.res DlgBox.exe -verbose
#8
Feature requests / Re: Old version of Pelles C fo...
Last post by Pelle - October 26, 2025, 04:52:15 PM
If you ever need it, I can probably dig up most old versions of Pelles C (anyone that can invent a timeless backup system will probably get very rich...)
#9
Work in progress / Re: win32-doc md files
Last post by John Z - October 26, 2025, 01:10:27 PM
Well - Here is the next version of the mdfiles program.
I had hoped I had dropped enough hints that one of the more experienced would have created this but seems left for me  8) so here it is.

With this version one downloads the entire ZIP from from GitHub as TimoVJL mentions at the top of this topic.  For the original mdfiles program I used TimoVJL's extract program to extract API Names from it, which I then used to created a database of the names and the paths within the github zip file.  It stopped there.

Now with this new version 2.0 of mdfiles.exe it will if desired extract the selected .md for you, into the application directory.  It also can just display the selected .md file without doing any extracting to the hard disk. Of course you can copy from the display too. See Screen shots -

There is a readme.txt in the zip file along with the .exe and the api db3 file.  No sources yet as I need to figure out using the new minizip - I'm using a very old crude 2 file zip implementation and not happy about it, but I made it work.... 

John Z
#10
Bug reports / Re: Bug using RTF1 or RTF2 con...
Last post by John Z - October 25, 2025, 11:42:31 AM
Thanks very much Timo!

My oversight - works now.  I won't forget again after spending so much time -

Appreciate the assist!

John Z