It'd be very nice if MetroWerks' Constructor created a C module for each
form with the 3 functions you really need ( ...OnInit(), ...HandleEvent(),
...HandleMenu()), and put the call into your main module for the
...HandleEvent(),
and establish the internal calls to ...OnInit() and ...HandleMenu().
And also create the basic main module when you first establish a program,
which itself has a base set of relatively standard code.
And also generate stubs for each of the buttons and gadgets on the form
in the ...HandleEvent() function and allow the Constructor to generate
stub code for other form and UI events.
With just these features, you could have the framework program created
and maintained from the Constructor and make it very easy to add new
forms to your program. All you'd have to do is add the specific processing
code to suit your requirements.
This wouldn't add any significant overhead to programs, and it'd eliminate
most of the initial learning curve for C/C++ programming on the Palm OS.
And although I'm a big proponent of C++ on the Palm OS, this doesn't
actually need to generate C++ code, just the basic C code!
>----------------------------------------------------------------------
>Date: 20 Dec 1999 07:04:59 -0800
>From: "Chris Yourch" <[EMAIL PROTECTED]>
>Subject: RE: C++ Framework for Palm Devlopment
>
>I for one would love to see a C++ framework created for the Palm. My
>background is in the Visual C++/MFC world and I can tell you that I was
>quite productive in that environment and I would like the same productivity
>gains in the Palm environment.
>
>Chris
>----------------------------------------------------------------------
Roger Stringer
Marietta Systems, Inc.
Visit our web site for company and product information: www.RF-TP.com
Marietta PDE is a Rapid Application Development system for the Palm OS
"RF-TP" and "Marietta PDE" are the trademarks of Marietta Systems, Inc