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

Pubblicato il: 01 gennaio 1970
sul canale di: 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


In questa pagina del sito puoi guardare il video online Hello, Windows! RetroCoding "Hello World" for Windows with Dave della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Dave's Garage 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 114,821 volte e gli è piaciuto 8.8 mille spettatori. Buona visione!