Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adjusting and detecting changes to WorkingArea (WORKAREA) Pin
Iain Clarke, Warrior Programmer3-Jan-08 4:17
Iain Clarke, Warrior Programmer3-Jan-08 4:17 
GeneralRe: Adjusting and detecting changes to WorkingArea (WORKAREA) Pin
chaiguy13373-Jan-08 11:00
chaiguy13373-Jan-08 11:00 
GeneralRe: Adjusting and detecting changes to WorkingArea (WORKAREA) Pin
chaiguy13373-Jan-08 11:06
chaiguy13373-Jan-08 11:06 
GeneralPrint Preview for CRichEditCtrl Pin
DougVC2-Jan-08 12:15
DougVC2-Jan-08 12:15 
GeneralRe: Print Preview for CRichEditCtrl Pin
Hamid_RT2-Jan-08 18:26
Hamid_RT2-Jan-08 18:26 
GeneralPrinting Class Library : Bottom Margin Pin
DanYELL2-Jan-08 11:42
DanYELL2-Jan-08 11:42 
GeneralRe: Printing Class Library : Bottom Margin Pin
dan o3-Jan-08 5:34
dan o3-Jan-08 5:34 
GeneralTrying to extend a CPropertyPage using one own class created from MFC CPropertyPage... Pin
Joan M2-Jan-08 9:30
professionalJoan M2-Jan-08 9:30 
Hello all,

I've created a special class (Class view -> right click -> add class -> MFC Class -> Add)

I've selected the base class CPropertyPage.

I'd like to use it in order to extend several pages that I have in a property sheet. Doing that I'll be able to reuse code without having to use pretranslatemessages and this kind of stuff.

The thing here is that I must be missing something:

In the header file I've changed

class CDlgPPAssEV52 : public CPropertyPage

to

class CDlgPPAssEV52 : public CPropertyPageEx

And in the implementation file I've changed

IMPLEMENT_DYNAMIC(CDlgPPAssEV52, CPropertyPage)<br />
<br />
CDlgPPAssEV52::CDlgPPAssEV52()<br />
	: CPropertyPage(CDlgPPAssEV52::IDD)<br />
{<br />
}


to

IMPLEMENT_DYNAMIC(CDlgPPAssEV52, CPropertyPageEx)<br />
<br />
CDlgPPAssEV52::CDlgPPAssEV52()<br />
	: CPropertyPageEx(CDlgPPAssEV52::IDD)<br />
{<br />
}


I get this error: cannot convert from '' to 'const CTAMPropertyPage'

Any idea why is this happening?

As always thank you in advance.
QuestionRe: Trying to extend a CPropertyPage using one own class created from MFC CPropertyPage... Pin
Mark Salsbery2-Jan-08 9:37
Mark Salsbery2-Jan-08 9:37 
GeneralRe: Trying to extend a CPropertyPage using one own class created from MFC CPropertyPage... Pin
Joan M2-Jan-08 20:46
professionalJoan M2-Jan-08 20:46 
QuestionRe: Trying to extend a CPropertyPage using one own class created from MFC CPropertyPage... Pin
David Crow2-Jan-08 10:16
David Crow2-Jan-08 10:16 
GeneralRe: Trying to extend a CPropertyPage using one own class created from MFC CPropertyPage... Pin
Joan M2-Jan-08 20:47
professionalJoan M2-Jan-08 20:47 
GeneralChange Keyboard Layout for different process Pin
OpossumPetya2-Jan-08 9:08
OpossumPetya2-Jan-08 9:08 
Generalformat of Windows .TXT files Pin
Anthony Appleyard2-Jan-08 8:26
Anthony Appleyard2-Jan-08 8:26 
QuestionRe: format of Windows .TXT files Pin
David Crow2-Jan-08 8:39
David Crow2-Jan-08 8:39 
GeneralRe: format of Windows .TXT files Pin
CPallini2-Jan-08 9:57
mveCPallini2-Jan-08 9:57 
GeneralA project made from XPCOM components and VC++6.0 (I desperately need for any ideas) Pin
cuesdean florin2-Jan-08 5:44
cuesdean florin2-Jan-08 5:44 
GeneralRe: A project made from XPCOM components and VC++6.0 (I desperately need for any ideas) Pin
led mike2-Jan-08 8:19
led mike2-Jan-08 8:19 
GeneralHelp on DLL export Pin
tiwal2-Jan-08 5:19
tiwal2-Jan-08 5:19 
GeneralRe: Help on DLL export Pin
CPallini2-Jan-08 5:36
mveCPallini2-Jan-08 5:36 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 21:58
tiwal2-Jan-08 21:58 
GeneralRe: Help on DLL export Pin
CPallini2-Jan-08 22:29
mveCPallini2-Jan-08 22:29 
GeneralRe: Help on DLL export Pin
tiwal2-Jan-08 23:49
tiwal2-Jan-08 23:49 
GeneralRe: Help on DLL export Pin
CPallini3-Jan-08 0:04
mveCPallini3-Jan-08 0:04 
GeneralRe: Help on DLL export Pin
tiwal3-Jan-08 21:31
tiwal3-Jan-08 21:31 

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.