Board index » Visual Studio » Beginer - help me please
|
TreasuryClerk
|
Beginer - help me please
Visual Studio334
hi friends, i am facing a problem with CPropertySheet i have declared an object of CPropertySheet and i have two dialogs one with CTab1 and CTab2 i have created objects of both these tab classes can anybody tell me why this error message is coming and any solution for this ------------------------------------------ error C2664: 'AddPage' : cannot convert parameter 1 from 'class CTab1 *' to 'class CPropertyPage *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ------------------------------------------ CPropertySheet sheet; CTab1 tab1; CTab2 tab2; sheet.AddPage(&tab1); //'sheet.AddPage(&tab2); sheet.SetTitle("Tab Example"); sheet.DoModal(); ---------------------------------------- Thanks in advance Murthy - |
