Click here to Skip to main content
15,908,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHELLEXECUTEINFO Pin
Gary R. Wheeler4-Mar-06 2:49
Gary R. Wheeler4-Mar-06 2:49 
GeneralRe: SHELLEXECUTEINFO Pin
Malli_S3-Mar-06 21:40
Malli_S3-Mar-06 21:40 
GeneralRe: SHELLEXECUTEINFO Pin
Larry Mills Sr4-Mar-06 0:51
Larry Mills Sr4-Mar-06 0:51 
GeneralRe: SHELLEXECUTEINFO Pin
Larry Mills Sr4-Mar-06 14:12
Larry Mills Sr4-Mar-06 14:12 
Questionwhat is the tech. of MouseKeys Pin
leenmie3-Mar-06 15:33
leenmie3-Mar-06 15:33 
QuestionRunning another application within a window Pin
TuPacMansur3-Mar-06 15:02
TuPacMansur3-Mar-06 15:02 
AnswerRe: Running another application within a window Pin
Naveen3-Mar-06 18:00
Naveen3-Mar-06 18:00 
GeneralRe: Running another application within a window Pin
TuPacMansur3-Mar-06 18:53
TuPacMansur3-Mar-06 18:53 
GeneralRe: Running another application within a window Pin
TuPacMansur3-Mar-06 18:59
TuPacMansur3-Mar-06 18:59 
AnswerRe: Running another application within a window Pin
Malli_S3-Mar-06 21:55
Malli_S3-Mar-06 21:55 
GeneralRe: Running another application within a window Pin
TuPacMansur5-Mar-06 23:43
TuPacMansur5-Mar-06 23:43 
Questiondll Pin
derek73-Mar-06 14:44
derek73-Mar-06 14:44 
AnswerRe: dll Pin
QuickDeveloper3-Mar-06 17:22
QuickDeveloper3-Mar-06 17:22 
QuestionTop margin in CEditView Pin
Hugh S. Myers3-Mar-06 10:20
Hugh S. Myers3-Mar-06 10:20 
AnswerRe: Top margin in CEditView Pin
Richard_483-Mar-06 11:29
Richard_483-Mar-06 11:29 
GeneralRe: Top margin in CEditView Pin
Richard_483-Mar-06 11:35
Richard_483-Mar-06 11:35 
GeneralRe: Top margin in CEditView Pin
Hugh S. Myers3-Mar-06 12:42
Hugh S. Myers3-Mar-06 12:42 
GeneralRe: Top margin in CEditView Pin
Hugh S. Myers3-Mar-06 13:06
Hugh S. Myers3-Mar-06 13:06 
AnswerRe: Top margin in CEditView Pin
Hugh S. Myers5-Mar-06 6:55
Hugh S. Myers5-Mar-06 6:55 
QuestionMFC & inner class question... Pin
Alberto_Canabal3-Mar-06 7:30
Alberto_Canabal3-Mar-06 7:30 
AnswerRe: MFC & inner class question... Pin
Blake Miller3-Mar-06 7:59
Blake Miller3-Mar-06 7:59 
GeneralRe: MFC & inner class question... Pin
Alberto_Canabal6-Mar-06 0:06
Alberto_Canabal6-Mar-06 0:06 
GeneralRe: MFC & inner class question... Pin
Blake Miller6-Mar-06 5:36
Blake Miller6-Mar-06 5:36 
If you really want to hide the internals of your class, then
make a forward declaration like this:

class MyInnerClass;

then use it privately in some other class:

class SomeOtherClass
{
...
private:
MyInnerClass* m_MyInnerClass;
...
};

and then declare the MyInnerClass in the source file along with its implementation as the same source file as SomeOtherClass and only SomeOtherClass will ever be able to actually 'use' the MyInnerClass.

Or, just declaring the pointer to it like the original example, that pretty much prevents ANYTHING else from using the MyInnerClass anyhow.



People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
AnswerRe: MFC & inner class question... Pin
Chris Losinger3-Mar-06 8:21
professionalChris Losinger3-Mar-06 8:21 
GeneralRe: MFC & inner class question... Pin
Alberto_Canabal6-Mar-06 0:02
Alberto_Canabal6-Mar-06 0:02 

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.