Click here to Skip to main content
15,904,024 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfind .lib, .dll etc files in an exe Pin
RKP7286-May-09 18:55
RKP7286-May-09 18:55 
AnswerRe: find .lib, .dll etc files in an exe Pin
«_Superman_»6-May-09 19:06
professional«_Superman_»6-May-09 19:06 
AnswerRe: find .lib, .dll etc files in an exe Pin
Chandrasekharan P6-May-09 19:07
Chandrasekharan P6-May-09 19:07 
GeneralRe: find .lib, .dll etc files in an exe Pin
RKP7286-May-09 19:58
RKP7286-May-09 19:58 
GeneralRe: find .lib, .dll etc files in an exe Pin
Stuart Dootson6-May-09 20:31
professionalStuart Dootson6-May-09 20:31 
GeneralRe: find .lib, .dll etc files in an exe Pin
RKP7286-May-09 21:05
RKP7286-May-09 21:05 
QuestionRead/Write Files(ex:music files) meta data Pin
A&Ms6-May-09 18:49
A&Ms6-May-09 18:49 
AnswerRe: Read/Write Files(ex:music files) meta data Pin
Stuart Dootson6-May-09 20:22
professionalStuart Dootson6-May-09 20:22 
AnswerRe: Read/Write Files(ex:music files) meta data Pin
A&Ms6-May-09 21:11
A&Ms6-May-09 21:11 
QuestionFile Deletion using SHFILEOPSTRUCT & SHFileOperation Pin
Padmanabha_M6-May-09 18:35
Padmanabha_M6-May-09 18:35 
AnswerRe: File Deletion using SHFILEOPSTRUCT & SHFileOperation Pin
«_Superman_»6-May-09 19:17
professional«_Superman_»6-May-09 19:17 
GeneralRe: File Deletion using SHFILEOPSTRUCT & SHFileOperation Pin
Padmanabha_M6-May-09 20:08
Padmanabha_M6-May-09 20:08 
GeneralRe: File Deletion using SHFILEOPSTRUCT & SHFileOperation Pin
David Crow7-May-09 3:31
David Crow7-May-09 3:31 
QuestionNeed help on Dock Window Pin
nick2reg6-May-09 17:22
nick2reg6-May-09 17:22 
QuestionVery difficult problem about CExplorer1. Pin
cwj_6-May-09 15:38
cwj_6-May-09 15:38 
QuestionRe: Very difficult problem about CExplorer1. Pin
Madhu Nair6-May-09 17:36
Madhu Nair6-May-09 17:36 
AnswerRe: Very difficult problem about CExplorer1. Pin
Stuart Dootson6-May-09 20:06
professionalStuart Dootson6-May-09 20:06 
AnswerRe: Very difficult problem about CExplorer1. Pin
virusest31-Dec-10 18:13
virusest31-Dec-10 18:13 
Questionmatrix in window Pin
kiemxai6-May-09 14:45
kiemxai6-May-09 14:45 
AnswerRe: matrix in window Pin
Stuart Dootson6-May-09 19:41
professionalStuart Dootson6-May-09 19:41 
GeneralRe: matrix in window Pin
kiemxai6-May-09 23:19
kiemxai6-May-09 23:19 
GeneralRe: matrix in window Pin
Stuart Dootson6-May-09 23:22
professionalStuart Dootson6-May-09 23:22 
QuestionInclude order issues Pin
__DanC__6-May-09 9:53
__DanC__6-May-09 9:53 
AnswerRe: Include order issues Pin
Stuart Dootson6-May-09 10:40
professionalStuart Dootson6-May-09 10:40 
GeneralRe: Include order issues Pin
__DanC__6-May-09 11:00
__DanC__6-May-09 11:00 
Thanks, that makes sense. I hadn't looked at it that simply until I saw that.

What would be the "standard" way of creating member variables that reference each other, using your example:

// a.h

#include "b.h"

class B;

class A
{
   // Stuff
   B *b;

   CString s1;
};


// b.h

#include "a.h"

class A;

class B
{
   // Stuff
   A *a;

   CString s2;
};


That would work now I've used a forward declaration of the class and used a pointer but it seems "messy" to me to have one class as a pointer and the other not. It also seems a waste to have to implement a destructor to clean up the pointers.

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.