Subj : Re: *.cpp & *.h interaction & structure To : borland.public.cpp.borlandcpp From : Alistair Date : Wed Jul 14 2004 01:04 am Worked brilliently, I tried extern but failed to get it to work, i was missing the .cpp declaration! Cheers! Alistair "Drew MacDonald" wrote in message news:2lj4e6Fdb533U2@uni-berlin.de... > Try the extern keyword. > > In file a.h: > > extern int globalvar; > > > In a.cpp > > int globalvar > > > In b.cpp > > #include "a.h" > > ...(some code).... > > globalvar = xxx; .