Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: class view information file Pin
Michael P Butler13-May-02 22:35
Michael P Butler13-May-02 22:35 
GeneralRegistry error "Invalid handle" Pin
redeemer13-May-02 8:58
redeemer13-May-02 8:58 
GeneralRe: Registry error "Invalid handle" Pin
Carlos Antollini13-May-02 9:13
Carlos Antollini13-May-02 9:13 
GeneralThe RegCreateKeyEx creates or opens a key Pin
redeemer13-May-02 9:25
redeemer13-May-02 9:25 
GeneralRe: The RegCreateKeyEx creates or opens a key Pin
Bill Wilson13-May-02 11:41
Bill Wilson13-May-02 11:41 
GeneralRe: Registry error "Invalid handle" Pin
Jason Henderson13-May-02 17:18
Jason Henderson13-May-02 17:18 
Generalsimple MFC Q- about inheritance Pin
spoongirl13-May-02 8:26
spoongirl13-May-02 8:26 
GeneralRe: simple MFC Q- about inheritance Pin
Bill Wilson13-May-02 10:01
Bill Wilson13-May-02 10:01 
There is nothing wrong with what you are trying to do. There is no limitation of inheritance from MFC classes or CPropertySheet.

Sorry, but the problem is in your code.

here is a sample:

[ccode]
// Derived.cpp: implementation of the CDerived class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "RegHelper.h"
#include "Derived.h"
#include "MyPropSheet.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


CDerived::~CDerived()
{

}
CDerived::CDerived(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CMyPropSheet(nIDCaption, pParentWnd, iSelectPage)
{
}


/////////////////////////////////////////////////////////////////////////////
// CMyPropSheet

class CMyPropSheet : public CPropertySheet
{
DECLARE_DYNAMIC(CMyPropSheet)

// Construction
public:
CMyPropSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CMyPropSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);

// Attributes
public:

// Operations
public:

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyPropSheet)
//}}AFX_VIRTUAL

// Implementation
public:
virtual ~CMyPropSheet();

// Generated message map functions
protected:
//{{AFX_MSG(CMyPropSheet)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

[/ccode]

Hope this helps,
Bill
GeneralRe: simple MFC Q- about inheritance Pin
spoongirl14-May-02 5:38
spoongirl14-May-02 5:38 
Questionhow to set radio button to be checked? Pin
pnpfriend13-May-02 8:14
pnpfriend13-May-02 8:14 
AnswerRe: how to set radio button to be checked? Pin
Wes Jones13-May-02 8:25
Wes Jones13-May-02 8:25 
AnswerRe: how to set radio button to be checked? Pin
Jason Henderson13-May-02 8:44
Jason Henderson13-May-02 8:44 
AnswerRe: how to set radio button to be checked? Pin
redeemer13-May-02 9:17
redeemer13-May-02 9:17 
AnswerRe: how to set radio button to be checked? Pin
Michael Dunn13-May-02 10:26
sitebuilderMichael Dunn13-May-02 10:26 
Generalclass fstream and dll Pin
Dan Verret13-May-02 8:05
Dan Verret13-May-02 8:05 
GeneralDetecting multiple partitions on the same hard drive Pin
Wes Jones13-May-02 7:19
Wes Jones13-May-02 7:19 
GeneralRe: Detecting multiple partitions on the same hard drive Pin
redeemer13-May-02 9:43
redeemer13-May-02 9:43 
GeneralRe: Detecting multiple partitions on the same hard drive Pin
Wes Jones13-May-02 13:16
Wes Jones13-May-02 13:16 
GeneralRe: Detecting multiple partitions on the same hard drive Pin
Jason Henderson13-May-02 17:21
Jason Henderson13-May-02 17:21 
GeneralRe: Detecting multiple partitions on the same hard drive Pin
Wes Jones13-May-02 18:03
Wes Jones13-May-02 18:03 
GeneralISAPI Filter and FTP Pin
Ed K13-May-02 6:45
Ed K13-May-02 6:45 
GeneralRe: ISAPI Filter and FTP Pin
Bill Wilson13-May-02 10:03
Bill Wilson13-May-02 10:03 
GeneralRe: ISAPI Filter and FTP Pin
Ed K13-May-02 10:14
Ed K13-May-02 10:14 
QuestionGet IP address programatically ? Pin
dlhson13-May-02 6:24
dlhson13-May-02 6:24 
AnswerRe: Get IP address programatically ? Pin
Joaquín M López Muñoz13-May-02 7:38
Joaquín M López Muñoz13-May-02 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.