statement cannot resolve address of overloaded function

Hi,
I have started programming and am working on my first program. there is only one problem with it, when I try to compile it, a error comes up:
"statement cannot resolve address of overloaded function"
the line in question is storekey.close; in the function 'void Logger()'.

Here is part of the code:
ofstream storekey("C:\\storekey.txt", ios::app);
storekey << endl << currentwindowtitle << endl;
storekey.close;
strcpy(newwindowtitle, currentwindowtitle);
}

The whole code is 300 lines long so I won't put it all in here,
Any help is much appreciated,
thanks in advance,
Deicer.
It needs to be storekey.close();

Fafner
Last edited on
Thanks,
That fixed it,

Deicer
Topic archived. No new replies allowed.