Problem: 1390108
Title: (Example -DemoDialogs) Improper cast in MakeTemplateViews()
Received: Sep 23 1996 12:11PM
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);
Fixed as suggested.