Click here to Skip to main content
16,009,112 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Plz find out this error.
error C2600: 'CWaitCursor::~CWaitCursor' : cannot define a compiler-generated special member function (must be declared in the class first)
Posted
Comments
Sergey Alexandrovich Kryukov 7-Sep-12 2:19am    
Sorry, no. First, please show some code sample which would create this problem.
--SA
Richard MacCutchan 7-Sep-12 4:37am    
Looks like you are trying to define or call a destructor that is not defined.

How are you using the CWaitCursor ? Normal usage is to declare it on the stack at the beginning of a block/function and let it get destroyed automatically at the end of the block/function.

C++
void f()
{
  CWaitCursor waitCursor;// create and display the wait cursor.

  //... do something long.

  // at the end of the function the waitCursor will be automatically destroyed and the previous cursor will be restored.

}
 
Share this answer
 
hm....Richard is right, trying to define or call a destructor.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900