|
-
March 31st, 1999, 07:11 AM
#1
How can I add destructor to my component class?
Hello!
I tried to add a destructer to my component class but it says that the destructor already exists. I didn't add any destructor to the class
generated by ATL object wizard. I just need to close some handles before
my component is deleted. Could you help me?
-
March 31st, 1999, 12:40 PM
#2
Re: How can I add destructor to my component class?
The descructor is in the header file. I'm not sure why the wizard puts the constructor/destructor in the header.
-
March 31st, 1999, 03:20 PM
#3
Re: How can I add destructor to my component class?
I can add the destructor easily by hands . But the strange thing is that
the wizard doesn't allow me to create it.
-
March 31st, 1999, 04:36 PM
#4
Re: How can I add destructor to my component class?
Hi
don't try to add a destructor to the component, the ATL will take care of that.
If you have to clean up some stuff, you could add a method 'Delete()' or
something similar and call that before closing your component.
HTH
Julius
-
March 31st, 1999, 07:14 PM
#5
Re: How can I add destructor to my component class?
ATL Wizard puts an empty destructor in your class.
-
April 1st, 1999, 09:11 PM
#6
Re: How can I add destructor to my component class?
My mistake, the class wizard doesn't add an empty destructor. Sorry..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|