Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MyTabCtrl based on CTabCtrl - base class undefined

Status
Not open for further replies.

porto99

Technical User
Nov 1, 2004
96
GB
I have been trying to use the MyTabCtrl based on CTabCtrl from the CoderSource.net forum.

However I get the following error:

2>c:\mcspms_emu\ms_emu\ms_emulation\mytabctrl.h(5) : error C2504: 'CTabCtrl' : base class undefined

The area is shown below:-

// CMyTabCtrl window

class CMyTabCtrl : public CTabCtrl <--- Error Line
{
// Construction
public:
CMyTabCtrl();
CDialog *m_tabPages[6];
int m_tabCurrent;
int m_nNumberOfPages;

// Attributes
public:


Has the Base class changed, as I am using Visual Studio 2005.

Many thanks.

 
The aformentioned include should be found in the stdafx.h
if it is there:-
ensure your project does not have
Code:
_AFX_NO_AFXCMN_SUPPORT
in the preprocessor definitions.
 
OK thanks, OK now I have included <afxcmn.h>

Hours waisted, but thanks again.

Are they a Nody guide for moving up to VS 2005, I am having problems with strcpy etc.

I get in a mess if I just change to strcpy_s.

Porto.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top