I'm in Dialog mode. I have a main Dialog and several Dialogs that come off of the Main Dialog. I created a Header file and in the CMyProgram1Dlg (which is the Main Dialog) I used
Everything works fine.
The problem is when I want to #include the same Header file in one of the Sub Dialogs I get this error:
pddlg.obj : error LNK2005: "unsigned int port" (?port@@3IA) already defined in Program1.obj
pddlg.obj : error LNK2005: "int __cdecl trans(unsigned int,unsigned int,int)" (?trans@@YAHIIH@Z) already defined in Program1.obj
If I don't #include the Header file I get errors that the variables are undefined.
What am I doing wrong and what do I have to do to correct it?