Problem: 1395665

Title: (Example -DemoDialogs) Improper cast in MakeTemplateViews()

Received: Oct 9 1996 5:17PM


A statement in TTestApplication::MakeTemplateViews() is improperly casted. It is:
   FailNIL(aPopup = (TPopup*)(gViewServer->DoCreateViews(NULL, aDialogView, 
                                                              cPopupExample, gZeroVPt)));
The aPopup is real a superview of popup views, and should be TView class. We can see it in hierachy in "Ad Lib" (the resource # 1100). It may be change to:
    TView* aSuperviewOfPopupViews = gViewServer->DoCreateViews(...);
    FailNIL(aSuperviewOfPopupViews);

Fix:

Fixed as suggested.