Posted by Christian Klauser on 2007-06-26 12:49 CET
(In reply to: Re: Want to sell copies of Champ?
posted by Hans Salvisberg on 2007-06-26 09:10 CET)
|
>>Great! You have my full support. What can I do to help you? A digital copy of the Champ API documentation would really help, so I know what features the old Champ had to offer. ( ch27k89 {at] gmail }dot{ com ) I would take the one that comes with the demo version of Champ but the installer refuses to run under my Vista. Do you happen to have a subversion server (preferably with trac installed)? Otherwise I'll look out for a free one. >> I don't think your lack of experience with the WIN32 API is a problem, because it doesn't make sense to try to write a new .NET library against an old API that is much harder to work with than what we have now. The challenges are in the details, which will be different under .NET than under WIN32, and I believe you'd be much better off to start from scratch, building on whatever ideas you find useful, but otherwise taking full advantage what .NET has to offer. Yes, I will definitely start from scratch. I definitely won't create wrappers around the whole window system. The Windows.Forms API is easy enough. >> Your dialog example does look promising indeed. It's too bad that C# doesn't have a preprocessor that would let you hide some of the plumbing, but a project wizard will go a long way to ease the pain. Well, there is a 'preprocessor'. It just doesn't deserve the name 'processor'. >> WaitFor<KeyEventArgs>(win.textBox,"KeyDown") is not exactly what you'd want to show to a beginner during the first lesson, but I'm sure this could be wrapped some more for cases with modest requirements. Yep... variants like 'WaitForKeyDown(win.textBox)' would definitely help. I personally would love to use .NET 3.5 extension methods at this point: * var key = win.textBox.WaitForKeyDown(); >> A 100ms delay in the RENDER thread should be enough to allow the MAIN thread to signal its intentions, for all practical purposes. Yep that should work for simple applications. |
| Email: (hidden) |
|
Copyright © 2010 Salvisberg Software & Consulting. All rights reserved. |
Top |