OK.  That's exactly what I was looking for but the only place I have a form
map macro is in the CMyApplication.h file (derived from CPalmApp).  None of
my other form classes have this map and they seem to work as expected using
GotoForm(SomeFormID).  I based my new form classes on existing form classes
and that's when I ran into the trouble.

I don't understand why the others work and the new one does not.

In any event, I'll put in the mapping and keep plugging along.

I sincerely appreciate your suggestions and help.

Nick.



"Mark F. Rodriguez" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Nick,
>
> Make sure you include the Form ID and your derived form in MyApp.h. It
> should look something like this...
>
> // Your includes
> #include "CMainFrm.h"
> #include "CFrm2.h" // your new form
>
>
> // Form map
> BEGIN_FORM_MAP()
> FORM_MAP_ENTRY(MainForm, CMainFrm)
> FORM_MAP_ENTRY(Form2, CForm2) // your new form
> END_FORM_MAP()
>
>
> Hope this helps,
> -Mark
>
>
> On Thursday, June 26, 2003, at 10:16 PM, Nick wrote:
>
> > I have CW9.1 and POL 4.04.00.  I have been working on an application
> > for
> > several months and all is working good.  I recently added a new form
> > to the
> > application and attempted to call it from another form's  OnButton
> > handler
> > using GotoForm.  However, I keep geeting an error:
> >
> > "MyApp.h, Line 37, CPalmApp: Invalid Form Load Event"
> >
> > To me this suggests that the form ID passed to the GotoForm is somehow
> > invalid.  HOwever, the app compiles with no unresolved.
> >
> > The error happens when  I try to invoke any newly added form.  If I
> > call
> > GotoForm with a form ID that was already in the project, that form is
> > launched just fine.  I have removed and added several forms but each
> > time it
> > fails with the same error message.
> >
> > Any suggestions?
> >
> > Thanks,
> > Nick.
> >
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> > please see http://www.palmos.com/dev/support/forums/
> >
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to