You should add the directive
#pragma once
at the top of your header.
If
VC6
compiler doesn't support it (I don't remember...), use the oldie goldie
#if !defined()
, for instance:
#if !defined( __MYHEADER__)
#define __MYHEADER__
typedef struct NOTEPAD_GLOBALS;
typedef struct
{
HINSTANCE hInstance;
HWND hMainWnd;
}NOTEPAD_GLOBALS;
extern NOTEPAD_GLOBALS Globals;
#endif// __MYHEADER__
These meachanism avoid multiple inclusion issues.
:)