hello world formula for dell windows 11

dell inspiron 2 in 1 windows 11 with www.openwatcom.org win32 x64 installer API: nano-editor.org pdcurs34.zip create within the C:\WATCOM\src\ dir a series homedmin unpack pdcurs34.zip to that dir cd to the win32 dir within the admin build environment the makefile is leaving link386 testcurs.obj pdcurses.lib in the admin dir create a directory called curses_projects and change to that then create prog1


------

main.c

------

/* sunli pdcurses.lib curses.h only win32 watcom 1.9 */
#include ""
#include ""
#include "..\..\curses.h"

int
main(int argc, char *argv[]){
WINDOW *progwin_ptr;
int PROGERR=0;

progwin_ptr=initscr();

wclear(progwin_ptr);
wmove(progwin_ptr, 15, 10);
waddstr(progwin_ptr, "hello,world.");
wmove(progwin_ptr, 25, 65);
waddstr(progwin_ptr, "EOF curses dump");

wrefresh(progwin_ptr);

PROGERR=endwin();

return PROGERR;
}

-------
25-05-2024 sunli