Hi -
I'm having the most random problem.
I've got a header file readfile.h and in it is a structure I've created
I'm getting loads of errors all of a sudden including:Code:#ifndef _READFILE_H_ #define _READFILE_H_ #include "vectorlist.h" typedef struct tagFileNames{ char fileName[20]; }tagFileNames; /*Function: read_filenames*/ /*Purpose: read text files containing all scene filenames this function will be called in the main read file function*/ /*Return: a pointer to an array of chars containing the filenames*/ /*Params: nothing*/ FileNames *read_filenames(void); /*Function: read_files*/ /*Purpose: To read the files containing vector information*/ /*Return: A pointer to a vector list*/ /*Params: Nothing*/ ListNode *read_files(void); #endif
c:\documents and settings\administrator\my documents\programming\programming\programming practice\readfile.h(8) : error C2085: 'tagFileNames' : not in formal parameter list
and then when I sometimes try and build it I get an error saying it cant be saved as its being used by another app and then the file deletes itself from the hard drive????
Anyone got any ideas - I've never had this before?
Thanks in advance
Helen