|
-
June 8th, 2013, 01:46 AM
#4
Re: Error in implenting class from .h into .cpp
 Originally Posted by Paul McKenzie
Code:
myPing->Ping;
~ping();
What are you trying to do with that line of code in red?
Regards,
Paul McKenzie
I was being dumb! I forgot destructors are automatically invoked when an object is destroyed or goes out of scope. I should have used the keyword delete myPing, ( I was trying to call the destructor with that line of code, which I see now is wrong.)
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
|