Re: Where dose the code go?
- Posted by Brian Broker <bkb at CNW.COM> Jul 19, 2000
- 394 views
On Tue, 18 Jul 2000 19:23:13 -0500, A.R.S. Alvin Koffman wrote: >I spliced two of Dave Coney's winlib examples and got this working then it >dawned on me. WHERE DO YOU PUT THE $#@*! CODE TO DO STUFF WITH!!!!!! In windows programming, you write code to handle different events. For a dice game, you might have a button for rolling the dice. So that's where you might put most of your code. E.g. if you had a button 'RollBtn' then your code would go into a procedure 'onClick[RollBtn]'. Since you are a beginner to event-driven programming, you might want to take a look at the Win32Lib Tutor at http://www.king.igs.net/~wolfritz/tutor.htm -- Brian