News:

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

Main Menu

Recent posts

#11
Feature requests / Re: _chsize_s
Last post by TimoVJL - December 01, 2025, 12:27:56 PM
check  _chsize64() and make a define for it.
#12
Feature requests / Re: RichEdit 4.1
Last post by TimoVJL - December 01, 2025, 12:11:13 PM
Also a "RICHEDIT60W" might be a good option, as there is a free version of dll for downloading.
Some richedit dlls have only some additional COM features.
Windows 10 and 11 have it already ?

#13
Feature requests / _chsize_s
Last post by John Z - December 01, 2025, 12:09:05 PM
Would you consider adding a _chsize_s ?  When compiling the latest miniz I ran across this being used.

I'm also a bit confused about struct __stat64  vs. struct _stat64 (/GX option) miniz uses the double underscore. 

I modified the sources to make miniz compile and work under V13 with a few __POCC__ checks so no show stoppers - just throwing out there -

John Z
#14
Feature requests / Re: RichEdit 4.1
Last post by John Z - December 01, 2025, 12:05:00 PM
Thanks Pelle,

Balanced definitely... ;)


John Z

#15
Feature requests / Re: RichEdit 4.1
Last post by Pelle - November 30, 2025, 10:03:50 PM
Apparently there are four versions of Rich Edit:
Version 1.0, Riched32.dll, class "RICHEDIT"
Version 2.0, Riched20.dll, class "RichEdit20A"/"RichEdit20W"
Version 3.0, Riched20.dll, class "RichEdit20A"/"RichEdit20W"
Version 4.1, Msftedit.dll, class "RICHEDIT50W"
Not sure who came up with this, but surely strong medication must have been involved...
The next version of the dialog editor will have four RichEdit controls (1, 2, 3, and 5).
#16
Tips & tricks / Re: Resource extractors
Last post by Vortex - November 30, 2025, 08:17:41 PM
QuoteResourcesExtract is a small utility that scans dll/ocx/exe files and extract all resources (bitmaps, icons, cursors, AVI movies, HTML files, and more...) stored in them into the folder that you specify.
You can use ResourcesExtract in user interface mode, or alternatively, you can run ResourcesExtract in command-line mode without displaying any user interface.

https://www.nirsoft.net/utils/resources_extract.html
#17
User contributions / Simple resizer Library
Last post by John Z - November 30, 2025, 12:36:30 PM
A simple to use resizer library -

Use both zresizer.c and zsizer.h when building the library

Use ResizerZ.lib and zsizerlib.h in the application, zsizer.h 
is not needed when implementing resizing using the library.

Use all three files if implementing as source code and not as library.
Entire project zip file is attached.
--------------
Basic Features:
For the most part resizing a Dialog resizes and moves everything
based on the Dialog window size changes.

Individual controls can be prevented from changing size but not
from moving. 

Two controls (pushbuttons like "ok") and Calendar can be globally
prevented from resizing by setting BUTTON_RESIZE, and/or
CALENDAR_RESIZE respectively to FALSE. In this case there is no
need to identify every control of these types to not resize.

Dialogs can be restricted to no smaller than original design by
setting LIMIT_SHRINK = TRUE. Works but a bit glitchy when trying to
drag smaller than original...

All settings are done initially in ResizerZ.lib, but the programs
can manipulate these as well since they are global in zsizerlib.h.

Only three functions are needed.  These are added to each Dialog to be resized
Init_Resizer(HANDLE hwndDlg,int n);// last line in WM_INITDIALOG
Form_Resize(HANDLE hwndDlg, int n);// in WM_SIZE
Free_zsizer(int n);                // in WM_CLOSE

The library the version number can be obtained by
What_Version(); //returns a double which is the lib version

Easy to implement worked well in test cases testing more than 20 of the control types
If bugs are fixed, or improvements are made it would be nice to post the revision.

More detailed information is within zsizerlib.h

John Z


#18
Expert questions / Re: Adding version rc to Libra...
Last post by Vortex - November 30, 2025, 11:44:24 AM
Hi Timo,

Thanks, you are right. John's idea is nice :

QuoteI think instead I'll just add a function in the lib which will return the version # on request. int or maybe float = Get_Version(); something like that

One can even can modify the static library to update the version number, a find and replace binary data utility can do the job.
#19
Expert questions / Re: Adding version rc to Libra...
Last post by TimoVJL - November 29, 2025, 09:50:09 PM
Wasn't what wanted.
Windows file manager was a basic problem.
#20
Expert questions / Re: Adding version rc to Libra...
Last post by Vortex - November 29, 2025, 09:35:24 PM
Microsoft's Windows Resource To Object Converter cvtres.exe can convert a .res file to an .obj file.