使用CPropertySheet的时候遇到CResourceException
RT,
CMyApp类的头文件中声明为
CMyPropertySheet m_myPropertySheet;
CMyApp类的一个线程中显示该属性表
theApp.m_myPropertySheet.m_psh.dwFlags|=PSH_NOAPPLYNOW|PSH_PROPTITLE;
theApp.m_myPropertySheet.m_psh.nStartPage=0;
theApp.m_myPropertySheet.DoModal();
结果挂掉..调试停在CResourceException
假如在CMyApp类的线程中声明CMyPropertySheet myPropertySheet,之后在DoModal()则不会挂掉..
有人能给俺一点思路么?脑袋完全乱了.先谢谢了.
另外假如有一个类的构造函数带参数,怎样把该类声明的一个对象作为另一个类的成员变量?