News:

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

Main Menu

Recent posts

#81
Chit-Chat / Re: WinDirStat
Last post by John Z - November 14, 2025, 10:30:21 AM
Yes it is very handy. I have used the portable version for many years.
https://portableapps.com/apps/utilities/windirstat_portable

Also a good site, and as the name implies portableapps can be installed on a USB and run leaving no traces, or very minimal, on the system.

However the most used tool now is SwiftSearch - the speed this has searching a NTFS formatted drive is just astounding.  Open source too.
https://sourceforge.net/projects/swiftsearch/


John Z
#82
Chit-Chat / WinDirStat
Last post by TimoVJL - November 14, 2025, 09:54:20 AM
https://windirstat.net/download.html

Nice tool to check folder sizes.
#83
Assembly discussions / Re: Rich Edit sample
Last post by TimoVJL - November 13, 2025, 08:23:01 PM
Useful for users, who needs template for dialog app with richedit control.
#84
Beginner questions / Re: Error #2158 Unrecognized t...
Last post by Jerry - November 12, 2025, 10:43:11 PM
Quote from: John Z on November 12, 2025, 05:51:51 PMJerry,

If you are using the IDE check the box in the picture.  This will add /Go to the compile
flags (CFLAGS).

John Z
Thank you, John and TimoVJL! The problem is solved!
#85
Assembly discussions / Re: Rich Edit sample
Last post by Vortex - November 12, 2025, 08:50:50 PM
Here is the 64-bit version :

include DlgBox.inc

.data

Dlgbox db 'MyDlg',0

.code

start PROC PARMAREA=5*SIZEOF QWORD

LOCAL hModule:QWORD

    mov     rax,RichEditANSIWndProc
    invoke  GetModuleHandle,0
    mov     hModule,rax
    invoke  DialogBoxParam,hModule,ADDR Dlgbox,0,ADDR DlgProc,0
    invoke  ExitProcess,rax

start ENDP

DlgProc PROC hWnd:QWORD,uMsg:QWORD,wParam:QWORD,lParam:QWORD PARMAREA=4*SIZEOF QWORD

    .IF uMsg==WM_CLOSE

        invoke  EndDialog,hWnd,0

    .ELSE

        xor    rax,rax
        ret

    .ENDIF

    mov    eax,1
    ret

DlgProc ENDP

END start
#86
Beginner questions / Re: Error #2158 Unrecognized t...
Last post by John Z - November 12, 2025, 05:51:51 PM
Jerry,

If you are using the IDE check the box in the picture.  This will add /Go to the compile
flags (CFLAGS).

John Z
#87
Beginner questions / Re: Error #2158 Unrecognized t...
Last post by TimoVJL - November 12, 2025, 04:32:30 PM
Not a bug.
Don't add that code example.

Just add -Go to pocc commandline, if you don't use poide or add in poide compiler options Define compatbility names
#88
Beginner questions / Re: Error #2158 Unrecognized t...
Last post by Jerry - November 12, 2025, 04:26:52 PM
Quote from: TimoVJL on November 11, 2025, 08:20:13 PM
Quote/Go Accepts 'old' names for C runtime functions.
#ifndef _SSIZE_T_DEFINED
#define _SSIZE_T_DEFINED
typedef __SSIZE_TYPE__ _ssize_t;
#ifdef __POCC__OLDNAMES
typedef __SSIZE_TYPE__ ssize_t;
#endif /* __POCC__OLDNAMES */
#endif /* SSIZE_T_DEFINED */

Thank you for the suggestion. But the problem persists even after adding the lines to my code.
I think this might be a bug with Pelles C (current version 13.00), as other compilers work fine with my code.
#89
Beginner questions / Re: Pomake incompatibility
Last post by John Z - November 12, 2025, 04:15:41 PM
Quote from: TimoVJL on November 12, 2025, 03:15:54 PMPOMAKE: example2.mak(9): warning: The system cannot read from the specified device.You also forgot CR/LF from last line.


Actually not forgotten, there are two in there.  Attached files -
-----------------
italofutura - I don't understand your question - sorry

John Z
#90
Beginner questions / Re: Pomake incompatibility
Last post by TimoVJL - November 12, 2025, 04:15:10 PM
From help file
QuoteSyntax Description
%s    The complete filename.
%|{parts}F    The {parts} specification can be zero or more of the following letters:
  d Drive
  p Path
  f Base name
  e Extension
%% A literal %.

 

For example, the the full filename is specified by %|F or by %|dpfeF, as well as by %s.