A Journey 2 Eternity

Common Class Declaration Mistake

Posted on: November 26, 2007

class CComboCellTypeArgs : public HotListCtrlCellTypeArgs
{
public:
	CComboCellTypeArgs(void);
	virtual ~CComboCellTypeArgs(void);

public:
	CStringArray m_arrString;
}

If you just missed to write a semicolon after class declaration, you will be get some horrible compilation error like the following:

error C2533: ‘HotListCtrlCellTypeArgs::{ctor}’ : constructors not allowed a return type

So don’t miss to write the semicolon after class declaration!!!

Advertisements
Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Pages

Categories

November 2007
M T W T F S S
    Dec »
 1234
567891011
12131415161718
19202122232425
2627282930  

Blog Stats

  • 26,968 hits
%d bloggers like this: