Hi Everyone there,
I am doing a dialog based application using MFC. My problem looks very simple, but i am getting pages of errors.
I have a class derived from CDialog.
class CSampleDialogLogicDlg : public CDialog
And have two sub classes derived from CSampleDialogLogicDlg.
class CMlkOne : public CSampleDialogLogicDlg
class CMlkTwo : public CSampleDialogLogicDlg
And I have set of variables in a normal header file. I need to access those variables from both of my subclasses. So i thought, it is enough to include that header file in my base class CSampleDialogLogicDlg header file.
But I am getting Variable already defined error for all the variables.
What should i do to get all those variables in header as global through out project.Am i missing anything here?
Pls help me in this.
Code blocks, "Ignore HTML..." option disabled - OriginalGriff[/edit]