Hello, Windows! RetroCoding "Hello World" for Windows with Dave

Published: 01 January 1970
on channel: Dave's Garage
114,821
8.8k

See the Art of Code as Dave crafts a new Windows Hello program from scratch in the editor with no assists. Dave writes clean code in pure C for your enjoyment. A great source of coding style as a tutorial for Windows Programming. What Dave develops here is effectively a hybrid of the MSDN sample for "Hello, World" and Charles Petzold's version of rendering the client area.

Coming Soon: Hello, Assembly! where Dave codes Hello World in pure ASM for Windows.

Errata:

At about 9:10 I make reference to the WndProc, when I really mean WinMain.

You may have noticed I typo’d the WinMain signature as HRESULT, rather than LRESULT. Good eye, and of course I fixed this before running it!
TranslateMessage(%msg) was clearly supposed to be TranslateMessage(&msg), sorry!
As trivia, under Win16, WPARAMs were WORDs and LPARAMs were LONGs. Today, they’re both 32 bits.

Here's the code that compiles in the episode without any warnings. Remember this is just the C, you'd still need resources, icons, etc. Best bet honestly is to generate an empty Win32 project with VC, which provides you with sample code quite close to this (but it doesn't paint).

https://pastebin.com/07QRqaW0


On this page of the site you can watch the video online Hello, Windows! RetroCoding "Hello World" for Windows with Dave with a duration of hours minute second in good quality, which was uploaded by the user Dave's Garage 01 January 1970, share the link with friends and acquaintances, this video has already been watched 114,821 times on youtube and it was liked by 8.8 thousand viewers. Enjoy your viewing!