Download Pelles C here: http://www.smorgasbordet.com/pellesc/
Quote from: John Z on November 12, 2025, 05:51:51 PMJerry,Thank you, John and TimoVJL! The problem is solved!
If you are using the IDE check the box in the picture. This will add /Go to the compile
flags (CFLAGS).
John Z
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
Quote from: TimoVJL on November 11, 2025, 08:20:13 PMThank you for the suggestion. But the problem persists even after adding the lines to my code.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 */
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.
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.
Windows 11
-------
# Sample makefile
all: file2.obj file1.obj
file2.obj: file2.c
type $*.c
file1.obj: file1.c
type $*.c
-------
PATH=C:\Program Files\PellesC_V10\Bin
c:\POMAKE>pomake -f example2.mak
type file2.c
// file 2
int k;
type file1.c
// file1
int k;
-------
PATH=C:\Program Files\PellesC_V11\Bin
c:\POMAKE>pomake -f example2.mak
POMAKE: example2.mak(9): warning: The system cannot read from the specified device.
type file2.c
// file 2
int k;
type file1.c
// file1
int k;
-------
PATH=C:\Program Files\PellesC_V12\Bin
c:\POMAKE>pomake -f example2.mak
POMAKE: example2.mak(9): warning: The system cannot read from the specified device.
type file2.c
// file 2
int k;
type file1.c
// file1
int k;
-------
PATH=C:\Program Files\PellesC_V13\Bin
c:\POMAKE>pomake -f example2.mak
POMAKE: example2.mak(9): warning: The system cannot read from the specified device.
type file2.c
// file 2
int k;
type file1.c
// file1
int k;
-------
Page created in 0.042 seconds with 15 queries.