Click here to Skip to main content
14,700,220 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: is DLL appropriate Pin
Richard MacCutchan13-Dec-14 22:24
mveRichard MacCutchan13-Dec-14 22:24 
GeneralRe: is DLL appropriate Pin
bkelly1314-Dec-14 6:04
Memberbkelly1314-Dec-14 6:04 
AnswerRe: is DLL appropriate Pin
Albert Holguin5-Jan-15 7:55
professionalAlbert Holguin5-Jan-15 7:55 
QuestionIssue with CHTMLEditView in CDHTMLDialog Pin
Member 1101896712-Dec-14 4:53
MemberMember 1101896712-Dec-14 4:53 
SuggestionRe: Issue with CHTMLEditView in CDHTMLDialog Pin
Richard MacCutchan14-Dec-14 4:04
mveRichard MacCutchan14-Dec-14 4:04 
GeneralRe: Issue with CHTMLEditView in CDHTMLDialog Pin
Member 110189678-Jan-15 0:22
MemberMember 110189678-Jan-15 0:22 
GeneralRe: Issue with CHTMLEditView in CDHTMLDialog Pin
Richard MacCutchan8-Jan-15 1:07
mveRichard MacCutchan8-Jan-15 1:07 
Questionusing friend Pin
bkelly139-Dec-14 8:29
Memberbkelly139-Dec-14 8:29 
Visual Studio 2008, c++
Class C_Messages works with various structures called messages. The initial configuration of the messages is by reading a text file and is rather extensive. C_Messages instantiates a class called C_Configuration to read the text file and perform all the startup work. Currently C_Messages instantiates C_Configuration then calls some functions handing C_Configuration pointers to the structures.
Is there some way that C_Configuration can be declare a friend of C_Messages and dispense with the functions just to set the pointers. I am thinking of something like this in C_Messages.h

Class C_Configuration;
Class C_Messages
{
…
Friend C_Configuration;
int x;
}


Then in file C_Configuration.cpp would be something like:
Class C_Messages
Int Do_This()
{
X = 2;
}


When I read the various forum questions on this none seem to apply to a simple relationship like this. Maybe its just not possible so I am trying make a simple question out of this.

EDIT
I just figured out part of it and why the compiler is saying the variable is not static. If I don't want static variables can I do something like hand over the this pointer to C_Messages to C_Configuration then C_Configuration can access the members of C_Messages?
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com



modified 9-Dec-14 14:09pm.

AnswerRe: using friend Pin
Richard MacCutchan10-Dec-14 6:22
mveRichard MacCutchan10-Dec-14 6:22 
GeneralRe: using friend Pin
bkelly1311-Dec-14 11:24
Memberbkelly1311-Dec-14 11:24 
GeneralRe: using friend Pin
Richard MacCutchan12-Dec-14 0:07
mveRichard MacCutchan12-Dec-14 0:07 
GeneralRe: using friend Pin
Aescleal12-Dec-14 0:52
MemberAescleal12-Dec-14 0:52 
GeneralRe: using friend Pin
bkelly1312-Dec-14 13:12
Memberbkelly1312-Dec-14 13:12 
GeneralRe: using friend Pin
Aescleal15-Dec-14 6:18
MemberAescleal15-Dec-14 6:18 
AnswerRe: using friend Pin
Theo Buys22-Dec-14 5:25
MemberTheo Buys22-Dec-14 5:25 
QuestionHow to create a dll as Unbreakable in C#.Net? Pin
karthickbm7-Dec-14 21:37
Memberkarthickbm7-Dec-14 21:37 
AnswerRe: How to create a dll as Unbreakable in C#.Net? Pin
Richard MacCutchan7-Dec-14 23:52
mveRichard MacCutchan7-Dec-14 23:52 
QuestionTCP/API class basic design Pin
bkelly138-Nov-14 17:31
Memberbkelly138-Nov-14 17:31 
AnswerRe: TCP/API class basic design Pin
Garth J Lancaster8-Nov-14 17:56
professionalGarth J Lancaster8-Nov-14 17:56 
GeneralRe: TCP/API class basic design Pin
bkelly139-Nov-14 3:15
Memberbkelly139-Nov-14 3:15 
AnswerRe: TCP/API class basic design Pin
Garth J Lancaster8-Nov-14 18:06
professionalGarth J Lancaster8-Nov-14 18:06 
GeneralRe: TCP/API class basic design Pin
bkelly139-Nov-14 3:19
Memberbkelly139-Nov-14 3:19 
AnswerRe: TCP/API class basic design Pin
Albert Holguin10-Nov-14 5:58
professionalAlbert Holguin10-Nov-14 5:58 
GeneralRe: TCP/API class basic design Pin
bkelly1310-Nov-14 13:40
Memberbkelly1310-Nov-14 13:40 
AnswerRe: TCP/API class basic design Pin
Albert Holguin10-Nov-14 17:47
professionalAlbert Holguin10-Nov-14 17:47 

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.