Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontooltip Pin
yogendra kaushik27-Jun-06 3:32
yogendra kaushik27-Jun-06 3:32 
AnswerRe: tooltip Pin
_AnsHUMAN_ 27-Jun-06 3:39
_AnsHUMAN_ 27-Jun-06 3:39 
GeneralRe: tooltip Pin
David Crow27-Jun-06 3:44
David Crow27-Jun-06 3:44 
AnswerRe: tooltip [modified] Pin
Sarath C27-Jun-06 3:42
Sarath C27-Jun-06 3:42 
GeneralRe: tooltip Pin
ashish dogra27-Jun-06 3:56
ashish dogra27-Jun-06 3:56 
GeneralRe: tooltip [modified] Pin
Sarath C27-Jun-06 4:41
Sarath C27-Jun-06 4:41 
AnswerRe: tooltip Pin
Michael Dunn27-Jun-06 6:37
sitebuilderMichael Dunn27-Jun-06 6:37 
QuestionStrange error message Pin
hint_5427-Jun-06 3:30
hint_5427-Jun-06 3:30 
I all

I have the following scheme on two classes:
template <typename T> class MyClass {

 public:

   class MySubClass {

     public:

        ~MySubClass( void );
   };

};
And I tryed:
template <typename T> MyClass<T>::MySubClass::~MySubClass( void )
{
}

And also:
template <typename T> class MyClass {

   public:

     template <typename T> class MySubClass {

        public:

           ~MySubClass( void );
     };
};
With:
template <typename T> MyClass<T>::MySubClass<T>::~MySubClass( void )
{
}


But I get the message "error C2039: '__dtor' : is not a member of 'tBaseArray<T>'" for the 1st case and that same message plus "error C2935: '<Unknown>' : template-class-id redefined as a global function" for the 2nd case.

I tryed googling for __dtor, and it seems to be a function to enable using delete on a class, but I don't understand why I get this error neither how to bypass it.

Can anybody help?? =)

best regards

hint_54
AnswerRe: Strange error message Pin
Sarath C27-Jun-06 4:00
Sarath C27-Jun-06 4:00 
GeneralRe: Strange error message Pin
hint_5427-Jun-06 4:03
hint_5427-Jun-06 4:03 
GeneralRe: Strange error message Pin
Michael Dunn27-Jun-06 6:40
sitebuilderMichael Dunn27-Jun-06 6:40 
QuestionHow to get device context? Pin
shivditya27-Jun-06 3:11
shivditya27-Jun-06 3:11 
QuestionRe: How to get device context? Pin
David Crow27-Jun-06 3:30
David Crow27-Jun-06 3:30 
QuestionRe: How to get device context? [modified] Pin
shivditya27-Jun-06 3:42
shivditya27-Jun-06 3:42 
AnswerRe: How to get device context? Pin
David Crow27-Jun-06 3:46
David Crow27-Jun-06 3:46 
GeneralRe: How to get device context? Pin
shivditya27-Jun-06 3:51
shivditya27-Jun-06 3:51 
GeneralRe: How to get device context? Pin
David Crow27-Jun-06 3:59
David Crow27-Jun-06 3:59 
AnswerRe: How to get device context? Pin
Sarath C27-Jun-06 3:32
Sarath C27-Jun-06 3:32 
GeneralRe: How to get device context? Pin
shivditya27-Jun-06 3:49
shivditya27-Jun-06 3:49 
GeneralRe: How to get device context? Pin
Sarath C27-Jun-06 3:54
Sarath C27-Jun-06 3:54 
GeneralRe: How to get device context? Pin
Hamid_RT27-Jun-06 4:18
Hamid_RT27-Jun-06 4:18 
AnswerRe: How to get device context? Pin
shivditya27-Jun-06 19:07
shivditya27-Jun-06 19:07 
AnswerRe: CControlBar Pin
Rage27-Jun-06 3:31
professionalRage27-Jun-06 3:31 
Questionanimation Pin
ashish dogra27-Jun-06 3:03
ashish dogra27-Jun-06 3:03 
AnswerRe: animation Pin
_AnsHUMAN_ 27-Jun-06 3:12
_AnsHUMAN_ 27-Jun-06 3:12 

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.