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

Описание к видео Hello, Windows! RetroCoding "Hello World" for Windows with Dave

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

Комментарии

Информация по комментариям в разработке