Keep in mind that #include roughly corresponds to cutting and pasting the included file into the source file that includes it (this is a crude analogy, but you get the point). This means that if you have:
int x; // or "slider" or whatever vars are conflicting
, , x, .
, , extern, .cpp , .cpp .
Variables.h:
extern int x;
SomeSourceFile.cpp
int x;
, globals, , .