1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Win16でhello, world

Posted at

Neko Project 21/W

  • MS-DOS 6.2
  • Windows 3.1
  • Visual C++ 1.5
hello.c
# include <windows.h>

int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
{
	MessageBox(NULL, "hello", "hello, world", MB_OK);
	return 0;
}
hello.def
NAME		HELLO
DESCRIPTION	'HELLO'

EXETYPE		WINDOWS

CODE		PRELOAD MOVEABLE DISCARDABLE
DATA		PRELOAD MOVEABLE MULTIPLE

STUB		'WINSTUB.EXE'

HEAPSIZE	1024
STACKSIZE	5120
mk.bat
cl /c /G2As /Fl hello.c
link /NOD /NOE hello.obj, hello.exe, NUL, libw slibcew, hello.def

hello.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?