|
-
September 11th, 2003, 01:56 PM
#1
Is it OK to derive my class from CWinThread AND Csocket ?
I need to combine functionality of CWinThread AND CSocket in my class, so I want to derive it from these classes… My friend tells me that its not a good idea to derive your class from more than one MFC classes, especially if one of them is a thread.
Please let me know what you think !!!
-
September 11th, 2003, 04:41 PM
#2
Wakeup in the morning and kick the day in the teeth!! Or something like that.
"i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."
-
September 11th, 2003, 05:01 PM
#3
CAsyncSocket is derived from CObject so you are going to have
problems
Wakeup in the morning and kick the day in the teeth!! Or something like that.
"i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."
-
September 11th, 2003, 05:04 PM
#4
I see... I guess i'll have to rethink this design.
Thanks a lot for your help!
-
September 12th, 2003, 05:15 PM
#5
I don't know a lot about CSocket but based on what I read it is better not to use it.
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
|