Im using WFC (Windows Fondation Classes)for my game.
Things are going well, but i got this small problem. When the player press the quit button (the x in thr corner) i want the program to ask thr players if he really want to quit (with a dialog box). But here my problems, even if he say no the game quit!
Can some here tell me how to do this!
[java] Quit button (WFC)
Started by Delisk, Mar 20 2000 04:44 AM
6 replies to this topic
Sponsor:
#3 Members - Reputation: 122
Posted 20 March 2000 - 05:48 PM
WFC doesn''t use event listeners, it uses Microsoft''s own extension to Java called event references. I''ve tried to program with WFC and I got frustrated with it quite fast, so sorry can''t help you out Delisk.
I suggest you get your hands on JBuilder Foundation Edition (available for free from www.borland.com) and start learning JFC/Swing UI library. I think in the long run that will be a better alternative. At least there are tutorials on the web available for that.
I suggest you get your hands on JBuilder Foundation Edition (available for free from www.borland.com) and start learning JFC/Swing UI library. I think in the long run that will be a better alternative. At least there are tutorials on the web available for that.
#5 Members - Reputation: 122
Posted 21 March 2000 - 10:15 AM
Are you referring to MFC? I''ve never heard of WFC. MFC in and of itself is almost useless for game development. Its tricky to merge MFC and pure Win32 code together (although it can be done).
MFC _is_ however, extremely useful for throwing together tools, editors and various utilities. The learning curve is kind of steep, but that''s mostly because it relies heavily on the C++ paradigm, which I don''t think most (nonprofessional) programmers understand.
MFC _is_ however, extremely useful for throwing together tools, editors and various utilities. The learning curve is kind of steep, but that''s mostly because it relies heavily on the C++ paradigm, which I don''t think most (nonprofessional) programmers understand.






