Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » IMPLEMENT_DYNCREATE Collapse All
Subject Author Date
tarou iiyama Oct 20, 2005 - 12:43 AM

 Hi   


 Building error (C2665) appears and is troubled. 
IMPLEMENT_DYNCREATE ( CExtGridCellVariantCust , CExtGridCellVariant );


 I ask for a countermeasure.


 


----------------------------------------------------------------------------------------


Header


----------------------------------------------------------------------------------------


class CExtGridCellVariantCust :
        public CExtGridCellVariant  ///, public  CExtCallBackFunc
{


protected:   
//--------------------------------------------------------
public:
    DECLARE_DYNCREATE( CExtGridCellVariantCust );
//    IMPLEMENT_ExtGridCell_Clone( CExtGridCellVariantCust, CExtGridCellVariant );


    CExtGridCellVariantCust(
        CExtGridDataProvider * pDP = NULL
        );


    CExtGridCellVariantCust( CExtGridCellVariantCust & other );


}


-----------------------------------------------------------------------------------------


.CPP


----------------------------------------------------------------------------------------


 


IMPLEMENT_DYNCREATE ( CExtGridCellVariantCust , CExtGridCellVariant );



CExtGridCellVariantCust::CExtGridCellVariantCust(
    CExtGridDataProvider * pDP // = NULL
    )
    : CExtGridCellVariant( pDP )
{
}


CExtGridCellVariantCust::CExtGridCellVariantCust(
 CExtGridCellVariantCust & other
 )
 : CExtGridCellVariant ( other )
{
}
-----------------------------------------------------------------------------------------

Technical Support Oct 20, 2005 - 7:27 AM

Please put the IMPLEMENT_DYNCREATE macro before DEBUG_NEW macro to avoid a conflict with MFC’s operator new.

tarou iiyama Oct 24, 2005 - 3:34 AM

Thank you 


 m(__)m