Click here to Skip to main content
14,326,294 members

ATL / WTL / STL

 
QuestionIssue with CHTMLEditView in CDHTMLDialog Pin
Member 1101896712-Dec-14 3:53
memberMember 1101896712-Dec-14 3:53 
SuggestionRe: Issue with CHTMLEditView in CDHTMLDialog Pin
Richard MacCutchan14-Dec-14 3:04
protectorRichard MacCutchan14-Dec-14 3:04 
GeneralRe: Issue with CHTMLEditView in CDHTMLDialog Pin
Member 110189677-Jan-15 23:22
memberMember 110189677-Jan-15 23:22 
GeneralRe: Issue with CHTMLEditView in CDHTMLDialog Pin
Richard MacCutchan8-Jan-15 0:07
protectorRichard MacCutchan8-Jan-15 0:07 
Questionusing friend Pin
bkelly139-Dec-14 7:29
memberbkelly139-Dec-14 7:29 
AnswerRe: using friend Pin
Richard MacCutchan10-Dec-14 5:22
protectorRichard MacCutchan10-Dec-14 5:22 
GeneralRe: using friend Pin
bkelly1311-Dec-14 10:24
memberbkelly1311-Dec-14 10:24 
GeneralRe: using friend Pin
Richard MacCutchan11-Dec-14 23:07
protectorRichard MacCutchan11-Dec-14 23:07 
bkelly13 wrote:
Class M starts running and creates class C to do a bunch of startup work. C is owned by M but does not inherit from M. C is deleted immediately upon completing its work.
Then there is no need for them to be friends.

bkelly13 wrote:
I am leery of public variables
You can hid the variables by making them private, and creating public methods to get or set them, which is the generally recommended pattern in OOP.

At the end of the day it all depends on what each of your classes is supposed to do.
GeneralRe: using friend Pin
Aescleal11-Dec-14 23:52
memberAescleal11-Dec-14 23:52 
GeneralRe: using friend Pin
bkelly1312-Dec-14 12:12
memberbkelly1312-Dec-14 12:12 
GeneralRe: using friend Pin
Aescleal15-Dec-14 5:18
memberAescleal15-Dec-14 5:18 
AnswerRe: using friend Pin
Theo Buys22-Dec-14 4:25
memberTheo Buys22-Dec-14 4:25 
QuestionHow to create a dll as Unbreakable in C#.Net? Pin
karthickbm7-Dec-14 20:37
memberkarthickbm7-Dec-14 20:37 
AnswerRe: How to create a dll as Unbreakable in C#.Net? Pin
Richard MacCutchan7-Dec-14 22:52
protectorRichard MacCutchan7-Dec-14 22:52 
QuestionTCP/API class basic design Pin
bkelly138-Nov-14 16:31
memberbkelly138-Nov-14 16:31 
AnswerRe: TCP/API class basic design Pin
Garth J Lancaster8-Nov-14 16:56
professionalGarth J Lancaster8-Nov-14 16:56 
GeneralRe: TCP/API class basic design Pin
bkelly139-Nov-14 2:15
memberbkelly139-Nov-14 2:15 
AnswerRe: TCP/API class basic design Pin
Garth J Lancaster8-Nov-14 17:06
professionalGarth J Lancaster8-Nov-14 17:06 
GeneralRe: TCP/API class basic design Pin
bkelly139-Nov-14 2:19
memberbkelly139-Nov-14 2:19 
AnswerRe: TCP/API class basic design Pin
Albert Holguin10-Nov-14 4:58
professionalAlbert Holguin10-Nov-14 4:58 
GeneralRe: TCP/API class basic design Pin
bkelly1310-Nov-14 12:40
memberbkelly1310-Nov-14 12:40 
AnswerRe: TCP/API class basic design Pin
Albert Holguin10-Nov-14 16:47
professionalAlbert Holguin10-Nov-14 16:47 
GeneralMultiple threads explained Pin
bkelly1311-Nov-14 6:30
memberbkelly1311-Nov-14 6:30 
GeneralRe: Multiple threads explained Pin
Albert Holguin11-Nov-14 7:01
professionalAlbert Holguin11-Nov-14 7:01 
GeneralRe: Multiple threads explained Pin
bkelly1311-Nov-14 9:58
memberbkelly1311-Nov-14 9:58 

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.