Woops! I accidentally left the 'friend int main( int, char** )' bit in. I was playing with something else and forgot to take that part out before forwarding the source. Please ignore that bit. It is irrelevant to the point i was trying to make. patrick